Start a Chat Sales: 0800 862 0890 Client Area
Results 1 to 3 of 3

Thread: Install FFMPEG on LINUX server

  1. #1
    Jeffrey is offline Moderator
    Join Date
    Nov 2010
    Posts
    131

    Default Install FFMPEG on LINUX server

    How to install FFMPEG on LINUX server

    I got the script from my technical team member roonie. The procedure will guide you how to install the FFMPEG on any of the Linux cPanel server. Please follow the steps for installation of ffmpeg on the cpanel server. But Every time I got new errors. so I have found these manually FFMPG installation.

    ================================
    Download the required files for it processing :

    cd /usr/local/src

    Quote:
    wget Download LAME (Lame Aint an MP3 Encoder) from SourceForge.net
    wget http://downloads.xiph.org/releases/o...g-1.1.3.tar.gz
    wget http://downloads.xiph.org/releases/v...s-1.1.2.tar.gz
    wget http://www1.mplayerhq.hu/MPlayer/rel...061022.tar.bz2
    Extract All Files :
    --------------------------------------------
    tar zxvf lame-3.97.tar.gz
    tar zxvf libogg-1.1.3.tar.gz
    tar zxvf libvorbis-1.1.2.tar.gz
    tar jxvf essential-20061022.tar.bz2
    --------------------------------------------

    chown root.root * -R

    yum install subversion ruby ncurses-devel

    svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
    If you are using secure tmp:

    --------------------------------------------
    mkdir /usr/local/src/tmp
    chmod 777 /usr/local/src/tmp
    export TMPDIR=/usr/local/src/tmp
    Installing Lame:
    --------------------------------------------


    cd /usr/local/src/lame-3.97
    ./configure
    make && make install
    Installing Libogg:

    --------------------------------------------
    cd /usr/local/src/libogg-1.1.3
    ./configure && make && make install
    Installing libvorbis:
    --------------------------------------------

    cd /usr/local/src/libvorbis-1.1.2

    export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig

    ./configure && make && make install
    Installing flvtool2:
    Quote:
    gem install flvtool2
    Installing ffmpeg:

    --------------------------------------------
    cd /usr/local/src/ffmpeg/
    ./configure --enable-libmp3lame --enable-libvorbis --disable-mmx --enable-shared
    make && make install

    ln -s /usr/local/lib/libavformat.so.52 /usr/lib/libavformat.so.52
    ln -s /usr/local/lib/libavformat.so.52 /usr/lib/libavformat.so.52
    ln -s /usr/local/lib/libavcodec.so.52 /usr/lib/libavcodec.so.52
    ln -s /usr/local/lib/libavutil.so.50 /usr/lib/libavutil.so.50
    ln -s /usr/local/lib/libmp3lame.so.0 /usr/lib/libmp3lame.so.0
    ln -s /usr/local/lib/libavformat.so.52 /usr/lib/libavformat.so.52
    ln -s /usr/local/lib/libavfilter.so.1 /usr/lib/libavfilter.so.1
    ln -s /usr/local/lib/libswscale.so.0 /usr/lib/libswscale.so.0
    ln -s /usr/local/lib/libogg.so.0 /usr/lib/libogg.so.0
    ln -s /usr/local/lib/libogg.so.0 /usr/lib/libogg.so.0

    Installing ffmpeg-php:
    --------------------------------------------
    cd /usr/local/src

    svn co https://ffmpeg-php.svn.sourceforge.n...oot/ffmpeg-php ffmpeg-php

    cd /usr/local/src/ffmpeg-php/trunk/ffmpeg-php

    phpize
    ./configure

    cp ffmpeg_frame.loT ffmpeg_frame.lo

    make && make install
    cp /usr/local/lib/php/extensions/no-debug-non-zts-20060613/ffmpeg.so /usr/local/lib/php/extensions/

    Install mplayer & mencoder:
    --------------------------------------------
    mkdir /usr/local/lib/codecs/

    mv /usr/local/src/essential-20061022/* /usr/local/lib/codecs/
    chmod -R 755 /usr/local/lib/codecs/

    later
    --------------------------------------------
    yum install mplayer mencoder
    --------------------------------------------

    Restart apache:
    UK VPS Hosting || SEO Server || Cloud Hosting
    Looking for extra income ?
    Join our webhosting affiliate program and earn upto 300 Webhosting UK Affiliate

  2. #2
    ~Phil~'s Avatar
    ~Phil~ is offline Member
    Join Date
    Aug 2010
    Posts
    32

    Default

    Hello Jeffrey,

    I Thank Jeffrey and Ronnie fully endorse the steps provided here to install FFMPEG on LINUX server.

    The steps here are manual way of installing FFMPEG, if you wish to do the same thing in automated way here is the script.

    Please follow these steps carefully.
    1. root@server [~]# cd /usr/src/ (to go into the directory /usr/src/ )

    2. root@server [~]# Download ffmpeginstaller 3 series Latest Stable Release at using the following command
    root@server [~]# wget http://mirror.ffmpeginstaller.com/ol...l.3.2.1.tar.gz

    Note: ffmpeginstaller 3 scripts will install stable versions of all binaries. ffmpeginstaller version 4 will install all latest dependencies of ffmpeg and mplayer, and also use svn version of ffmpeg and mplayer. Version 4 and 5 may cause problem on your VPS. I recommend you install Version 3.

    3. root@server [~]# Unzip the file
    tar -xzvf ffmpeginstall.3.2.1.tar.gz
    cd ffmpeginstall.3.2.1

    4. Run the installer.
    root@server [~]# ./install.sh

    The script will find your php.ini, enter the php.ini full path to confirm the installation.

    Which generally can be found out using the command

    root@server [~]# php -i | grep php.ini
    Configuration File (php.ini) Path => /usr/local/lib
    Loaded Configuration File => /usr/local/lib/php.ini
    Just use the above path and you are done..!

    To check if the FFMPEG is installed successfully use the following command and check the output. If you get this output consider job well done..!

    root@server [~]#which ffmpeg
    /usr/bin/ffmpeg

  3. #3
    Jeffrey is offline Moderator
    Join Date
    Nov 2010
    Posts
    131

    Default

    Quote Originally Posted by ~Phil~ View Post
    Hello Jeffrey,

    I Thank Jeffrey and Ronnie fully endorse the steps provided here to install FFMPEG on LINUX server.

    The steps here are manual way of installing FFMPEG, if you wish to do the same thing in automated way here is the script.

    Please follow these steps carefully.


    Just use the above path and you are done..!

    To check if the FFMPEG is installed successfully use the following command and check the output. If you get this output consider job well done..!
    Thanks Phil for the updates
    UK VPS Hosting || SEO Server || Cloud Hosting
    Looking for extra income ?
    Join our webhosting affiliate program and earn upto 300 Webhosting UK Affiliate

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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
  •  
Copyright 2001-2013 Web Hosting UK. All rights reserved.