[Berlin-wireless] Transcoding videos for HTML5
Alina Friedrichsen
x-alina
Mo Mär 14 20:10:14 CET 2011
Hi,
I have written a little helper script to transcode video (and audio)
files to H.264 (iPhone-compatible), WebM, and Ogg Theora for usage in HTML5.
http://x-alina.freifunk-potsdam.de/downloads/transcode4web/
The 0.0.2 version supports triple-core CPUs, 0.0.1 runs only on one core.
To use it you need Ubuntu 10.10. Select the universe and multiverse
repositories and you also need the Medibuntu repository:
https://help.ubuntu.com/community/Medibuntu#Adding%20the%20Repository
sudo apt-get --yes install libavcodec-unstripped-52 ffmpeg
wget
http://x-alina.freifunk-potsdam.de/downloads/transcode4web/transcode4web-0.0.2.tar.gz
tar -zxf transcode4web-0.0.2.tar.gz
cd transcode4web-0.0.2/
make
sudo make install
cd ..
# Usage: transcode4web FILE [FFMPEG_OPTION]...
transcode4web big_buck_bunny_1080p_stereo.ogg -s 320x180
ls big_buck_bunny_1080p_stereo/
big_buck_bunny_1080p_stereo.jpg
big_buck_bunny_1080p_stereo.m4v
big_buck_bunny_1080p_stereo.ogv
big_buck_bunny_1080p_stereo.webm
index.html
index.xhtml
Have fun! ;)
Cheers,
Alina
Mehr Informationen über die Mailingliste Berlin