Using ffmpeg to convert video to HTML5

Here is a little ffmpeg fu to convert video files to HTML5 webm format.

ffmpeg -i input.file -f webm -vcodec libvpx -acodec libvorbis -ab 128000 -crf 22 -s 640×360 output.webm

With a little duckduckgo’n you can find quite a few more examples. The man page for ffmpeg is also very useful. You can convert audio only files also.

~ JAM

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s