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

#OGV
#adjust scaling by 1-10 with ogv.
#https://trac.ffmpeg.org/wiki/TheoraVorbisEncodingGuide
ffmpeg -i INPUT.mov -codec:v libtheora -qscale:v 10 -codec:a libvorbis -qscale:a 10 OUTPUT.ogv

#WEBM
ffmpeg -i INPUT.mov -q:v 10 -c:v libvpx -c:a libvorbis OUTPUT.webm
[/raw]

Leave a Reply