Cybernet Web Design - Web Design & Linux Server Administration
How to install Mencoder/Mplayer/ffmpeg/flvtool2/mediainfo/mp4box/neroAacEnc on CEntos - Printable Version

+- Cybernet Web Design - Web Design & Linux Server Administration (https://www.cybernetwebdesign.com)
+-- Forum: Web Server (https://www.cybernetwebdesign.com/forumdisplay.php?fid=1)
+--- Forum: FFMPEG and Codecs (https://www.cybernetwebdesign.com/forumdisplay.php?fid=2)
+--- Thread: How to install Mencoder/Mplayer/ffmpeg/flvtool2/mediainfo/mp4box/neroAacEnc on CEntos (/showthread.php?tid=2)



How to install Mencoder/Mplayer/ffmpeg/flvtool2/mediainfo/mp4box/neroAacEnc on CEntos - cybernetwebdesign - 05-12-2016

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:
x86:

1 rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
x86_64:

1 rpm -Uhv http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.3-1.el5.rf.x86_64.rpm
This will add a new yum repository, GPG keys that are for safelly installing RPMforge packages.

Now type:

1 yum install ffmpeg
cd ..
Done!

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 ..
Done.

Install Mencoder/Mplayer

login as root

yum install mencoder mplayer

or

yum install –skip-broken mencoder mplayer



done.

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:

/scripts/installruby

or

yum install [RUBY.VERSION]

this may take a while……………

4. Once ruby is installed download flvtool2:

1 wget -c https://ffmpeg-install-centos.googlecode.com/files/flvtool2-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 ..
done.

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:

wget http://ftp.ftp.ruby-lang.org/pub/ruby/ruby-1.6.8.tar.gz
tar zxvf ruby-1.6.8.tar.gz
cd ruby-1.6.8
./configure
make && make install


Install mediainfo

this is for centos 6.x x86_64 , check yours here http://mediainfo.sourceforge.net/en/Download/CentOS

login as root and do the following:

wget http://downloads.sourceforge.net/zenlib/wxGTK-2.8.12-1.x86_64.CentOS_6.rpm
wget http://mediaarea.net/download/binary/libzen0/0.4.29/libzen0-0.4.29-1.x86_64.CentOS_6.rpm
wget http://mediaarea.net/download/binary/libmediainfo0/0.7.69/libmediainfo0-0.7.69-1.x86_64.CentOS_6.rpm
wget http://mediaarea.net/download/binary/mediainfo/0.7.69/mediainfo-0.7.69-1.x86_64.CentOS_6.rpm
wget http://mediaarea.net/download/binary/mediainfo-gui/0.7.69/mediainfo-gui-0.7.69-1.x86_64.CentOS_6.rpm
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

done.

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 http://nchc.dl.sourceforge.net/project/gpac/GPAC/GPAC%200.5.0/gpac-0.5.0.tar.gz
[[email protected] src]# wget http://nchc.dl.sourceforge.net/project/gpac/GPAC%20extra%20libs/GPAC%20extra%20libs%200.4.5/gpac_extra_libs-0.4.5.tar.gz
“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 libglut.so.3
[[email protected] gpac]# ln -s /usr/lib64/libglut.so.3 /usr/lib64/libglut.so



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/libgpac.so /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/libglut.so.3 to /usr/lib64/libglut.so
ERROR:-

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

FIX:-

[[email protected] gpac]#ls /usr/lib64 |grep glut
libglut.so.3
[[email protected] gpac]# ln -s /usr/lib64/libglut.so.3 /usr/lib64/libglut.so
Done!

Installing neroAacEnc

wget http://ftp.ftp6.nero.com/tools/NeroDigitalAudio.zip
unzip NeroDigitalAudio.zip -d nero
cd nero/linux
sudo install -D -m755 neroAacEnc /usr/bin
cd ..

Done! Big Grin