Installeren ffmpeg mplayer flvtool2 yamdi x264 theora mp3lame ogg vorbis faac

 

 

Dit is een tutorial video delen ondersteuning Centos servers inschakelen.

Dit moet installeren ffmpeg, mplayer, mencoder, flvtool2, yamdi, x264, Theora, mp3lame, vorbis, Ogg, faac, faad2, XviD, MediaInfo, MP4box, neroaacenc . Deze hulpprogramma's zal schakelen op de server:

  • video- en audio conversie
  • Thumbnail generatie
  • FLV meta injectie (flvtool2, yamdi)
  • extra codecs (x264, Theora, mp3lame, vorbis, Ogg, faac, faad2, XviD)

Dit is functioneel en wij werken telkens die we een nieuwe server configureren.
Installatie is uitgevoerd met behulp van de “wortel” rekening.

 

Aandacht: Als u kopieert en opdrachten hieronder plakt, Zorg ervoor dat “-” niet worden geconverteerd naar “.”. Als deze worden geconverteerd, bewerken “.” terug naar “-“. Sommige opties gebruiken 2 * “-“.

Sommige vereisten:

 

rpm -ivh http://rpm.livna.org/livna-release.rpm

yum install libogg libogg-devel libvorbis libvorbis-devel
yum install x264 lame vorbis faac faad2 yamdi

De snelle manier om setup ffmpeg, mplayer, mencoder:

rpm - Uhv http://apt.sw.be/redhat/EL5/en/i386/RPMForge/RPMs/RPMForge-release-0.5.2-2.EL5.RF.i386.rpm

of hebt u een 64-bits server

rpm - Uhv http://apt.sw.be/redhat/EL5/en/x86_64/RPMForge/RPMs/RPMForge-release-0.5.2-2.EL5.RF.x86_64.rpm

yum install gcc gcc-c++ automake autoconf libtool yasm git subversion
yum install libogg zlib-devel libtool


yum install libogg-devel libvorbis libvorbis-devel
yum -y install ffmpeg ffmpeg-devel mplayer mencoder ffmpeg-libpostproc

 

 

Bewerk het /etc/ld.so.conf bestand en voeg de volgende regels:

/usr/local/lib
/usr/lib

GIT
(die nodig is om X264)

yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel

cd /usr/local/src
wget http://www.kernel.org/pub/software/scm/git/git-1.8.4.2.tar.gz
tar - zxvf git-1.8.4.2.tar.gz
CD git-1.8.4.2
maken prefix = / usr/local alle
maken prefix = / usr/local/install
Git –Versie
Of :
yum –disableexcludes = leiding installeert git
En git manpages:
cd /usr/local/src
wget http://www.kernel.org/pub/software/scm/git/git-manpages-1.6.0.4.tar.gz
cd /usr/local/share/man
tar - zxvf /usr/local/src/git-manpages-1.6.0.4.tar.gz

YASM

YASM is een modulaire assembler, het is vereist door de x264 pakket.

 

cd/usr/local/src /
wget http://www.Tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz
tar zfvx yasm-1.2.0.tar.gz
CD yasm-1.2.0
./configureren
maken && Maak installeren
cd ..

X264

cd/usr/local/src /
git clone git://Git.videolan.org/x264.git
cd /usr/local/src/x264
./configureren – -inschakelen-gedeeld – -prefix = / usr
maken && Maak installeren
ls -s /usr/local/lib/libx264.so /usr/lib/libx264.so
Essentiële Codecs
cd/usr/local/src /
wget http://www.mplayerhq.hu/MPlayer/releases/codecs/essential-20071007.tar.bz2
tar xjvf essential-20071007.tar.bz2
mkdir /usr/local/lib/codecs/
mv essential-20071007/ /usr/local/lib/codecs/
chmod -R 755 /usr/local/lib/codecs/

Of alle codecs:

cd/usr/local/src /

wget http://www.mplayerhq.hu/MPlayer/releases/codecs/all-20110131.tar.bz2
tar xjvf all-20110131.tar.bz2

mkdir /usr/local/lib/codecs/

MV all-20110131 /usr/local/lib/codecs/

LAME

cd/usr/local/src /

wget http://downloads.sourceforge.net/project/lame/lame/3.98.4/lame-3.98.4.tar.gz?r=http://sourceforge.net/projects/lame/files/&TS = 1285175656&use_mirror = schakelaar
teer zxvf lame-3.98.4.tar.gz
cd /usr/local/src/lame-3.98.4
./configureren
maken && Maak installeren

OGG

cd/usr/local/src /
wget downloads.xiph.org/releases/ogg/libogg-1.1.3.tar.gz
teer zxvf libogg-1.1.3.tar.gz
cd /usr/local/src/libogg-1.1.3
./configureren –inschakelen-gedeeld && maken && Maak installeren
PKG_CONFIG_PATH = / usr/local/lib/pkgconfig
export PKG_CONFIG_PATH

VORBIS

cd/usr/local/src /
wget downloads.xiph.org/releases/vorbis/libvorbis-1.1.2.tar.gz
teer zxvf libvorbis-1.1.2.tar.gz
cd /usr/local/src/libvorbis-1.1.2
./configureren && maken && Maak installeren

Theora
cd/usr/local/src /
wget http://downloads.Xiph.org/releases/Theora/libtheora-1.1.1.tar.bz2
teer uit libtheora-1.1.1.tar.bz2
cd /usr/local/src/libtheora-1.1.1
./configureren –prefix = / usr --enable-shared
maken && installls -s /usr/local/lib/libtheora.so /usr/lib/libtheora.so maken
FAAC
cd/usr/local/src /
wget http://downloads.sourceforge.net/faac/faac-1.28.tar.gz
teer zxvf faac-1.28.tar.gz
cd /usr/local/src/faac-1.28
./configureren –prefix = / usr
maken && Maak installeren

FAAD2

cd/usr/local/src /
wget http://downloads.sourceforge.net/faac/faad2-2.6.1.tar.gz
tar zxf faad2-2.6.1.tar.gz
CD faad2
autoreconf - vif
./configureren-uitschakelen-drm-uitschakelen-mpeg4ip
maken && Maak installeren

OpenJPEG
cd/usr/local/src /
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
ldconfig
VPX

cd/usr/local/src /
wget http://WEBM.googlecode.com/files/libvpx-v1.1.0.tar.bz2
tar - xjf libvpx-v1.1.0.tar.bz2
CD libvpx-v1.1.0
./configureren –prefix = / usr –inschakelen-gedeeld –uitschakelen-static
maken && Maak installeren
Speex
wget http://downloads.Xiph.org/releases/speex/speex-1.2rc1.tar.gz
Tar - xvzf speex-1.2rc1.tar.gz
CD speex-1.2rc1
./configureren –prefix = / usr –inschakelen-gedeeld –uitschakelen-static
maken && Maak installeren
XviD
cd/usr/local/src /
wget http://downloads.xvid.org/downloads/xvidcore-1.3.2.tar.gz
tar zxfv xvidcore-1.3.2.tar.gz
cd /usr/local/src/xvidcore/build /generieke
./configureren --enable-shared
maken && Maak installeren
ls -s /usr/local/lib/libxvidcore.so.4.3 /usr/lib/libxvidcore.so.4.3

Vóór het installeren van de ffmpeg, Setup enkele koppeling voor scripts die in bepaalde locaties voor codecs kijken:

ln -s /usr/local/lib/libavformat.so.50 /usr/lib/libavformat.so.50
ln -s /usr/local/lib/libavcodec.so.51 /usr/lib/libavcodec.so.51
ln -s /usr/local/lib/libavutil.so.49 /usr/lib/libavutil.so.49
ln -s /usr/local/lib/libmp3lame.so.0 /usr/lib/libmp3lame.so.0
ln -s /usr/local/lib/libavformat.so.51 /usr/lib/libavformat.so.51
ln -s /usr/local/lib/libavdevice.so.52 /usr/lib/libavdevice.so.52

ln -s /usr/lib/libtheora.so.0.3.10 /usr/local/lib/libtheora.so.0.3.10
ln -s /usr/lib/libx264.so.80 /usr/local/lib/libx264.so.80
ln -s /usr/lib/libtheora.so.0.3.10 /usr/local/lib/libtheora.so
ln -s /usr/lib/libx264.so.80 /usr/local/lib/libx264.so

FFMPEG (download latest from SVN)

export TMPDIR=$HOME/tmp
export LD_LIBRARY_PATH=/usr/local/lib/
cd/usr/local/src /
git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg

cd /usr/local/src/ffmpeg
./configureren –enable-gplenable-version3 –inschakelen-gedeeld –enable-nonfreeenable-postprocenable-libfaacenable-libmp3lameenable-libspeexenable-libopencore-amrnbenable-libopencore-amrwbenable-libtheoraenable-libvorbisenable-libvpxenable-libx264enable-libxvidenable-x11grabextra-cflags=”-I/usr/local/include” –extra-ldflags=”-L/usr/local/lib

maken && Maak installeren
ln -s /usr/local/bin/ffmpeg /usr/bin/ffmpeg

FFMPEG configureren opties gebruik 2 x “-“. Oudere versie kan worden gedownload met git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg

FOUT: XFIXES niet gevonden #
Fix: yum install libX *

 

MPLAYER

 

cd/usr/local/src /
svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer
cd /usr/local/src/mplayer
svn update
cd /usr/local/src/mplayer
./configureren && maken && Maak installeren

ln -s /usr/local/bin/mencoder /usr/bin/mencoder
ln -s /usr/local/bin/mplayer /usr/bin/mplayer

FLVTOOL2
Eerst installeren Ruby van WHM.

cd/usr/local/src /
wget rubyforge.org/frs/download.php/9225/flvtool2_1.0.5_rc6.tgz
teer zxvf flvtool2_1.0.5_rc6.tgz
cd /usr/local/src/flvtool2_1.0.5_rc6/
ruby setup.rb config
ruby setup.rb setup
ruby setup.rb installeren

YAMDI

 

cd/usr/local/src /
wget http://downloads.sourceforge.net/project/yamdi/yamdi/1.4/yamdi-1.4.tar.gz?use_mirror = ufpr
tar zxf yamdi-1.4.tar.gz
CD yamdi-1.4
gcc yamdi.c -o yamdi-O2-muur
MV yamdi/usr/bin /
yamdi -h

INSTALLATIERESULTATEN

mencoder: /usr/local/bin/mencoder
mplayer: /usr/local/bin/mplayer
yamdi: /usr/bin/yamdi

Deze snelkoppelingen toevoegen naar/usr/bin, moet u deze er standaard:
mencoder te /usr/local/bin/mencoder
mplayer te /usr/local/bin/mplayer

SuPHP fix

Met suphp “env -i” is vereist bij het uitvoeren van php scripts.

exec(“env -i /usr/bin/php ” . $cmd. '>/dev/null &’);

MediaInfo
http://mediainfo.sourceforge.net/en/Download/CentOS

wget http://downloads.sourceforge.net/zenlib/libzen0-0.4.14-1.i386.CentOS_5.rpm
wget http://downloads.sourceforge.net/zenlib/libzen0-devel-0.4.14-1.i386. CentOS_5.rpm
wget http://downloads.sourceforge.net/MediaInfo/libmediainfo0-0.7.32-1.i386.CentOS_5.rpm
wget http://downloads.sourceforge.net/MediaInfo/libmediainfo0-devel-0.7.32-1.i386. CentOS_5.rpm
wget http://downloads.sourceforge.net/MediaInfo/MediaInfo-0.7.32-1.i386. CentOS_5.rpm
rpm -vi libzen0-0.4.14-1.i386.CentOS_5.rpm
rpm -vi libzen0-devel-0.4.14-1.i386. CentOS_5.rpm
rpm -vi libmediainfo0-0.7.32-1.i386.CentOS_5.rpm
rpm -vi libmediainfo0-devel-0.7.32-1.i386. CentOS_5.rpm
rpm -vi mediainfo-0.7.32-1.i386. CentOS_5.rpm

ln -s /usr/bin/mediainfo /usr/local/bin/mediainfo

MP4box

yum -y install freetype-devel SDL-devel freeglut-devel

wget -c http://mirror.ffmpeginstaller.com/source/gpac/gpac-full-0.4.5.tar.gz

tar -xzf gpac-full-0.4.5.tar.gz
cd gpac

./configureren –prefix=/usr/local/cpffmpeg/extra-cflags=-I/usr/local/cpffmpeg/include/extra-ldflags=-L/usr/local/cpffmpeg/libdisable-wxstrip

maken && make lib && make apps && make install lib && Maak installeren

cp bin/gcc/libgpac.so /usr/lib

ln -s /usr/local/cpffmpeg/bin/MP4Box /usr/local/bin/MP4Box
ln -s /usr/local/cpffmpeg/bin/MP4Box /usr/bin/MP4Box

install -m644 bin/gcc/libgpac.so /usr/local/lib/libgpac.so
chmod +x /usr/local/lib/libgpac.so
ldconfig

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

ln -s /usr/local/bin/neroAacEnc /usr/bin/neroAacEnc

uploadprogress

cd /usr/local/src
wget http://pecl.php.net/get/uploadprogress-1.0.3.1.tgz

 

t

ar -zxvf uploadprogress-1.0.3.1.tgz
cd uploadprogress-1.0.3.1
phpize
./configureren && maken && Maak installeren

Edit /usr/lib/php.ini and add:

extension =uploadprogress.so

 

 

FFMPEG2Theora

 

wget http://v2v.cc/~j/ffmpeg2theora/ffmpeg2theora-0.29.linux32.bin
chmod +x ffmpeg2theora-0.29.linux32.bin
install -m 755 ffmpeg2theora-0.29.linux32.bin /usr/local/bin/ffmpeg2theora

 

wget http://v2v.cc/~j/ffmpeg2theora/ffmpeg2theora-0.29.linux64.bin
chmod +x ffmpeg2theora-0.29.linux64.bin
install -m 755 ffmpeg2theora-0.29.linux64.bin /usr/local/bin/ffmpeg2theora

 

Zie ook:

http://www.vimp.com/en/documentation-faq-article/items/howto-install-the-transcoding-tools-on-redhat-centos-etc.html

ASM is a modular assembler, het is vereist door de x264 pakket.

codec:$ wget \
http://www.tortall.net/projects/yasm/releases/yasm-0.7.0.tar.gz
codec:$ tar zfvx yasm-0.7.0.tar.gz
codec:$ cd yasm-0.7.0
codec:$ ./configure
codec:$ maken && maken installeren
codec:$ cd ..