LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-29-2009, 04:02 AM   #1
yonix
LQ Newbie
 
Registered: Jan 2009
Distribution: Debian/Gentoo
Posts: 11

Rep: Reputation: 1
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.
 
Old 06-29-2009, 04:20 AM   #2
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
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)
 
Old 06-29-2009, 06:55 AM   #3
yonix
LQ Newbie
 
Registered: Jan 2009
Distribution: Debian/Gentoo
Posts: 11

Original Poster
Rep: Reputation: 1
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!
 
Old 06-29-2009, 06:58 AM   #4
yonix
LQ Newbie
 
Registered: Jan 2009
Distribution: Debian/Gentoo
Posts: 11

Original Poster
Rep: Reputation: 1
For the ones interested, the library that caused the problem was libavdevice.
 
Old 06-29-2009, 07:39 AM   #5
arckane
Member
 
Registered: Sep 2005
Location: UK
Distribution: Gentoo/Debian/Ubuntu
Posts: 308

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


Reply

Tags
ffmpeg



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ffmpeg: symbol lookup error: ffmpeg: undefined symbol: avformat_alloc_context YeeHaa4LINUX Linux - Software 2 10-16-2009 11:09 PM
symbol lookup error: /usr/lib/libavcodec.so.51: undefined symbol: av_crc04C11DB7 priceey Linux - Software 0 05-06-2009 08:14 AM
./firefox-bin :symbol lookup error:/lib/libgthread-2.0.so.0: undefined symbol: arulupsaras Linux - General 1 11-08-2008 04:48 AM
symbol lookup error: /usr/lib/libgtk-x11.2.0.so.0: undefined symbol:... IamI Slackware 17 02-29-2008 11:10 AM
ffmpeg: undefined symbol: audio_device GTBlackwell Linux - Software 3 03-27-2006 10:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration