Compile FFMPEG on Fedora, Centos or Amazon Ami for drupal video transcoding

Originally tested on fedora core 15 and 2.6.35.11-83.9.amzn1.x86_64

Download and install yasm (http://yasm.tortall.net/)

$ cd yasm
$ ./configure --prefix=/usr
$ make; sudo make install

Download and compile faac - mpeg2 and mpeg4 AAC encoder/decoder http://www.audiocoding.com/faac.html

$ cd faac-1.28
$ ./bootstrap
$ ./configure prefix=/usr
$ make;sudo make install

Download and compile faad

$ cd faad2
$ ./autoreconf -vif
$ ./configure prefix=/usr
$ make;sudo make install

Download and compile libmp3lame, the lame mp3 library.

$ cd libmp3lame
$ ./configure prefix=/usr
$ make;sudo make install

Download and compile xvidcore

$ cd xvidcore/build/generic
$ ./configure prefix=/usr
$ make;sudo make install

Download and compile libx264
$ ./configure --prefix=/usr --enabled-shared --enable-pic
$ make; sudo make install

Download and compile libogg http://xiph.org/downloads/

$ ./configure --prefix=/usr
$ make
$ sudo make install

Download and compile libvorbis http://xiph.org/downloads

$ ./configure
$ make
$ sudo make install

Download and compile libtheora http://www.theora.org/downloads/
Initially i was getting complaints about not finding libogg, but disappeared after running

$ sudo ldconfig

To compile libtheora do this:

$ ./configure --prefix=/usr
$ make
$ sudo make install

Download and compile ffmpeg

$ ./configure --prefix=/usr --enable-gpl --enable-postproc --enable-nonfree  --enable-libx264 --enable-libmp3lame --enable-libfaac

2 Comments

Hi there, This is a nice

Hi there,

This is a nice source and i thank you for posting it, however I noticed it is fairly generic and i am wondering if you have more indepth knowledge because I am having some issues with x264 lavf support...

Have you got x264 to compile with lavf support once you have compiled and installed ffmpeg? and do you think it's necessary for building all the other components or would the repo installs suffice for all the others except vorbis, x264, libvpx and ffmpeg?

Any assistance would be appreciated because all I can see out there is support and guides for ubuntu and having followed those I still can't get x264 built with lavf support :S

Hope you can help out with this or perhaps you know of some forums I might be able to get some help from?

Add new comment