FFmpeg install with libx264 (h264)
The information for this is very sparse, so here is a summary of what I have found.
Install libx264
Get the libx264 package from here:
Http://www.videolan.org/developers/x264.html
Extracts the bz2 File
tar -xjvf /path/to/x264-snapshot-20080805-2245.tar.bz2
And now the useual
cd /path/to/x264-dir./configure --enable-sharedmakemake installldconfig
Get a nice error message:
[root@dev01 x264-snapshot-20080805-2245]# ./configureNo suitable assembler found. Install 'yasm' to get MMX/SSE optimized code.If you really want to compile without asm, configure with --disable-asm.
You do want MMX/SSE at somepoint for the time being I am disabling this though (lack of time to find a valid RHEL source). So I added the disable ASM line.
Install FFMPEG
For this I use subversion.
cd /path/to/where/I/want/sourcessvn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpegcd /path/to/where/I/want/sources/ffmpeg./configure --enable-libx264 --enable-gpl --enable-sharedmakemake install
Et voila FFmpeg is now installed with libx264 (h264 ).
Error while loading shared libraries: libavdevice. so.52: cannot open shared object file: no such file or directory
To fix this:
vi /etc/ld.so.conf.d/custom-libs.conf
Add the line:/usr/local/lib
And run ldconfig.
Update:I am writing a full set of notes blog entry for installing FFMPEG with codecs on RHEL4