Installer ffmpeg mplayer flvtool2 yamdi x264 Theora mp3lame ogg vorbis FAAC

 

 

Ceci est un tutoriel pour activer le partage de vidéo de soutien sur les serveurs Centos.

Ceci devrait installer ffmpeg, mplayer, mencoder, flvtool2, était yami, x264, Theora, mp3lame, vorbis, ogg, FAAC, faad2, xvid, Renseignements aux médias, mp4box, neroaacenc . Ces outils permettront à votre serveur:

  • la conversion vidéo et audio
  • la génération de vignettes
  • FLV méta injection (flvtool2, était yami)
  • codecs supplémentaires (x264, Theora, mp3lame, vorbis, ogg, FAAC, faad2, xvid)

C'est fonctionnel et nous mettons à jour chaque fois que nous configurons un nouveau serveur.
L'installation se fait en utilisant la “racine” compte.

 

Attention: Si vous copiez et collez les commandes ci-dessous, s'assurer “-” ne sont pas converties en “.”. Si ceux-ci se convertis, edit “.” Retour à “-“. Certaines options utilisent 2 * “-“.

Certaines conditions préalables:

 

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

La manière rapide à installer ffmpeg, mplayer, mencoder:

rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge libération-0.5.2-2.el5.rf.i386.rpm

ou si vous avez un serveur 64 bits

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 mencoder mplayer de ffmpeg-devel ffmpeg-libpostproc

 

 

Modifier la /etc/ld.so.conf fichier et ajoutez les lignes suivantes:

/usr/local/lib
/usr/lib

GIT
(nécessaire pour obtenir X 264)

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
faire prefix = / usr/local tous les
faire prefix = / usr/local/install
vous allez –Version
Ou :
yum –disableexcludes = installer principal git
Et 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 est un assembleur modulaire, elle est requise par le x 264 paquet.

 

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
./configurer
faire && make install
CD ..

X 264

CD/usr/local/src /
git clone git://git.videolan.org/x264.git
CD /usr/local/src/x264
./configurer – -enable-shared – -prefix = / usr
faire && make install
LS -s /usr/local/lib/libx264.so /usr/lib/libx264.so
Codecs essentiels
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/

Ou tous les codecs:

CD/usr/local/src /

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

mkdir /usr/local/lib/codecs/

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

BOITEUX

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 = interrupteur
tar zxvf boiteux-3.98.4.tar.gz
CD /usr/local/src/lame-3.98.4
./configurer
faire && make install

OGG

CD/usr/local/src /
wget downloads.xiph.org/releases/ogg/libogg-1.1.3.tar.gz
tar zxvf libogg-1.1.3.tar.gz
CD /usr/local/src/libogg-1.1.3
./configurer –enable-shared && faire && make install
PKG_CONFIG_PATH = / usr/local/lib/pkgconfig
exportation PKG_CONFIG_PATH

VORBIS

CD/usr/local/src /
wget downloads.xiph.org/releases/vorbis/libvorbis-1.1.2.tar.gz
tar zxvf libvorbis-1.1.2.tar.gz
CD /usr/local/src/libvorbis-1.1.2
./configurer && faire && make install

Theora
CD/usr/local/src /
wget http://downloads.Xiph.org/releases/Theora/libtheora-1.1.1.tar.bz2
tar jxvf libtheora-1.1.1.tar.bz2
CD /usr/local/src/libtheora-1.1.1
./configurer –prefix = / usr --enable-shared
faire && faire des installations -s /usr/local/lib/libtheora.so /usr/lib/libtheora.so
FAAC
CD/usr/local/src /
wget http://downloads.sourceforge.net/FAAC/FAAC-1.28.tar.gz
tar zxvf faac-1.28.tar.gz
CD /usr/local/src/faac-1.28
./configurer –prefix = / usr
faire && make install

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
./configurer – désactiver-drm – désactiver-mpeg4ip
faire && make install

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
./configurer –prefix = / usr –enable-shared –Disable-statique
faire && make install
Speex
wget http://downloads.Xiph.org/releases/Speex/Speex-1.2RC1.tar.gz
tar - xvzf speex-1.2rc1.tar.gz
CD speex-1.2rc1
./configurer –prefix = / usr –enable-shared –Disable-statique
faire && make install
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
/usr/local/src/xvidcore/build CD /générique
./configurer --enable-shared
faire && make install
ls-l /usr/local/lib/libxvidcore.so.4.3 /usr/lib/libxvidcore.so.4.3

Avant d'installer ffmpeg, configuration de liaison pour certains scripts qui ressemblent à certains endroits pour les codecs:

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 (Télécharger plus tard à partir de SVN)

l'exportation TMPDIR = $HOME/tmp
export LD_LIBRARY_PATH = / usr/local/lib /
CD/usr/local/src /
git clone git://ffmpeg source.ffmpeg.org/ffmpeg.git

CD /usr/local/src/ffmpeg
./configurer –Enable-gpl –Enable-version3 –enable-shared –Enable-nonfree –Enable-postproc –Enable-libfaac –Enable-libmp3lame –Enable-libspeex –Enable-libopencore-amrnb –Enable-libopencore-amrwb –Enable-libtheora –Enable-libvorbis –Enable-libvpx –Enable-libx264 –Enable-libxvid –Enable-x11grab –extra-cflags =”--I/usr/local/include” –extra-ldflags =”--L/usr/local/lib”

faire && make install
ln -s /usr/local/bin/ffmpeg /usr/bin/ffmpeg

Configurer les options utilisation FFMPEG 2 x “-“. Ancienne version téléchargeable avec git clone git://ffmpeg source.ffmpeg.org/ffmpeg.git

ERREUR: Xfixes introuvable #
fixer: yum install libX *

 

MPLAYER

 

CD/usr/local/src /
svn checkout svn://svn.mplayerhq.hu/MPlayer/Trunk mplayer
CD /usr/local/src/mplayer
mise à jour svn
CD /usr/local/src/mplayer
./configurer && faire && make install

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

FLVTOOL2
Tout d'abord installer Ruby de WHM.

CD/usr/local/src /
wget rubyforge.org/frs/download.php/9225/flvtool2_1.0.5_rc6.tgz
tar 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 install

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-mur
MV yamdi/usr/bin /
yamdi -h

RÉSULTATS DE L'INSTALLATION

mencoder: /usr/local/bin/mencoder
mplayer: /usr/local/bin/mplayer
était yami: /usr / bin / yamdi

Ajouter ces raccourcis dans / usr / bin si vous avez besoin de ces là par défaut:
mencoder de / usr / local / bin / mencoder locale
mplayer / usr / local / bin / mplayer locale

SuPHP fix

Avec suphp “env -i” est requise lors de l'exécution des scripts PHP.

exec(“env-i / usr /suis/php ” . $cmd. ‘>/dev / null &»);

Infos médias
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
tr/min -vi libzen0-0.4.14-1.i386.CentOS_5.rpm
tr/min -vi libzen0-devel-0.4.14-1.i386.CentOS_5.rpm
tr/min -vi libmediainfo0-0.7.32-1.i386.CentOS_5.rpm
tr/min -vi libmediainfo0-devel-0.7.32-1.i386.CentOS_5.rpm
mediainfo -vi tr/min-0.7.32-1.i386.CentOS_5.rpm

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

MP4Box

yum -y installer freetype-devel SDL-devel freeglut-devel

wget http - c://Mirror.ffmpeginstaller.com/source/GPAC/GPAC-Full-0.4.5.tar.gz

tar - xzf gpac-complet-0.4.5.tar.gz
gpac CD

./configurer –prefix = / usr/local/cpffmpeg / –extra-cflags =-je/usr/local/cpffmpeg/include / –extra-ldflags =-L/usr/local/cpffmpeg/lib –Disable-wx –bande de

faire && faire lib && faire des applications && faire installer la lib && make install

bin/gcc/libgpac.so/usr/lib de CP

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

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

neroAacEnc

wget ftp://ftp6.Nero.com/Tools/NeroDigitalAudio.zip
Décompressez NeroDigitalAudio.zip -d nero
CD nero/linux
sudo installer -D-m755 neroAacEnc usr

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
./configurer && faire && make install

Éditez /usr/lib/php.ini et ajoutez:

extension = “Uploadprogress.so”

 

 

FFMPEG2Theora

 

wget http://V2V.cc/~j/ffmpeg2theora/ffmpeg2theora-0.29.linux32.bin
chmod + x ffmpeg2theora-0.29.linux32.bin
installer -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
installer -m 755 ffmpeg2theora-0.29.Linux64.bin /usr/local/bin/ffmpeg2theora

 

Voir aussi:

http://www.VIMP.com/en/documentation-FAQ-article/items/HOWTO-install-the-Transcoding-Tools-on-RedHat-CentOS-etc.html

ASM est un assembleur modulaire, elle est requise par le x 264 paquet.

Codec:$ wget \
http://www.Tortall.net/projets/yasm/Communiqués de/yasm-0.7.0.tar.gz
codec:$ prend Jasper zfvx-0.7.0.tar.gz
codec:$ CD yasm-0.7.0
Codec:$ ./configurer
codec:$ faire && faire installer
Codec:$ CD ..