Webm + ffmpeg + Firefox + apache2 @ Debian squeeze howto



1) apache2 @ debian squeeze doesn't support mime type video/webm

echo "video/webm              webm" >> /etc/mime.types

/etc/init.d/apache2 restart

 

2) convert video to webm using ffmpeg

ffmpeg -i input-video.mp4 -b 1500k -vcodec libvpx \
    -acodec libvorbis -ab 256000 -f webm -g 30 output-video.webm

 

3) embed video to page

<video width="480" height="270" controls>
    <source src="output-video.webm" type="video/webm">
</video>
Tags: webm apache ffmpeg firefox
Last update:
2013-11-25 13:24
Author:
Daniel
Revision:
1.5
Average rating:0 (0 Votes)

You can comment this FAQ

Chuck Norris has counted to infinity. Twice.