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).
Install rpmforge repository
Install epel repository
yum install gcc make automake bzip2 unzip patch subversion zlib-devel libjpeg-devel yasm
yum remove ffmpeg x264
joe /etc/ld.so.conf
... and check, if the following lines exist within the file. If not, please add:
/usr/lib /usr/local/lib
yum install faac-devel lame-devel amrnb-devel opencore-amr-devel amrwb-devel libvorbis-devel libtheora-devel xvidcore-devel
git clone http://git.videolan.org/git/x264.git cd x264 ./configure --enable-shared --enable-pic make && make install cd ..
git clone http://git.videolan.org/git/x264.git cd x264 ./configure --enable-shared --enable-pic make && make install cd ..
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
- execute ldconfig
# ldconfig
yum install perl-Image-ExifTool
yum install mplayer mencoder