How to install the transcoding tools on Redhat / CentOS 5
Versions: all
This HowTo describes the Transcoding Tools installation under RedHat / CentOS 5.9.
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 describes 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).
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 zlib-devel libjpeg-devel yasm php-process
If you have already installed the packages FFmpeg and x264, remove them
yum remove ffmpeg x264
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 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 libtheora
wget http://downloads.xiph.org/releases/theora/libtheora-1.1.1.tar.bz2 tar xvjf libtheora-1.1.1.tar.bz2 cd libtheora-1.1.1/ ./configure make make install cd ..
We install libvpx:
wget http://webm.googlecode.com/files/libvpx-v0.9.7-p1.tar.bz2 tar xvjf libvpx-v0.9.7-p1.tar.bz2 cd libvpx-v0.9.7-p1 ./configure --enable-shared make make install cd ..
... and FFmpeg and FFprobe:
wget http://ffmpeg.org/releases/ffmpeg-0.7.12.tar.bz2 tar xvjf ffmpeg-0.7.12.tar.bz2 cd ffmpeg-0.7.12/ ./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 --enable-x11grab --extra-cflags="-I/usr/local/include" --extra-ldflags="-L/usr/local/lib" make make install
IMPORTANT:
- execute ldconfig
# ldconfig
- download the presets-package here and copy the presets to /usr/local/share/ffmpeg
- tell VIMP the path to FFmpeg in the backend (administration -> configuration -> transcoder -> ffmpeg: /usr/local/bin/ffmpeg
- check if qt-faststart is installed (which qt-faststart). If not, you can download it here.
We install exiftool (VIMP 3.2.0 and greater):
yum install perl-Image-ExifTool
Up to VIMP <= 3.1.9 you need MPlayer/mencoder:
yum install mplayer mencoder
Last update on 2017/05/15 by Admin.