This installation are full and complete installation for latest release of Ffmpeg Mplayer Mencoder X264,Qt-faststart, Flvtool2, Yamdi, On Centos/RHEL and additional modules step by step.
Edit the /etc/ld.so.conf file and add the following lines
/usr/lib
then run : ldconfig
Installing libraries
Install the additional repo
Update repository
Install all necessary packages
install yasm 0.8.0
#wget http://www.tortall.net/projects/yasm/releases/yasm-0.8.0.tar.gz
#tar zxvf yasm-0.8.0.tar.gz
#cd yasm-0.8.0
#./configure
#make && make install
Installing opencore-amr
#wget http://sourceforge.net/projects/opencore-amr/files/opencore-amr/0.1.2/opencore-amr-0.1.2.tar.gz/download
#tar zxvf opencore-amr-0.1.2.tar.gz
#cd opencore-amr-0.1.2
#./configure && make && make install
Installing libraw1394
#wget http://www.kernel.org/pub/linux/libs/ieee1394/libraw1394-1.3.0.tar.gz
#tar zxfv libraw1394-1.3.0.tar.gz
#cd libraw1394-1.3.0
#./configure
#make dev
#make && make install
Installing libdc1394
This project requires libraw1394, you must build it first.
#wget http://sourceforge.net/projects/libdc1394/files/libdc1394/1.2.2/libdc1394-1.2.2.tar.gz/download
#wget http://sourceforge.net/projects/libdc1394/files/libdc1394-2/2.1.2/libdc1394-2.1.2.tar.gz/download
#tar zxvf libdc1394-1.2.2.tar.gz
#tar zxvf libdc1394-2.1.2.tar.gz
#cd libdc1394-1.2.2
#./configure
#make && make install
#cd ../libdc1394-2.1.2
#./configure
#make && make install
Installing FAAD2
#wget http://downloads.sourceforge.net/faac/faad2-2.6.1.tar.gz
#tar zxf faad2-2.6.1.tar.gz
#cd faad2
#autoreconf -vif
#./configure
#make && make install
Installing FAAC
#wget http://downloads.sourceforge.net/faac/faac-1.26.tar.gz
#tar zxfv faac-1.26.tar.gz
#cd faac
#./bootstrap
#./configure –disable-mp4v2
#make && make install
Installing libmp3lame
#wget http://sourceforge.net/projects/lame/files/lame/3.98.2/lame-398-2.tar.gz/download
#tar zxvf lame-398-2.tar.gz
#cd lame-398-2
#./configure
#make && make install
Installing OpenJPEG
#wget http://openjpeg.googlecode.com/files/openjpeg_v1_3.tar.gz
#tar zxvf openjpeg_v1_3.tar.gz
#cd OpenJPEG_v1_3
#make && make install
Installing libogg
#wget http://downloads.xiph.org/releases/ogg/libogg-1.1.4.tar.gz
#tar zvxf libogg-1.1.4.tar.gz
#cd libogg-1.1.4
#./configure
#make && make install
Installing libvorbis
#wget http://downloads.xiph.org/releases/vorbis/libvorbis-1.2.3.tar.gz
#tar zvxf libvorbis-1.2.3.tar.gz
#cd libvorbis-1.2.3
#./configure
#make && make install
Installing vorbistool
#wget http://downloads.xiph.org/releases/vorbis/vorbis-tools-1.2.0.tar.gz
#tar zvxf vorbis-tools-1.2.0.tar.gz
#cd vorbis-tools-1.2.0
#./configure
#make && make install
Installing libtheora
#wget http://downloads.xiph.org/releases/theora/libtheora-1.1.1.tar.bz2
#tar jvxf libtheora-1.1.1.tar.bz2
#cd libtheora-1.1.1
#./configure
#make && make install
Installing libspeex
#wget http://downloads.xiph.org/releases/speex/speex-1.2rc1.tar.gz
#tar zvxf speex-1.2rc1.tar.gz
#cd speex-1.2rc1
#./configure
#make && make install
Installing Xvid
#wget http://downloads.xvid.org/downloads/xvidcore-1.2.2.tar.gz
#tar zvxf xvidcore-1.2.2.tar.gz
#cd xvidcore/build/generic
#./configure
#make && make install
Installing gpac & MP4Box
#wget http://downloads.sourceforge.net/gpac/gpac-0.4.5.tar.gz
#wget http://downloads.sourceforge.net/gpac/gpac_extra_libs-0.4.5.tar.gz
#tar zxvf gpac-0.4.5.tar.gz
#tar zxvf gpac_extra_libs-0.4.5.tar.gz
#cd gpac
#cp -r ../gpac_extra_libs/* extra_lib/
#chmod +x configure
#./configure
#make lib
#make apps
#make install-lib
#make install
#cp bin/gcc/libgpac.so /usr/lib
Installing latest x264
#git clone git://git.videolan.org/x264.git
#cd x264
#./configure –enable-pthread –enable-mp4-output –enable-shared
#make
#make install
Installing flvtool2 & yamdi
You need ruby to be installed before installing flvtool2, please do as following if you on cpanel server
if on other server please use:
#wget 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
ignore above step if you have ruby install on your server.
install flvtool2:
#wget http://rubyforge.org/frs/download.php/17497/flvtool2-1.0.6.tgz
#tar xvzf flvtool2-1.0.6.tgz
#cd flvtool2-1.0.6/
#ruby setup.rb config
#ruby setup.rb setup
#ruby setup.rb install
install yamdi:
#yum install yamdi
OR
#cd /usr/local/src
#wget http://downloads.sourceforge.net/project/yamdi/yamdi/1.4/yamdi-1.4.tar.gz?use_mirror=nchc
#tar -zxvf yamdi-1.4.tar.gz
#cd yamdi-1.4
#gcc yamdi.c -o yamdi -O2 -Wall
#mv yamdi /usr/bin/
after library installed please run : ldconfig -v
Installing Mplayer & Mencoder
#wget http://www1.mplayerhq.hu/MPlayer/releases/codecs/all-20071007.tar.bz2
#tar jxvf all-20071007.tar.bz2
#mv /usr/local/src/all-20071007/ /usr/local/lib/codecs/
#chmod -R 755 /usr/local/lib/codecs/
#cd /usr/local/src/
#wget http://www.mplayerhq.hu/MPlayer/releases/codecs/essential-20071007.tar.bz2
#tar xjvf essential-20071007.tar.bz2
#mv /usr/local/src/essential-20071007/ /usr/local/lib/codecs/
#chmod -R 755 /usr/local/lib/codecs/
#svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer
#cd /usr/local/src/mplayer
#svn update
#cd mplayer
#./configure
#make && make install
Installing mediainfo
#wget http://downloads.sourceforge.net/zenlib/libzen0-0.4.9-1.x86_64.CentOS_5.rpm
#rpm -ivh libzen0-0.4.9-1.x86_64.CentOS_5.rpm
#wget http://downloads.sourceforge.net/mediainfo/libmediainfo0-0.7.26-1.x86_64.CentOS_5.rpm
#rpm -ivh libmediainfo0-0.7.26-1.x86_64.CentOS_5.rpm
#wget http://downloads.sourceforge.net/mediainfo/mediainfo-0.7.26-1.x86_64.CentOS_5.rpm
#rpm -ivh mediainfo-0.7.26-1.x86_64.CentOS_5.rpm
Installing neroAacEnc
#wget ftp://ftp6.nero.com/tools/NeroDigitalAudio.zip
#unzip NeroDigitalAudio.zip -d nero
#cd nero/linux
#sudo install -D -m755 neroAacEnc /usr/local/bin
Installing FFMpeg
#cd ffmpeg
#mkdir /usr/local/src/tmp
#chmod 777 /usr/local/src/tmp
#export TMPDIR=/usr/local/src/tmp
#./configure –enable-shared –enable-gpl –enable-version3 –enable-nonfree –enable-avfilter –enable-avfilter-lavf –enable-libdirac –enable-libfaac –enable-libfaad –enable-libfaadbin –enable-libgsm –enable-libmp3lame –enable-libopencore-amrnb –enable-libopencore-amrwb –enable-libx264 –enable-gpl –enable-nonfree –enable-postproc –enable-pthreads –enable-shared –enable-swscale –enable-vdpau –enable-version3 –enable-x11grab
make && make install
Installing ffmpeg-php
#wget http://sourceforge.net/projects/ffmpeg-php/files/ffmpeg-php/0.6.0/ffmpeg-php-0.6.0.tbz2/download
#tar jxvf ffmpeg-php-0.6.0.tbz2
#cd ffmpeg-php-0.6.0
#phpize
#./configure
#make
#make install
add below line to your php.ini
you can find your php.ini path using:
save and restart your apache/httpd.
/root/ffmpeg-php-0.5.0/ffmpeg_frame.c:495: error: ‘PIX_FMT_RGBA32? undeclared (first use in this function)
make: *** [ffmpeg_frame.lo] Error 1
1. Open the file “/root/ffmpeg-php-0.5.0/ffmpeg_frame.c” using vi editor.
2. Go to the line you are getting this error. [In this example, line #495].
3. Execute the following command.
Press ESC and :%s/PIX_FMT_RGBA32/PIX_FMT_RGB32
4. Save the file and recompile it once again.
