Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 354159

Summary: transcode reports import_ffmpeg.so: undefined symbol: avcodec_init
Product: Gentoo Linux Reporter: Christian Pontesegger <christian.pontesegger>
Component: Current packagesAssignee: Gentoo Media-video project <media-video>
Status: RESOLVED DUPLICATE    
Severity: normal CC: fads93, fcoiffie
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Correction in import/Makefile.am for LIBAVCODEC_x
To use transcode-1.1.5-libavcodec.patch
Fix libavcodec_decode_video

Description Christian Pontesegger 2011-02-08 21:11:03 UTC
transcoding from divx, xvid to mpeg2 does not work on my system correctly.I was trying to use the dvd profile but following command

transcode -i input.avi -o output.vob --export_prof dvd-pal 

results in

transcode v1.1.5 (C) 2001-2003 Thomas Oestreich, 2003-2009 Transcode Team
libdvdread: Using libdvdcss version 1.2.10 for DVD access
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdread: Using libdvdcss version 1.2.10 for DVD access
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
[transcode] V: auto-probing     | aoe-exports.avi (OK)
[transcode] V: import format    | XviD in RIFF data, AVI (module=ffmpeg)
[transcode] A: auto-probing     | aoe-exports.avi (OK)
[transcode] A: import format    | MPEG ES Layer 3 in RIFF data, AVI (module=mp3)
[transcode] V: AV demux/sync    | (1) sync AV at initial MPEG sequence
[transcode] V: import frame     | 720x304  2.37:1  encoded @ UNKNOWN
[transcode] V: pre clip frame   | 720x570 (-134,0,-132,0)
[transcode] V: zoom             | 720x576  2.34:1 (Lanczos3)
[transcode] V: bits/pixel       | 0.174
[transcode] V: decoding fps,frc | 25.000,3
[transcode] V: video format     | YUV420 (4:2:0) aka I420
[transcode] A: import format    | 0x55    MPEG ES Layer 3 [48000,16,2]  113 kbps
[transcode] A: export format    | 0x50    MPEG ES Layer 2 [48000,16,2]  128 kbps
[transcode] V: export format    | unknown (module dependant)
[transcode] V: encoding fps,frc | 25.000,3
[transcode] A: bytes per frame  | 7680 (7680.000000)
[transcode] A: adjustment       | 0@1000
[transcode] V: IA32/AMD64 accel | sse3 sse2 sse 3dnowext 3dnow mmxext mmx cmove asm
[transcode] V: video buffer     | 10 @ 720x576 [0x2]
[transcode] A: audio buffer     | 10 @ 48000x2x16
[import_mp3.so] v0.1.4 (2003-08-04) (audio) MPEG
[import_ffmpeg.so] v0.1.15 (2008-01-28) (video) ffmpeg: MS MPEG4v1-3/MPEG4/MJPEG
[export_mp2enc.so] v1.0.11 (2006-03-16) (audio) MPEG 1/2
[export_mpeg2enc.so] v1.1.10 (2003-10-30) (video) MPEG 1/2
[import_mp3.so] MP3->PCM
[import_mp3.so] tcextract -a 0 -i "aoe-exports.avi" -x mp3 -d 0 | tcdecode -x mp3 -d 0 -z 48000
transcode: symbol lookup error: /usr/lib/transcode/import_ffmpeg.so: undefined symbol: avcodec_init 


installed bundles that might be affected:

emerge -pv transcode ffmpeg mjpegtools

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] media-video/ffmpeg-0.6_p25767  USE="3dnow 3dnowext X alsa bzip2 encode hardcoded-tables jpeg2k mmx mmxext mp3 network ssse3 threads vdpau vorbis vpx x264 xvid zlib (-altivec) -amr -bindist -cpudetection -custom-cflags -debug -dirac -doc -faac -frei0r -gsm -ieee1394 -jack -oss -pic -qt-faststart -rtmp -schroedinger -sdl -speex -static-libs -test -theora -v4l -v4l2 -vaapi" VIDEO_CARDS="nvidia" 0 kB                                                                                               
[ebuild   R   ] media-video/mjpegtools-1.9.0-r1  USE="X gtk mmx png -dga -dv -quicktime -sdl -v4l -yv12" 0 kB
[ebuild   R   ] media-video/transcode-1.1.5-r2  USE="3dnow X a52 aac alsa dvd iconv jpeg mjpeg mmx mp3 mpeg sse truetype vorbis x264 xvid (-altivec) -dv -imagemagick -lzo -nuv -ogg -oss -postproc -quicktime -sdl -sse2 -theora -v4l2 -xml" 0 kB 



I tried this for different versions of ffmpeg, but with the same result:
media-video/ffmpeg-0.5_p20373
media-video/ffmpeg-0.6_p25767 

I tried revdep-rebuild, lafilefixer and re-emerging packages mentioned above.



Reproducible: Always

Steps to Reproduce:
1. install transcode (see useflags in description above)
2. run transcode -i input.avi -o output.vob --export_prof dvd-pal 


Actual Results:  
aborts with error message
Comment 1 Rafał Mużyło 2011-02-08 23:01:36 UTC
OK, import/Makefile.am needs a simple patch -
adding LIBAVCODEC_LIBS to import_ffmpeg_la_LIBADD.
For completeness, similar correction to import_ffmpeg_la_CPPFLAGS.
Comment 2 Frédéric COIFFIER 2011-06-05 09:31:08 UTC
Is there a path somewhere ?

I reproduce the problem with :
[IP-] [  ] media-video/transcode-1.1.5-r2:0
[IP-] [  ] media-video/ffmpeg-0.7_rc1:0
Comment 3 Frédéric COIFFIER 2011-06-06 10:07:50 UTC
Created attachment 275977 [details, diff]
Correction in import/Makefile.am for LIBAVCODEC_x
Comment 4 Frédéric COIFFIER 2011-06-06 10:08:37 UTC
Created attachment 275979 [details]
To use transcode-1.1.5-libavcodec.patch
Comment 5 Amir Aupov 2011-08-27 17:34:06 UTC
I've had similar issue, but with symbol "avcodec_decode_video", which is deprecated (maybe  since 0.7.2) (http://cekirdek.pardus.org.tr/~ismail/ffmpeg-docs/avcodec_8h.html#812b0ba18511f3c8787294bce7b06372). The solution is to change the code a bit and use "avcodec_decode_video2", as it was done in transcode-1.1.5-ffmpeg.patch. The patch is attached.
Comment 6 Amir Aupov 2011-08-27 17:37:59 UTC
Created attachment 284811 [details, diff]
Fix libavcodec_decode_video
Comment 7 Samuli Suominen (RETIRED) gentoo-dev 2011-12-06 07:56:26 UTC
I believe this is a duplicate of 334293 and fixed in transcode-1.1.7.

*** This bug has been marked as a duplicate of bug 334293 ***