Install Media Tools Linux
Install Media Tools Linux
Install Media Tools Linux
Sign In
Home
Mian Channu
Islamic
News
Islamic
| Register
Poetry
Videos
Kitchen Corner
Articles
Politicians
Contact Us
This installation are full and complete installation for latest release of ffmpeg/mplayer/x264 and other
module on 28-12-2009 and tested working on Centos 5.3 x86_64 or rhel server, below installation work
for major media script.
Edit the /etc/ld.so.conf file and add the following lines
vi /etc/ld.so.conf
/usr/local/lib
/usr/lib
then run : ldconfig
Installing libraries
add rpmforge or dag repos for yum:
RHEL5 / CentOS-5
for i386:
wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.i386.rpm
rpm -ivh rpmforge-release-0.5.1-1.el5.rf.i386.rpm
for x86_64:
wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm
rpm -ivh rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm
for PPC:
wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.ppc.rpm
rpm -ivh rpmforge-release-0.5.1-1.el5.rf.ppc.rpm
Run the below command
yum install zlib-devel automake autoconf gcc gmake make libcpp libgcc libstdc++ gcc4 gcc4-c++
gcc4-gfortran gcc-c++ mesa-libGL-devel mesa-libGLU-devel libXi-devel libXmu-devel freeglut-devel
freeglut libtool ncurses-devel
pdfcrowd.com
Installing libraw1394
cd ..
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.
cd ..
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
pdfcrowd.com
Installing FAAD2
cd ..
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
cd ..
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
cd ..
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
cd ..
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
cd ..
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
pdfcrowd.com
Installing vorbistool
cd ..
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
cd ..
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
cd ..
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
cd ..
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
pdfcrowd.com
pdfcrowd.com
install yamdi:
cd ..
yum install yamdi
OR
cd ..
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/
Installing FFMPEG
after library installed please run : ldconfig -v
get and download ffmpeg using svn, make sure you install subversion first before begin, a tutorial for
installing subversion is:
pdfcrowd.com
Installing FFMpeg
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk 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-pthreads --enablex11grab --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libdc1394 --enable-libfaac -enable-libfaad --enable-libmp3lame --enable-libopenjpeg --enable-libspeex --enable-libtheora --enablelibvorbis --enable-libx264 --enable-libxvid --enable-zlib
make && make install
pdfcrowd.com
cd ..
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/
cd /usr/local/src/
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 ..
svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer
cd /usr/local/src/mplayer
svn update
cd mplayer
./configure
make && make install
Installing mediainfo
cd ..
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
cd ..
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-php
pdfcrowd.com
cd ..
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
extension=ffmpeg.so
you can find your php.ini path using:
php -i | grep php.ini
save and restart your apache/httpd.
Error:
/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
Fix:
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.
to check installed module:
which php ffmpeg mplayer mencoder flvtool2 yamdi MP4Box neroAacEnc mediainfo
pdfcrowd.com
Comments
Add New Article
Articles by Categories
Pakistan
Quaid-e-Azam
(1)
Programming
PHP
(10)
FFMpeg (3)
Total Members: 88
Active Members: 0
Mian Channu
Mian Channu
Interviews
Active Guests: 3
Total : 3
Online:
Go To:
Baba mian Channu
Personalities
Islamic (Q & A)
Contact Us
News
Poetry
Who we are?
pdfcrowd.com
Interviews
Personalities
Videos
Politicians
City Directory
Kitchen Corner
More...
News Archives
Emergency Number
Articles
Advertise With Us
Report a Bug / Error
Contact Us
pdfcrowd.com