Getting error while installing FFMPEG packages, undefined reference to x264 encoder open 146.

# ./configure --enable-shared --enable-shared --enable-nonfree --enable-gpl --enable-pthreads --enable-libx264

# make

ffmpeg_opt.c:234: warning: ‘allow_unused’ may be used uninitialized in this function
CC    ffmpeg_filter.o
LD    ffmpeg_g
libavcodec/ undefined reference to `x264_encoder_open_146'
collect2: ld returned 1 exit status
make: *** [ffmpeg_g] Error 1

Solution :

Find the installed packages and remove it,
#  rpm -qa | grep x264

remove libx264 by rpm,
#  rpm -e x264-0.0.0-0.4.20101111.el6.rf.x86_64

you need to ensure the below packages are installed in your system, If you could not found install it.
# yum install ffmpeg ffmpeg-devel ffmpeg-libpostproc

Then, install x264 devel and x264 package,
#  yum install x264-devel x264

Now, download the x264 package  by git and install,
# cd /usr/local/src

# git clone git://

# cd  x264

# ./configure --enable-shared  --disable-asm

# make && make install

Now, you can try to configure the FFMPEG again.