redhat:other-redhat:transcoding-tools-redhat

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
redhat:other-redhat:transcoding-tools-redhat [2017/09/08 16:54] michaelredhat:other-redhat:transcoding-tools-redhat [2017/10/21 14:22] (current) michael
Line 1: Line 1:
-====== Compile FFmpeg on Redhat CentOS 7 ======+====== Installation Transcoding Tools RHEL Centos7 ======
  
-This guide is based on a minimal installation of the latest CentOS releaseand will provide a local, non-system installation of FFmpeg with support for several external encoding libraries. These instructions should also work for recent Red Hat Enterprise Linux (RHEL) and Fedora. This is a non-invasive guide and undoing all steps is simple and is shown at the end of this page.+<WRAP center box 100%> 
 +==== Installation Mencoder,Mplayer und ffmpeg mit Packet ====
  
 +<code>
 +# yum -y install http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm
 +# yum update
  
-<WRAP center box 100%+# yum install mencoder.x86_64 mplayer.x86_64 
-===== Vorbereitungen =====+# yum install ffmpeg.x86_64 ffmpeg-devel.x86_64 ffmpeg-libs.x86_64 
 +</code
 + 
 +''http://www.elinuxbook.com/install-mplayer-in-linux/'' 
 + 
 +----  
 + 
 +<wrap em>Alternativ: FFmpeg mit allen Erweiterungen selber kompilieren:</wrap> 
 + 
 +<code># yum remove ffmpeg ffmpeg-devel ffmpeg-libs libvpx libogg libvorbis libtheora libx264 x264 -y
  
-  - ''**Get the dependencies.** These are required for compiling, but you can remove them when you are done if you prefer (except make; it should be installed by default and many things depend on it).'' <code> 
-# yum -y install http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm 
 # yum-config-manager --add-repo http://www.nasm.us/nasm.repo # yum-config-manager --add-repo http://www.nasm.us/nasm.repo
-# yum update -y+# 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 
  
-# yum install autoconf automake bzip2 cmake freetype-devel gcc gcc-c++ git libtool make mercurial nasm pkgconfig zlib-devel 
 </code> </code>
-  - ''**Make a new directory** to put all of the source code into:'' <code># mkdir /usr/src/ffmpeg_sources</code> 
  
 +  * For Updateing: -> https://trac.ffmpeg.org/wiki/CompilationGuide/Centos
 +  * https://www.vimp.com/de/web/faq-installation/items/how-to-install-the-transcoding-tools-on-redhat-centos-64.html
 +  * https://underhost.com/blog/install-ffmpeg-on-centos/
 +  * https://www.interserver.net/tips/kb/steps-install-ffmpeg-modules/
 +  * http://marx.server.co.ba/2015/12/installing-ffmpeg-on-centos-7/
 +
 +</WRAP>
 +
 +
 +
 +
 +
 +
 +
 +----
 +
 +<WRAP center box 100%>
 +==== Installation Mediainfo ====
 +<code>
 +# yum install mediainfo
 +</code>
 +</WRAP>
 +
 +----
 +
 +<WRAP center box 100%>
 +==== Installation NeroAacEnc ====
 +<code>
 +# 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
 +</code>
 +</WRAP>
 +
 +----
 +
 +<WRAP center box 100%>
 +==== Installation MP4Box ====
 +<code>
 +# yum install -y gpac
 +</code>
 +</WRAP>
 +
 +----
 +
 +<WRAP center box 100%>
 +==== Installation FLVTool2 ====
 +<code>
 +# yum install -y ruby rubygems
 +# gem install flvtool2
 +</code>
 +</WRAP>
 +
 +----
 +
 +<WRAP center box 100%>
 +==== Installation Yamdi ====
 +<code>
 +# 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/
 +</code>
 </WRAP> </WRAP>
  
 +----
  
 +<sxh bash>
 +****************************************************
 +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)
 +</sxh>
  
  
  • redhat/other-redhat/transcoding-tools-redhat.1504882462.txt.gz
  • Last modified: 2017/09/08 16:54
  • by michael