Tuesday, April 16, 2013

building latest version of ffmpeg with x264 on Centos 6

A good tutorial has been posted here.
Here are some fixes on the above tutorial :

- You should remove ffmpeg and its libraries before you proceed to manual compilation of the program:
yum remove libvpx libogg libvorbis libtheora libx264 x264 ffmpeg
It's really important.My compilation was failed with the following error
libx264.c:552: undefined reference to `x264_encoder_open_130' 
And the reason was that I had not removed x264-libs and x264-devel packages.

-You'll receive the following error while compiling faac 1.28 library :
mpeg4ip.h:126: error: new declaration ‘char* strcasestr(const char*, const char*)’
And the fix is to remove line 126 from the file ./common/mp4v2/mpeg4ip.h :
char *strcasestr(const char *haystack, const char *needle);
- Compile x264 with the following parameters :
cd x264
./configure --enable-static --enable-shared

- You'll need to install libvpx to compile ffmpeg :
git clone http://git.chromium.org/webm/libvpx.git
cd libvpx
make && make install

That's all.


No comments:

Post a Comment