HTML5 Video Encoding with FFmpeg

Encoding Ogg video

ffmpeg -i SOURCEFILE.avi -vcodec libtheora OUTFILE.ogg

Encoding MP4

ffmpeg -i SOURCEFILE.avi -vcodec libx264 -vpre slow OUTFILE.mp4

Encoding WebM

ffmpeg -i SOURCEFILE.avi -vcodec libvpx -acodec vorbis  OUTFILE.webm

Resizing video:

ffmpeg -i SOURCEFILE.avi -s WIDTHxHEIGHT OUTFILE.ogg

WIDTH, HEIGHT new width and height in pixels.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>