At first glance it seems the ffmpeg guys broke backwards compatibility yet again. If that's the case, as a quick fix you can try to downgrade to an earlier version of ffmpeg until we have time to examine what we should change to keep up with our flimsy friends.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Yet another "old" version of ffmpeg ;) However xjadeo is also old enough to support it, but there was a problem: xjadeo used "avcodec_decode_video()" if ffmpeg's major_version is <52 and "avcodec_decode_video2()" else.
Looking at your version 52.20.0 it seems that the switch happened there, not at 52.0.0. I've just fixed that in xjadeo SVN r198.
If upgrading ffmpeg is an option to you, that will also solve the issue and improve the decoding performance as well.
HTH,
robin
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm trying to compile r197 with no luck.
problem is "avcodec_decode_video2"
ldd `which ffmpeg` | sed -n 's/.*=> \(.*\) (.*/\1/p' | xargs -n 1 readelf -a | grep avcodec_decode_video
returns only avcodec_decode_video (without "2").
How I can get xjadeo work?
my configuration line:
FFMPEG_CFLAGS="-I/usr/include/libavcodec -I/usr/include/libavformat -I/usr/include/libswscale -I/usr/include/libavutil" ./configure --disable-qtgui
compilation log:
gcc -Wall -g -O3 -I/usr/include/libavformat -I/usr/include/libavcodec -I/usr/include/libswscale -I/usr/include/libavutil -I/usr/include/freetype2 "-DSUBVERSION=\"197\"" -O3 -pipe -mtune=amdfam10 -march=amdfam10 -m3dnow -mmmx -msse -msse2 -msse3 -msse4a -mfpmath=sse -fomit-frame-pointer -funsafe-math-optimizations -msseregparm -ffast-math -o xjadeo xjadeo-xjadeo.o xjadeo-getopt.o xjadeo-getopt1.o xjadeo-display.o xjadeo-jack.o xjadeo-midi.o xjadeo-freetype.o xjadeo-display_x11.o xjadeo-smpte.o xjadeo-main.o xjadeo-remote.o xjadeo-configfile.o xjadeo-lash.o xjadeo-mqueue.o xjadeo-display_mac.o xjadeo-xjosc.o -ljack -lrt -lavformat -lavcodec -lavutil -lswscale -lXv -lXext -lasound -lfreetype -lImlib2 -lXpm -lX11 -llo -lpthread -ljack -L/usr/X11R6/lib
xjadeo-xjadeo.o: In function `reset_video_head':
/home/ildar/src/xjadeo-svn/src/xjadeo/xjadeo.c:518: undefined reference to `avcodec_decode_video2'
xjadeo-xjadeo.o: In function `my_seek_frame':
/home/ildar/src/xjadeo-svn/src/xjadeo/xjadeo.c:646: undefined reference to `avcodec_decode_video2'
xjadeo-xjadeo.o: In function `do_try_this_file_and_exit':
/home/ildar/src/xjadeo-svn/src/xjadeo/xjadeo.c:793: undefined reference to `avcodec_decode_video2'
xjadeo-xjadeo.o: In function `display_frame':
/home/ildar/src/xjadeo-svn/src/xjadeo/xjadeo.c:709: undefined reference to `avcodec_decode_video2'
collect2: ld returned 1 exit status
make[4]: *** [xjadeo] Error 1
ffmpeg -version
libavutil 49.15. 0 / 49.15. 0
libavcodec 52.20. 0 / 52.20. 0
libavformat 52.31. 0 / 52.31. 0
libavdevice 52. 1. 0 / 52. 1. 0
libavfilter 0. 4. 0 / 0. 4. 0
libswscale 0. 7. 1 / 0. 7. 1
libpostproc 51. 2. 0 / 51. 2. 0
built on Aug 4 2009 20:58:20, gcc: 4.3.2
What distribution are you using?
At first glance it seems the ffmpeg guys broke backwards compatibility yet again. If that's the case, as a quick fix you can try to downgrade to an earlier version of ffmpeg until we have time to examine what we should change to keep up with our flimsy friends.
Hi,
Yet another "old" version of ffmpeg ;) However xjadeo is also old enough to support it, but there was a problem: xjadeo used "avcodec_decode_video()" if ffmpeg's major_version is <52 and "avcodec_decode_video2()" else.
Looking at your version 52.20.0 it seems that the switch happened there, not at 52.0.0. I've just fixed that in xjadeo SVN r198.
If upgrading ffmpeg is an option to you, that will also solve the issue and improve the decoding performance as well.
HTH,
robin
thanks for fix. I'll upgrade ffmpeg soon as it will be upgraded in gentoo portage. Anyway all works now