Video

From Bitnami MediaWiki
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