Table of Contents

Installation Transcoding Tools RHEL / Centos7

Installation Mencoder,Mplayer und ffmpeg mit Packet

# yum -y install http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm
# yum update

# yum install mencoder.x86_64 mplayer.x86_64
# yum install ffmpeg.x86_64 ffmpeg-devel.x86_64 ffmpeg-libs.x86_64

http://www.elinuxbook.com/install-mplayer-in-linux/


Alternativ: FFmpeg mit allen Erweiterungen selber kompilieren:

# yum remove ffmpeg ffmpeg-devel ffmpeg-libs libvpx libogg libvorbis libtheora libx264 x264 -y

# yum-config-manager --add-repo http://www.nasm.us/nasm.repo
# yum install autoconf automake bzip2 cmake freetype-devel gcc gcc-c++ git libtool make mercurial nasm pkgconfig zlib-devel wget

# mkdir -p /usr/src/ffmpeg_sources


Install Yasm:
------------------------------------------------------------

# cd /usr/src/ffmpeg_sources
curl -O http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz
tar xzvf yasm-1.3.0.tar.gz
cd yasm-1.3.0
./configure --prefix="/usr/local/ffmpeg_build" --bindir="/usr/local/bin"
make
make install


Install libx264:
------------------------------------------------------------

# cd /usr/src/ffmpeg_sources
# git clone --depth 1 http://git.videolan.org/git/x264
# cd x264
./configure --prefix="/usr/local/ffmpeg_build" --bindir="/usr/local/bin" --enable-static
make
make install


Install libx265:
------------------------------------------------------------

# cd /usr/src/ffmpeg_sources
hg clone https://bitbucket.org/multicoreware/x265
cd ~/ffmpeg_sources/x265/build/linux
cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX="/usr/local/ffmpeg_build" -DENABLE_SHARED:bool=off ../../source
make
make install


Install libxvid:
------------------------------------------------------------

# cd /usr/src/ffmpeg_sources
hg clone https://bitbucket.org/multicoreware/x265
cd ~/ffmpeg_sources/x265/build/linux
cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX="/usr/local/ffmpeg_build" -DENABLE_SHARED:bool=off ../../source
make
make install


Install libfdk_aac:
------------------------------------------------------------

# cd /usr/src/ffmpeg_sources
git clone --depth 1 https://github.com/mstorsjo/fdk-aac
cd fdk-aac
autoreconf -fiv
./configure --prefix="/usr/local/ffmpeg_build" --disable-shared
make
make install


Install libmp3lame:
------------------------------------------------------------

# cd /usr/src/ffmpeg_sources
curl -L -O http://downloads.sourceforge.net/project/lame/lame/3.99/lame-3.99.5.tar.gz
tar xzvf lame-3.99.5.tar.gz
cd lame-3.99.5
./configure --prefix="/usr/local/ffmpeg_build" --bindir="/usr/local/bin" --disable-shared --enable-nasm
make
make install


Install libopus:
------------------------------------------------------------

# cd /usr/src/ffmpeg_sources
curl -O https://archive.mozilla.org/pub/opus/opus-1.1.5.tar.gz
tar xzvf opus-1.1.5.tar.gz
cd opus-1.1.5
./configure --prefix="/usr/local/ffmpeg_build" --disable-shared
make
make install


Install libogg:
------------------------------------------------------------

# cd /usr/src/ffmpeg_sources
curl -O http://downloads.xiph.org/releases/ogg/libogg-1.3.2.tar.gz
tar xzvf libogg-1.3.2.tar.gz
cd libogg-1.3.2
./configure --prefix="/usr/local/ffmpeg_build" --disable-shared
make
make install


Install libvorbis:
------------------------------------------------------------

# cd /usr/src/ffmpeg_sources
curl -O http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.4.tar.gz
tar xzvf libvorbis-1.3.4.tar.gz
cd libvorbis-1.3.4
./configure --prefix="/usr/local/ffmpeg_build" --with-ogg="/usr/local/ffmpeg_build" --disable-shared
make
make install


Install libvpx:
------------------------------------------------------------

# cd /usr/src/ffmpeg_sources
git clone --depth 1 https://chromium.googlesource.com/webm/libvpx.git
cd libvpx
./configure --prefix="/usr/local/ffmpeg_build" --disable-examples --disable-unit-tests --enable-vp9-highbitdepth --as=yasm
PATH="/usr/local/bin:$PATH" make
make install


Install FFmpeg:
------------------------------------------------------------

# cd /usr/src/ffmpeg_sources
curl -O http://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2
tar xjvf ffmpeg-snapshot.tar.bz2
cd ffmpeg
PATH="/usr/local/bin:$PATH" PKG_CONFIG_PATH="/usr/local/ffmpeg_build/lib/pkgconfig" ./configure \
  --prefix="/usr/local/ffmpeg_build" \
  --pkg-config-flags="--static" \
  --extra-cflags="-I/usr/local/ffmpeg_build/include" \
  --extra-ldflags="-L/usr/local/ffmpeg_build/lib" \
  --extra-libs=-lpthread \
  --bindir="/usr/local/bin" \
  --enable-gpl \
  --enable-libfdk_aac \
  --enable-libfreetype \
  --enable-libmp3lame \
  --enable-libopus \
  --enable-libvorbis \
  --enable-libvpx \
  --enable-libx264 \
  --enable-libx265 \
  --enable-libxvid \
  --enable-nonfree
make
make install
hash -r

# ldconfig


Installation Mediainfo

# yum install mediainfo

Installation NeroAacEnc

# cd /usr/local/src

# wget http://techdata.mirror.gtcomm.net/sysadmin/ffmpeg-avs/NeroDigitalAudio.zip
# unzip NeroDigitalAudio.zip -d nero
# cd nero/linux

# sudo install -D -m755 neroAacEnc /usr/local/bin

Installation MP4Box

# yum install -y gpac

Installation FLVTool2

# yum install -y ruby rubygems
# gem install flvtool2

Installation Yamdi

# yum install gcc-c++ make

# cd /usr/local/src
# wget  "http://downloads.sourceforge.net/project/yamdi/yamdi/1.9/yamdi-1.9.tar.gz"
# tar zxvf yamdi-1.9.tar.gz
# cd yamdi-1.9 
# gcc yamdi.c -o yamdi -O2 -Wall
# cp yamdi /usr/bin/

****************************************************
PHP CLIfound (/opt/rh/rh-php56/root/usr/bin/php)
MEncoderfound (/usr/bin/mencoder)
MPlayerfound (/usr/bin/mplayer)
FFMpegfound (/usr/bin/ffmpeg)
FLVTool2found (/usr/local/bin/flvtool2)
Mediainfofound (/usr/bin/mediainfo)
MP4Boxfound (/usr/bin/MP4Box)
NeroAacEncfound (/usr/local/bin/neroAacEnc)


http://www.linuxfromscratch.org/blfs/view/svn/general/nasm.html

https://trac.ffmpeg.org/wiki/CompilationGuide/Centos