I have read through a lot of tutorial about installing ffmpeg and I guess you can say that I’m giving back some of the experience I have sort of acquired along the way. First thing you need to do is decide what codecs/formats you want to use based on the codecs which ffmpeg supports.
- AMR and 3gp [http://www.penguin.cz/~utx/amr]
- X264 [http://www.videolan.org/developers/x264.html]
- Xvid [http://www.xvid.org/Downloads.43.0.html]
- FAAC and FAAD2 [http://faac.sourceforge.net/oldsite/index.php]
- Libmp4v2 [http://resare.com/libmp4v2/]
- Libogg , Libvorbis and Libtheora [http://xiph.org/downloads/]
- Mplayer + Mencoder [svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer]
- FFMPEG [svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg]
- Lame [http://lame.sourceforge.net/index.php]
- Flv tools [
http://rubyforge.org/frs/download.php/9225/flvtool2_1.0.5_rc6.tgz]
After you have decided which ones you gonna install you can now start downloading and compiling them, just decide on your installation if you gonna install them with default parameters e.g. ./configure or with a directory e.g ./configure –prefix=$HOME.
Here are two tutorials which talk about the same thing but do help with the installations.
installing ffmpeg – the easy way
FFmpeg, FFmpeg-PHP, Lame, Libogg, Libvorbis, FLVtool2, Mplayer, Mencoder, AMR Installation
the both look very similar in approach but they both help.
when installing my codecs I prefixed them to their own directories e.g ./configure –prefix=/usr/local/lame which gave me a hard time when compiling ffmpeg to support them. After going through enough forums and maillists I finally got it to it to compile as follows,
./configure –prefix=/usr/local/ffmpeg –disable-mmx –enable-gpl –enable-pp –enable-liba52 –extra-ldflags=-L/usr/local/liba52dec/lib/ –extra-cflags=-I/usr/local/liba52dec/include/ –enable-libmp3lame –extra-ldflags=-L/usr/local/lame/lib/ –extra-cflags=-I/usr/local/lame/include/ –enable-libamr-nb –extra-ldflags=-L/usr/local/amrnb/lib/ –extra-cflags=-I/usr/local/amrnb/include/ –enable-libamr-wb –extra-ldflags=-L/usr/local/amrwb/lib/ –extra-cflags=-I/usr/local/amrwb/include/ –enable-libfaac –extra-ldflags=-L/usr/local/faac/lib/ –extra-cflags=-I/usr/local/faac/include/ –enable-libfaad –enable-libx264 –enable-libxvid –extra-ldflags=-L/usr/local/xvidcore/lib/ –extra-cflags=-I/usr/local/xvidcore/include/ –enable-libogg –extra-ldflags=-L/usr/local/libogg/lib/ –extra-cflags=-I/usr/local/libogg/include/ –enable-libvorbis –extra-ldflags=-L/usr/local/libvorbis/lib/ –extra-cflags=-I/usr/local/libvorbis/include/ –enable-libtheora –extra-ldflags=-L/usr/local/libtheora/lib/ –extra-cflags=-I/usr/local/libtheora/include/
after you are done you ffmpeg should now work fine, but if it complains about missing libraries you can append them to /etc/ld.so.conf file e.g echo “/usr/local/xvidcore/lib/” >> /etc/ld.so.conf and then do an ldconfig. That should get you converting videos and audio files with ffmpeg.
when I run ffmpeg on my server
/usr/local/ffmpeg/bin # ./ffmpeg
FFmpeg version SVN-r10131, Copyright (c) 2000-2007 Fabrice Bellard, et al.
configuration: –prefix=/usr/local/ffmpeg –disable-mmx –enable-gpl –enable-pp –enable-liba52 –extra-ldflags=-L/usr/local/liba52dec/lib/ –extra-cflags=-I/usr/local/liba52dec/include/ –enable-libmp3lame –extra-ldflags=-L/usr/local/lame/lib/ –extra-cflags=-I/usr/local/lame/include/ –enable-libamr-nb –extra-ldflags=-L/usr/local/amrnb/lib/ –extra-cflags=-I/usr/local/amrnb/include/ –enable-libamr-wb –extra-ldflags=-L/usr/local/amrwb/lib/ –extra-cflags=-I/usr/local/amrwb/include/ –enable-libfaac –extra-ldflags=-L/usr/local/faac/lib/ –extra-cflags=-I/usr/local/faac/include/ –enable-libfaad –enable-libx264 –enable-libxvid –extra-ldflags=-L/usr/local/xvidcore/lib/ –extra-cflags=-I/usr/local/xvidcore/include/ –enable-libogg –extra-ldflags=-L/usr/local/libogg/lib/ –extra-cflags=-I/usr/local/libogg/include/ –enable-libvorbis –extra-ldflags=-L/usr/local/libvorbis/lib/ –extra-cflags=-I/usr/local/libvorbis/include/ –enable-libtheora –extra-ldflags=-L/usr/local/libtheora/lib/ –extra-cflags=-I/usr/local/libtheora/include/
libavutil version: 49.5.0
libavcodec version: 51.41.0
libavformat version: 51.12.2
built on Aug 21 2007 15:30:46, gcc: 4.1.2 20061115 (prerelease) (SUSE Linux)
usage: ffmpeg [[infile options] -i infile]… {[outfile options] outfile}…
Hyper fast Audio and Video encoder
I hope this help, If you are still having problems getting ffmpeg to work on you machine atfer following all the links I provided Please let me know. If you have any suggestions please leave a comment.
Recent Comments