problem with --enable-libx264 option in ffmpeg
I am using ubuntu 8.04.
i unzipped ffmpeg-checkout-2010-06-05 Then Code:
$./configure --enable-gpl --enable-postproc --enable-swscale --enable-pthreads --enable-x11grab --enable-libdc1394 --enable-libfaac --enable-libfaad --enable-libgsm --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-nonfree Actually I am trying to build most powerful ffmpeg able to transcode any media format file. 'Make' gives following error Code:
$time make |
Hi,
My guess is that the installed libx264 is a bit old for the current version of ffmpeg. Why don't you get the latest libx264 source and compile it using ""--enable-shared" option? |
Currently I have also installed x264-snapshot-20100621-2245.tar.bz2 with "--enable-shared" option.
Still the output same as before. |
Are you sure you're using the newly installed libx264?
If you didn't use a prefix when installing libx264, then it's installed in /usr/local/lib/libx264.so. You can use: Code:
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH Regards |
Yeah , I did after installing x264 tarball
Code:
$sudo ldconfig |
Well it looks like you need a different version of x264 :banghead:
To verify, run Code:
nm /usr/local/lib/libx264.a |grep x264_encoder_open In my case the above command gave x264_encoder_open_98 (the sources used were dated Jun 21) After that I downloaded the latest x264 from git, compiled and I got x264_encoder_open_104 So download and compile x264-snapshot-20100621-2245.tar.bz2 and see if it helps Regards |
When I ran
Code:
$ nm /usr/local/lib/libx264.a |grep x264_encoder_open Code:
|
Well, I don't get it!
Quote:
Can you move /home/lxuser/tarball/ffmpeg-export-2010-06-05 and /usr/local/lib/libavcodec.* in /tmp, make distclean and recompile x264 |
Quote:
Quote:
I've just tried compiling the current x264 and it now installs libx264.so.104, like you have. Maybe your ffmpeg source is out of date? |
As you said I uninstalled ffmpeg as well as x264 & deleted extracted tarball.
Now installing x264-snapshot-20100725-2245 went well. Now with 'make' of ffmpeg-checkout-2010-06-05 I got error Code:
ffmpeg.c: In function ‘new_audio_stream’: I like tarballs because you can use them on offline computers. |
Now I am surprised
I ran Code:
|
Quote:
can be made into a tarball too : tar -cf ffmpeg.tar ffmpeg/ gzip ffmpeg.tar ( or bzip2 ffmpeg.tar ) .. |
I will try that knudfl.
my question was i installed latest x264 (via git) . All went well. then ffmpeg (via git) gave error during make. |
@OP
FYI, I've just done what you did in your previous post: I've downloaded x264, ffmpeg and libswscale from git, compile and install x264 using "--enable-shared" and then compiled and install ffmpeg using the same options as you (except libdc1394 and libgsm as I don't have these libraries) Everything ended up OK, so I guess your build is using wrong x264 libraries and/or header files Set LD_LIBARY_PATH to just /usr/local/lib and add the same directory as the 1st entry in /etc/ld.so.conf. Then run ldconfig and try to build again ffmpeg (after running of course make distclean) Regards |
This time I
(1)enabled shared option in x264 (2)'export LD_LIBARY_PATH=/usr/local/lib' before ffmpeg configure (3)removed libdc1394 and libgsm from configure options Code:
$cat /etc/ld.so.conf Code:
CC ffmpeg.o |
All times are GMT -5. The time now is 11:42 AM. |