How to install ffmepg

Version 1, last updated by digitalspaghetti at Apr 27 05:46 2007 UTC
This tutorial is only for *nix installations.  If you know how to do this for windows, please feel free to contact me to add it.

Installation on Debian/Ubuntu

  1. First of all you need to install the build packages for Ffmpeg to be able to encode sound with FLV:
    sudo apt-get build-dep ffmpeg
    sudo apt-get install liblame-dev libfaad2-dev libfaac-dev libxvidcore4-dev liba52-0.7.4 liba52-0.7.4-dev libx264-dev checkinstall build-essential gcc
  2. Next, go to your home directory and get the sourcecode:
    sudo apt-get source ffmpeg
  3. Next configure and compile the source:
    cd ffmpeg-*
    sudo ./configure --enable-gpl --enable-pp --enable-vorbis --enable-libogg \
    --enable-a52 --enable-dts --enable-dc1394 --enable-libgsm --disable-debug \
    --enable-mp3lame --enable-faad --enable-faac --enable-xvid --enable-pthreads \
    --enable-x264
    sudo make
    sudo checkinstall
  4. Next we need to install FLVtools2.  This requires Ruby to be installed:
    sudo apt-get install ruby
  5. Get the FLVTools source from here
  6. Untar the source and set up:
    sudo ruby install.rb config
    sudo ruby install.rb setup
    sudo ruby install.rb install
  7. Your installation is now set up.  Make sure to configure your paths in the ffmpeg.php file in the vendors folder, also make sure your write permissions are set up for the webroot/files directory to chmod 755