ffmpeg convert mov to html5 4k mp4 webm ogv

By November 13, 2017Linux
[raw] #MP4
#baseline and faststart are set for max compatibility, veryslow used for smallest file size
ffmpeg -i INPUT.mov -f mp4 -vcodec libx264 -preset veryslow -profile:v baseline -level 3.0 -acodec aac -strict -2 OUTPUT.mp4 -hide_banner -movflags +faststart

#adjust scaling by 1-10 with ogv.
ffmpeg -i INPUT.mov -codec:v libtheora -qscale:v 10 -codec:a libvorbis -qscale:a 10 OUTPUT.ogv

ffmpeg -i INPUT.mov -q:v 10 -c:v libvpx -c:a libvorbis OUTPUT.webm

Leave a Reply