Hello Guest, if you read this, it means you are not registered. Click here to register a few simple steps, you will enjoy all the features of our Forum. Please note that nicknames are prohibited lewd or meaningless (no numbers or letters at random) and introduce yourself in the section for you to meet our community.
How to install ffmpeg on a Linux Server
Results 1 to 3 of 3

Thread: How to install ffmpeg on a Linux Server

  1. #1
    Put some ZEN in your site GOZEN's Avatar
    Join Date
    Apr 2012
    Location
    127.0.0.1
    Posts
    235
    Blog Entries
    37
    Thanks
    12
    Thanked 8 Times in 8 Posts
    Downloads
    8
    Uploads
    4

    How to install ffmpeg on a Linux Server

    Installing ffmpeg on a Linux server (in our case on a Centos distro) it's not always that difficult. Assuming that you have the proper repos already you can use the following installation procedure to get ffmpeg installed.

    It will install most of the dependencies automatically and you can download installer from here
    http://nchc.dl.sourceforge.net/sourceforge/ffmpeginstall/ffmpeginstall.3.1.tar.gz

    Code:
    wget http://nchc.dl.sourceforge.net/sourc...all.3.1.tar.gz
    tar -xvzf ffmpeginstall.3.1.tar.gz
    cd ffmpeginstall.3.1
    ./install.sh
    Customer Satisfaction is our main goal !!!
    Our Support team is always there for you 24/7/365
    Support Request
    Forums
    GoZen Host

  2. #2
    Put some ZEN in your site GOZEN's Avatar
    Join Date
    Apr 2012
    Location
    127.0.0.1
    Posts
    235
    Blog Entries
    37
    Thanks
    12
    Thanked 8 Times in 8 Posts
    Downloads
    8
    Uploads
    4

    Install ffmpeg and tools manually

    And there are other numerous cases that you have to install all that manually.

    Code:
    cd /usr/local/src/
    
     DOWNLOAD MODULES
    wget http://www.mplayerhq.hu/MPlayer/rele...061022.tar.bz2
    wget rubyforge.org/frs/download.php/9225/flvtool2_1.0.5_rc6.tgz
    wget easynews.dl.sourceforge.net/sourceforge/lame/lame-3.97.tar.gz
    wget superb-west.dl.sourceforge.net/sourceforge/ffmpeg-php/ffmpeg-php-0.5.1.tbz2
    wget downloads.xiph.org/releases/ogg/libogg-1.1.3.tar.gz
    wget downloads.xiph.org/releases/vorbis/libvorbis-1.1.2.tar.gz
    
    EXTRACT MODULES
    tar zxvf lame-3.97.tar.gz
    tar zxvf libogg-1.1.3.tar.gz
    tar zxvf libvorbis-1.1.2.tar.gz
    tar zxvf flvtool2_1.0.5_rc6.tgz
    tar jxvf essential-20061022.tar.bz2
    tar jxvf ffmpeg-php-0.5.1.tbz2
    
    mkdir /usr/local/lib/codecs/
    
    yum install gcc gmake make libcpp libgcc libstdc++ gcc4 gcc4-c++ gcc4-gfortran subversion ruby ncurses-devel -y
    
    DOWNLOAD FFMPEG and MPLAYER
    svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
    svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer
    cd /usr/local/src/mplayer
    
    svn update
    cd /usr/local/src/
    mv /usr/local/src/essential-20061022/* /usr/local/lib/codecs/
    chmod -R 755 /usr/local/lib/codecs/
    
    LAME:
    cd /usr/local/src/lame-3.97
    ./configure
    make && make install
    
    LIBOGG
    cd /usr/local/src/
    cd /usr/local/src/libogg-1.1.3
    ./configure --enable-shared && make && make install
    PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
    export PKG_CONFIG_PATH
    
    LIBVORBIS
    cd /usr/local/src/
    cd /usr/local/src/libvorbis-1.1.2
    ./configure && make && make install
    
    FLVTOOL2
    cd /usr/local/src/
    cd /usr/local/src/flvtool2_1.0.5_rc6/
    ruby setup.rb config
    ruby setup.rb setup
    ruby setup.rb install
    
    MPLAYER
    cd /usr/local/src/
    cd /usr/local/src/mplayer
    ./configure && make && make install
    
    cd /usr/local/src/
    
    FFMPEG:
    cd /usr/local/src/ffmpeg/
    ./configure --enable-libmp3lame --enable-libvorbis --disable-mmx --enable-shared
    make
    make install
    
    export LD_LIBRARY_PATH=/usr/local/lib/
    
    ln -s /usr/local/lib/libavformat.so.50 /usr/lib/libavformat.so.50
    ln -s /usr/local/lib/libavcodec.so.51 /usr/lib/libavcodec.so.51
    ln -s /usr/local/lib/libavutil.so.49 /usr/lib/libavutil.so.49
    ln -s /usr/local/lib/libmp3lame.so.0 /usr/lib/libmp3lame.so.0
    ln -s /usr/local/lib/libavformat.so.51 /usr/lib/libavformat.so.51
    
    FFMPEG-PHP:
    cd /usr/local/src/
    cd /usr/local/src/ffmpeg-php-0.5.1/
    phpize
    ./configure
    make
    make install
    
    
     INFO: Make sure this is the correct php.ini for your installation!!
    
    echo 'extension=ffmpeg.so' >> /usr/local/Zend/etc/php.ini
    
    INFO: Make sure this is the correct php.ini for the box!!
    
     RESTART APACHE
    service httpd restart
    Last edited by GOZEN; 10-17-2012 at 08:51 PM.
    Customer Satisfaction is our main goal !!!
    Our Support team is always there for you 24/7/365
    Support Request
    Forums
    GoZen Host

  3. #3
    Put some ZEN in your site GOZEN's Avatar
    Join Date
    Apr 2012
    Location
    127.0.0.1
    Posts
    235
    Blog Entries
    37
    Thanks
    12
    Thanked 8 Times in 8 Posts
    Downloads
    8
    Uploads
    4
    If you get an error while installing FFMPEG-PHP
    Code:
    checking for ffmpeg support... yes, shared
    checking for ffmpeg headers... configure: error: ffmpeg headers not found. Make sure you've built ffmpeg as shared libs using the --enable-shared option
    Then you can do as follows in order to sort this out just copy and paste the following commands on the shell of your server and re-run the “./configure” for FFMPEG-PHP:
    Code:
    mkdir /usr/local/include/ffmpeg
    cp /usr/local/include/libavcodec/* /usr/local/include/ffmpeg
    cp /usr/local/include/libavdevice/* /usr/local/include/ffmpeg
    cp /usr/local/include/libavformat/* /usr/local/include/ffmpeg
    cp /usr/local/include/libavutil/* /usr/local/include/ffmpeg
    cp /usr/local/include/libswscale/* /usr/local/include/ffmpeg
    Customer Satisfaction is our main goal !!!
    Our Support team is always there for you 24/7/365
    Support Request
    Forums
    GoZen Host

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •