How to install Transcoding tools CentOS 6.4
This HowTo describes how to install transcoding tools CentOS 6.4.
The ffmpeg packages for RedHat-based distributions (RHEL, CentOS) don´t support transcoding to all HTML5 formats. In detail there are problems with transcoding to m4v.
This tutorial explains how to compile ffmpeg in order to support all HTML5 formats.
In this tutorial we assume that you´re in /usr/src (cd /usr/src).
First, we install the rpmforge and epel repository.
Install rpmforge repository
Install epel repository
Now let’s install some basic packages. Existing packages will be updated or ignored:
yum install gcc make automake bzip2 unzip patch subversion libjpeg-devel yasm
If you have already installed the packages ffmpeg and x264, remove them:
yum remove ffmpeg x264
Installing the win codecs of the MPlayer vendor:
NOTE: on 32 bit systems install the codecs as follows:
wget http://www2.mplayerhq.hu/MPlayer/releases/codecs/essential-20071007.tar.bz2 tar xvjf essential-20071007.tar.bz2 mkdir /usr/local/lib/codecs cp -Rvp essential-20071007/* /usr/local/lib/codecs/
NOTE: on 64 bit systems install the codecs as follows:
wget http://www2.mplayerhq.hu/MPlayer/releases/codecs/essential-amd64-20071007.tar.bz2 tar xvjf essential-amd64-20071007.tar.bz2 mkdir /usr/local/lib/codecs cp -Rvp essential-amd64-20071007/* /usr/local/lib/codecs/Next, on both systems we have to extend the search path in /etc/ld.so.conf
joe /etc/ld.so.conf… and check, if the following lines exist within the file. If not, please add:
/usr/lib /usr/local/lib
We install some codecs:
yum install faac-devel lame-devel amrnb-devel opencore-amr-devel amrwb-devel libvorbis-devel libtheora-devel xvidcore-devel
We install x264:
wget ftp://ftp.videolan.org/pub/videolan/x264/snapshots/last_stable_x264.tar.bz2 tar xvjf last_stable_x264.tar.bz2 cd x264-snapshot-XXXXXXXX-XXXX-stable/ ./configure --enable-shared --enable-pic make && make install cd ..
We install libvpx:
wget http://webm.googlecode.com/files/libvpx-v1.2.0.tar.bz2 tar xvjf libvpx-v1.2.0.tar.bz2 cd libvpx-v1.2.0 ./configure --enable-shared --enable-pic make make install cd ..
… and ffmpeg:
wget http://ffmpeg.org/releases/ffmpeg-2.0.1.tar.bz2 tar xvjf ffmpeg-2.0.1.tar.bz2 cd ffmpeg-2.0.1/ ./configure --enable-gpl --enable-version3 --enable-shared --enable-nonfree --enable-postproc --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid make make install
IMPORTANT:
– execute ldconfig
# ldconfig
Finally we install MPlayer, mencoder and flvtool2:
yum install mplayer mencoder flvtool2