Results 1 to 6 of 6

Thread: Steps to install ffmpeg on Linux Server

  1. #1
    Join Date
    Nov 2010
    Posts
    62

    Steps to install ffmpeg on Linux Server

    I am having two version of operating system installed on my system. The two versions that I am using are Microsoft windows XP and a Linux operating system (suse). Few days back I downloaded latest version of ffmpeg. I tried to perform the installation on my suse Linux server. But the installation is not successful and it displays an error message while loading library saying that "Error:File and directory not found".

  2. #2
    Join Date
    Nov 2009
    Posts
    758

    Re: Steps to install ffmpeg on Linux Server

    Steps to perform the installation of ffmpeg on Linux server is as follows:

    • PHP must be installed when performing ffmpeg installation. Go and edit /etc/yum.repos.d/CentOS-Base.repo and add these lines below to that file.
      Code:
      [dag]
      name=Dag RPM Repository for Centos
      baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
      enabled=1
    • Then type the command mkdir -p /root/setup/ & cd /root/setup/
    • You should check out svn by entering the following URL: svn://svn.mplayerhq.hu/ffmpeg/trunk/ ffmpeg -r15261
    • Type cd ffmpeg/ & run export TMPDIR=/root/setup/ << export /tmp directory.
    • To configure it type the following command ./configure --enable-libmp3lame --disable-mmx --enable-shared --disable-demuxer=v4l --disable-demuxer=v4l2
    • Click on make install and export export TMPDIR=/tmp
    • Type cd /root/setup and then enter echo "/usr/local/lib" >> /etc/ld.so.conf & echo "/usr/lib" >> /etc/ld.so.conf
    • Type ldconfig and then you should provide ffmpeg version.

  3. #3
    Join Date
    Apr 2009
    Posts
    994

    Re: Steps to install ffmpeg on Linux Server

    ffmpeg is a freeware software available which will allow you to convert different types of video and audio files using different formats. It also supports different types of codec and can convert file from one format to another format easily.
    The ffmpeg requirements are as follows:
    FFMPEG
    LAME Mp3 Audio Codec
    AMR Audio Codec
    XVID Audio Codec
    FFMPEG-PHP

    The installation of ffmpeg is as follows:
    Download the ffmpeg from SVN website
    You need to assign 777 permission right to ffmpeg folder by typing the following command chmod 777 ffmepgfolder -R
    Navigate and go the root of ffmpeg and type
    ./configure –enable-libmp3lame –enable-libogg –enable-libvorbis –enable-libamr-nb –enable-libamr-wb –enable-libxvid –enable-gpl –enable-shared
    Click on make install. The installation will start.

  4. #4
    Join Date
    Apr 2009
    Posts
    970

    Re: Steps to install ffmpeg on Linux Server

    You can check whether your installed ffmpeg is working or not. To check the working of ffmpeg you need to type the below command:
    Code:
    > ffmpeg
    > ffmpeg -formats
    > ffmpeg --help
    The above command will provide the list path of mpeg , its modules and other path information. We can check the audio and video formats which are supported by ffmpeg by typing the below command:
    ffmpeg -formats > ffmpeg-format.txt
    It will show the output in the file named as “ffmpeg-formats.txt”
    D – It indicates decode
    E – It indicates encode
    V – It indicates video
    A – It indicates audio
    T – It indicates Truncated

  5. #5
    Join Date
    Apr 2009
    Posts
    1,107

    Re: Steps to install ffmpeg on Linux Server

    Steps are the steps to install ffmpeg from source rpm.
    1. First before starting installation make sure that rpmbuild installed on your system by using the following command i.e. [root@bordeaux saini]# rpm -q rpmbuild. If the above command says that rpm build is not installed then install it.
    2. Installation of rpm can be done by using following yum command i.e. [root@bordeaux saini]# yum install rpmbuild .
    3. Download latest src rpm of ffmpeg and type the following command i.e. [root@bordeaux saini]# rpm -hiv ffmpeg-x.x.x.xx-xxx.src.rpm
    4. Then go to Go to ‘/usr/src/redhat/SPECS/’ directory and type the below command i.e. [root@bordeaux saini]# cd /usr/src/redhat/SPECS/ and [root@bordeaux SPECS]# rpmbuild -ba ffmpeg.spec.
    5. If the above command displays an error like package not found then install the following package using yum command i.e. [root@bordeaux SPECS]# yum install package name.
    6. Issue rpmbuild command by typing rpmbuild -ba ffmpeg.spec and it will be created and stored in /usr/src/redhat/RPMS/i386/.
    7. Go /usr/src/redhat/RPMS/i386/ and install all the rpm that were build by rpms by following command i.e. [root@bordeaux saini]# rpm -hiv *.rpm. Now ffmpeg is successfully installed on your system.

  6. #6
    Join Date
    Nov 2009
    Posts
    865

    Re: Steps to install ffmpeg on Linux Server

    For ffmpeg we also need to install ffmpeg-php. To install ffmpeg-php we can follow the below steps:

    1. Install php-devel on your system by using the command i.e. [root@bordeaux saini]# rpm -q php-devel. If the above command says that rpm build is not installed then install it. Installation can be done by using following yum command i.e. [root@bordeaux saini]# yum install php-devel
    2. Download latest version of ffmpeg-php and unpack it using following command i.e. [root@bordeaux saini]# bunzip2 -d ffmpeg-php-0.5.1.tbz2 and [root@bordeaux saini]# tar -xvf ffmpeg-php-0.5.1.tar
    3. Then type the below command if everything is fine i.e. [root@bordeaux saini]# cd ffmpeg-php-0.5.1, [root@bordeaux ffmpeg-php-0.5.1]# phpize, [root@bordeaux ffmpeg-php-0.5.1]# ./configure, [root@bordeaux ffmpeg-php-0.5.1]# make and[root@bordeaux ffmpeg-php-0.5.1]# make install
    4. Open /etc/php.ini and type the following command and add it i.e. extension=ffmpeg.so in the category of dynamic extension.
    5. Restart the web server by using the following command i.e. [root@bordeaux saini]# service httpd restart
    6. Write the code to check ffmpeg-php installation i.e. phpinfo();

Similar Threads

  1. How to install SUSE Linux Enterprise Server 11
    By fumble in forum Guides & Tutorials
    Replies: 2
    Last Post: 14-06-2012, 11:53 AM
  2. Unable to install FFMPEG after installing Audacity 1.3.14
    By V.V.S. Kambli in forum Windows Software
    Replies: 7
    Last Post: 10-03-2012, 08:27 PM
  3. How to configure "ffmpeg" in SUSE Linux server?
    By vijay nahur in forum Operating Systems
    Replies: 4
    Last Post: 11-11-2010, 06:01 AM
  4. Need steps to install a FTP server in Windows 7
    By Jacques25 in forum Operating Systems
    Replies: 3
    Last Post: 01-09-2009, 08:56 PM
  5. Install linux server on IBM system
    By Finalo in forum Operating Systems
    Replies: 2
    Last Post: 10-02-2009, 11:35 PM

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
  •  
Page generated in 1,714,170,420.39669 seconds with 16 queries