From ffmpeg.org :
FFmpeg is a complete, cross-platform solution to record, convert and stream audio and video. It includes libavcodec – the leading audio/video codec library.
Installation Guide :
download the following debian package and install it :
1 2 | wget http: //www .debian-multimedia.org /pool/main/d/debian-multimedia-keyring/debian-multimedia-keyring_2008 .10.16_all.deb dpkg -i debian-multimedia-keyring_2008.10.16_all.deb |
Add the following lines to your /etc/apt/source.list :
1 | nano /etc/apt/nano sources.list |
1 2 | deb http://www.debian-multimedia.org lenny main deb-src http://www.debian-multimedia.org lenny main |
update your apt cache :
1 | apt-get update |
install needed utils :
1 | apt-get install checkinstall yasm git-core subversion |
install ffmpeg dependencies :
1 | apt-get build-dep ffmpeg |
Install x264 :
1 2 3 4 5 | git clone git: //git .videolan.org /x264 .git cd x264 . /configure make checkinstall --pkgname=x264 --pkgversion "1:0.svn`date +%Y%m%d`" --backup=no --default |
Install libtheora :
1 2 3 4 5 6 | wget http: //downloads .xiph.org /releases/theora/libtheora-1 .1.1. tar .gz tar xzvf libtheora-1.1.1. tar .gz cd libtheora-1.1.1 . /configure make checkinstall --pkgname=libtheora --pkgversion "1.1.1" --backup=no --default |
remove old libx264-dev :
1 | apt-get remove libx264-dev |
download the latest release of ffmpeg using subversion :
1 | svn checkout svn: //svn .mplayerhq.hu /ffmpeg/trunk ffmpeg |
configure and make ffmpeg :
1 2 3 4 | cd ffmpeg/ . /configure -- enable -version3 -- enable -libmp3lame -- enable -libtheora -- enable -libx264 -- enable -libgsm -- enable -postproc -- enable -libxvid -- enable -libfaac -- enable -pthreads -- enable -libvorbis -- enable -gpl -- enable -x11grab -- enable -nonfree make checkinstall --pkgname=ffmpeg --pkgversion "4:0.5+svn`date +%Y%m%d`" --backup=no --default |
and we are all set 🙂
just one more note , if you are going to convert flv files to 3gp files like me 😀 use the following command :
1 | ffmpeg -i input.flv -s 176x144 -vcodec h263 -acodec aac output.3gp |