Video

From Bitnami MediaWiki
Revision as of 16:02, 2 April 2024 by User (talk | contribs) (Created page with "===Manipulating Video Files=== To reduce the size of an MP4 using FFmpeg: ffmpeg -i input.mp4 -vcodec libx264 -crf 28 output.mp4 Convert a .MOV file to an MP4 file (and shr...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Manipulating Video Files[edit]

To reduce the size of an MP4 using FFmpeg:

ffmpeg -i input.mp4 -vcodec libx264 -crf 28 output.mp4

Convert a .MOV file to an MP4 file (and shrink it):

ffmpeg -i input.mov -vcodec libx264 -crf 32 output.mp4

To batch convert all MOVs in current directory and shrink to MP4:

for i in *.mov; do ffmpeg -i "$i" vcodec libx264 -crf 32 "${i%.*}.mp4"; done