Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to install Mencoder/Mplayer/ffmpeg/flvtool2/mediainfo/mp4box/neroAacEnc on Centos
How to install Mencoder/Mplayer/ffmpeg/flvtool2/mediainfo/mp4box/neroAacEnc on CEntos 5.x

Install FFMPEG

Login via ssh root to your server and type the following command:

1 rpm -Uhv

1 rpm -Uhv
This will add a new yum repository, GPG keys that are for safelly installing RPMforge packages.

Now type:

1 yum install ffmpeg
cd ..

The ffmpeg path is: /usr/bin/ffmpeg

If you also need ffmpeg-devel (for example to compile ffmpeg-php), just type:

1 yum install ffmpeg-devel
cd ..

Install Mencoder/Mplayer

login as root

yum install mencoder mplayer


yum install –skip-broken mencoder mplayer


Install FLVtool2

Note: this guide is for centos 5.x with WHM/cpanel version 11+

Login as root

1. check if ruby is installed first

ruby -v

2. You can check whether Ruby is already installed by logging to the Server under SSH and issuing the following command:

yum list ruby

3. Once you make sure that Ruby is not already installed, execute the following script to install Ruby:



yum install [RUBY.VERSION]

this may take a while……………

4. Once ruby is installed download flvtool2:

1 wget -c https://ffmpeg-install-centos.googlecode...-1.0.6.tgz
2 tar -zxf flvtool2-1.0.6.tgz
3 cd flvtool2-1.0.6
4 ruby setup.rb config
5 ruby setup.rb setup
6 ruby setup.rb install
cd ..

Flvtool2 is now installed in /usr/bin/flvtool2. The installed flvtool2 is perfectly compatible with Adult Video Script (avs), Clipshare, MediaXXXScript and AdultWatchPro.

*****if your using a different cpanel version follow this:

tar zxvf ruby-1.6.8.tar.gz
cd ruby-1.6.8
make && make install

Install mediainfo

this is for centos 6.x x86_64 , check yours here

login as root and do the following:

Then do the following:

rpm -vi wxGTK-2.8.12-1.x86_64.CentOS_6.rpm

rpm -vi libzen0-0.4.29-1.x86_64.CentOS_6.rpm

rpm -vi libmediainfo0-0.7.69-1.x86_64.CentOS_6.rpm

rpm -vi mediainfo-0.7.69-1.x86_64.CentOS_6.rpm

rpm -vi mediainfo-gui-0.7.69-1.x86_64.CentOS_6.rpm


Install MP4box

1) Download MP4Box
Execute Following commands on Shell to Download the MP4Box Source

[[email protected] ~]# cd /usr/local/src/
[[email protected] src]# wget
[[email protected] src]# wget
“gpac-0.5.0.tar.gz” is Main Source for MP4Box where as “gpac_extra_libs-0.4.5.tar.gz” contains Extra Libraries which will enhance the functionality of MP4Box.

2) Extract the Downloaded sources
Extract both the downloaded files using Tar

[[email protected] src]# tar -zxvf gpac-0.5.0.tar.gz
[[email protected] src]# tar -zxvf gpac_extra_libs-0.4.5.tar.gz
3) Copy the Additional Libraries from “gpac_extra_libs” to “gpac” folder

[[email protected] src]# cd gpac_extra_libs
[[email protected] gpac_extra_libs]# cp -r * /usr/local/src/gpac/extra_lib
[[email protected] gpac_extra_libs]# cd ..
4) Install GPac or MP4Box

Execute following Commands on the Shell of your Linux Server one after one (Make sure it doesn’t throw any Error)

[[email protected] src]# cd gpac
[[email protected] gpac]# chmod +x configure
[[email protected] gpac]# ./configure
[[email protected] gpac]# make lib
If you have an ERROR like below:-

/usr/bin/ld: cannot find -lglut
collect2: ld returned 1 exit status

Do this otherwise proceed with make apps:

[[email protected] gpac]#ls /usr/lib64 |grep glut
[[email protected] gpac]# ln -s /usr/lib64/ /usr/lib64/

other solution: yum install freeglut*

[[email protected] gpac]# make apps
[[email protected] gpac]# make install lib
[[email protected] gpac]# make install

5) Once GPAC get installed Properly, copy the gpac .so file from gpac directory to System libraries

[[email protected] gpac]# cp bin/gcc/ /usr/lib

Thats all. you can verify if the MP4Box is installed or not using following Command.

[[email protected] gpac]# which MP4Box /usr/local/bin/MP4Box
Problems Faced While installation.

I have faced two problems while installation of MP4Box

1) Permission of “./Configure” was not set; I have corrected it by setting permission of the file to 755

[[email protected] gpac]# ./configure
-bash: ./configure: Permission denied
[[email protected] gpac]# chmod 755 configure
2) Error on 64 Bit OS. Following Error was thrown. This Error can be fixed by creating an symbolic link of /usr/lib64/ to /usr/lib64/

/usr/bin/ld: cannot find -lglut
collect2: ld returned 1 exit status


[[email protected] gpac]#ls /usr/lib64 |grep glut
[[email protected] gpac]# ln -s /usr/lib64/ /usr/lib64/

Installing neroAacEnc

unzip -d nero
cd nero/linux
sudo install -D -m755 neroAacEnc /usr/bin
cd ..

Done! Big Grin
[Image: logo.png]
Cheapest web hosting starting with the lowest price of $ 0.5

Forum Jump:

Users browsing this thread: 1 Guest(s)