centos - FFMPEG undefined reference to `x264_encoder_open_146' -


when configuring ffmpeg below modules show error,

# ./configure  --enable-shared --enable-shared --enable-nonfree --enable-gpl --enable-pthreads --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --extra-libs=-lx264 --enable-libxvid --extra-cflags=-i/usr/local/cpffmpeg/include/ --extra-ldflags=-l/usr/local/cpffmpeg/lib --enable-version3 --extra-version=syslin --enable-libass --enable-libvpx --enable-zlib --extra-ldflags=-l/usr/local/lib --enable-libx264 

cc ffmpeg_filter.o ld ffmpeg_g libavcodec/libavcodec.so: undefined reference `x264_encoder_open_146' collect2: ld returned 1 exit status make: **** [ffmpeg_g] error 1

i found lib files,

#  ls  /usr/local/lib | grep libx264 libx264.a libx264.so@ libx264.so.144* libx264.so.146* 

how fixed it.?

finally found solution,

may package installed version conflict ,

find installed packages , remove it,

#  rpm -qa | grep x264  x264-0.0.0-0.4.20101111.el6.rf.x86_64 

remove libx264 rpm,

#  rpm -e x264-0.0.0-0.4.20101111.el6.rf.x86_64 

make ensure below packages installed in system, if not available install

# yum install ffmpeg ffmpeg-devel ffmpeg-libpostproc 

then, install x264 devel , x264 package,

#  yum install x264-devel x264 

now, download x264 package git , install,

# cd /usr/local/src  # git clone git://git.videolan.org/x264.git  # cd  x264  # ./configure --enable-shared  --enable-asm  # make && make install 

now, can try configure ffmpeg again.


Comments

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -

Nuget pack csproj using nuspec -