LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   ffmpeg 'undefined symbol' error for 'avcodec_channel_layout_num_channels' (https://www.linuxquestions.org/questions/linux-software-2/ffmpeg-undefined-symbol-error-for-avcodec_channel_layout_num_channels-736341/)

yonix 06-29-2009 04:02 AM

ffmpeg 'undefined symbol' error for 'avcodec_channel_layout_num_channels'
 
Hi,

I'm compiled ffmpeg from source with this switches:
Code:

--enable-gpl --enable-shared --enable-pthreads --enable-postproc --enable-libfaac --enable-libfaad --enable-libmp3lame --enable-libtheora --enable-libxvid --enable-libamr-nb --enable-libamr-wb --enable-libvorbis --enable-libdc1394 --enable-libgsm --enable-libx264 --enable-x11grab --enable-avfilter --enable-avfilter-lavf --enable-nonfree --enable-decoder=adpcm_swf --enable-encoder=adpcm_swf
When trying to do the simplest conversions (e.g 'ffmpeg -i in.mp3 out.mp3'), I ran into this error message:
Quote:

ffmpeg: symbol lookup error: /opt/ffmpeg/bin/ffmpeg: undefined symbol: avcodec_channel_layout_num_channels
The ffmpeg ubversion revision number is 19285 (the same problem occurs with the 19271 revision), and my OS is Ubuntu Server 9.04 (jaunty).

The libavutil49 package is installed (version 3:0.svn20090303-1ubuntu6)

Any ideas what could went wrong and caused this problem?

Thanks in advance, YoniX.

i92guboj 06-29-2009 04:20 AM

Are you sure that you compiled the ffmpeg package in the same system using the same versions of the libraries that you have right now?

Maybe you updated some libs after compiling ffmpeg? Or you did compile ffmpeg in anotehr machine with different versions of the libraries/headers...

Does this command report something useful?

Code:

ldd $(which ffmpeg)

yonix 06-29-2009 06:55 AM

Thanks for the reply, which gave me an idea.

I installed ffmpeg with a defined prefix, which means i had to define dynamic linker run-time bindings for ffmpeg's lib directory, but apparently I another copy of the libraries, with other version than the bundled one, so ldconfig won't do the linking for ffmpeg's lib directory.

Thanks!

yonix 06-29-2009 06:58 AM

For the ones interested, the library that caused the problem was libavdevice.

arckane 06-29-2009 07:39 AM

libavdevice is causing a lot of issues at the moment, even on Debian Testing is you use Debian Multimedia as sources.


All times are GMT -5. The time now is 01:05 PM.