ffmpeg doesn't work with hardy FAAD library
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Medibuntu |
Invalid
|
Undecided
|
Unassigned | ||
Hardy |
Fix Released
|
Medium
|
Lionel Le Folgoc |
Bug Description
I'm currently running hardy with the medibuntu packages installed, and the medibuntu ffmpeg seems to have trouble dynamically linking to the FAAD library provided by the ubuntu repos. Curiously, it only seems to be ffmpeg that suffers from this, mplayer works fine.
$ ffmpeg -i test.mkv -ab 128 -acodec mp3 test-audio.mp33 $1-audio.mp3
FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.
configuration: --enable-gpl --enable-pp --enable-swscaler --enable-pthreads --enable-libvorbis --enable-libtheora --enable-libogg --enable-libgsm --enable-dc1394 --disable-debug --enable-libmp3lame --enable-libfaadbin --enable-libfaad --enable-libfaac --enable-xvid --enable-x264 --enable-liba52 --enable-amr_nb --enable-amr_wb --enable-shared --prefix=/usr
libavutil version: 1d.49.3.0
libavcodec version: 1d.51.38.0
libavformat version: 1d.51.10.0
built on Mar 23 2008 22:28:54, gcc: 4.2.3 (Ubuntu 4.2.3-2ubuntu6)
[matroska @ 0xb7ed1110]Ignoring seekhead entry for ID=0x1549a966
[matroska @ 0xb7ed1110]Ignoring seekhead entry for ID=0x1654ae6b
[matroska @ 0xb7ed1110]Ignoring seekhead entry for ID=0x114d9b74
[matroska @ 0xb7ed1110]Ignoring seekhead entry for ID=0x1043a770
[matroska @ 0xb7ed1110]Ignoring seekhead entry for ID=0x1941a469
[matroska @ 0xb7ed1110]Unknown entry 0x73a4 in info header
[matroska @ 0xb7ed1110]Unknown track header entry 0x55aa - ignoring
[matroska @ 0xb7ed1110]Unknown track header entry 0x23314f - ignoring
[matroska @ 0xb7ed1110]Unknown track header entry 0x55ee - ignoring
[matroska @ 0xb7ed1110]Unknown track header entry 0x55aa - ignoring
[matroska @ 0xb7ed1110]Unknown track header entry 0x23314f - ignoring
[matroska @ 0xb7ed1110]Unknown track header entry 0x55ee - ignoring
[matroska @ 0xb7ed1110]Unknown track header entry 0x55aa - ignoring
[matroska @ 0xb7ed1110]Unknown track header entry 0x23314f - ignoring
[matroska @ 0xb7ed1110]Unknown track header entry 0x55ee - ignoring
[matroska @ 0xb7ed1110]Unknown matroska file header ID 0x1941a469
[matroska @ 0xb7ed1110]Unknown matroska file header ID 0x1043a770
Input #0, matroska, from 'test.mkv':
Duration: 00:23:59.9, bitrate: N/A
Stream #0.0: Video: h264, yuv420p, 640x480, 23.98 fps(r)
Stream #0.1: Audio: aac, 44100 Hz, stereo
Output #0, mp3, to 'test-audio.mp3':
Stream #0.0: Audio: mp3, 44100 Hz, stereo, 0 kb/s
Stream mapping:
Stream #0.1 -> #0.0
[aac @ 0xb7ddf9a8]FAAD library: cannot resolve faacDecGetError
Error while opening codec for input stream #0.1
But it works with faac/faad libraries from Ubuntu 7.10.
On box with Ubuntu 7.10 for h264/aac video clip I have:
~/Videos$ ffmpeg -i foxxy-sports.m4v m4a,3gp, 3g2,mj2, from 'foxxy-sports.m4v':
FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.
configuration: --enable-gpl --enable-pp --enable-swscaler --enable-pthreads --enable-libvorbis --enable-libtheora --enable-libogg --enable-libgsm --enable-dc1394 --disable-debug --enable-libmp3lame --enable-libfaadbin --enable-libfaad --enable-libfaac --enable-xvid --enable-x264 --enable-liba52 --enable-amr_nb --enable-amr_wb --enable-shared --prefix=/usr
libavutil version: 1d.49.3.0
libavcodec version: 1d.51.38.0
libavformat version: 1d.51.10.0
built on Dec 20 2007 21:25:50, gcc: 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)
Input #0, mov,mp4,
Duration: 00:01:45.1, start: 0.000000, bitrate: 1605 kb/s
Stream #0.0(eng): Audio: aac, 44100 Hz, stereo
Stream #0.1(eng): Video: h264, yuv420p, 640x480, 29.97 fps(r)
Must supply at least one output file
On box with Ubuntu 8.04 for the same clip:
ffmpeg -i foxxy-sports.m4v Message in libfaad.so.0! Message in libfaad.so.0! Message in libfaad.so.0! Message in libfaad.so.0! Message in libfaad.so.0! Message in libfaad.so.0! m4a,3gp, 3g2,mj2, from 'foxxy-sports.m4v':
FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.
configuration: --enable-gpl --enable-pp --enable-swscaler --enable-pthreads --enable-libvorbis --enable-libtheora --enable-libogg --enable-libgsm --enable-dc1394 --disable-debug --enable-libmp3lame --enable-libfaadbin --enable-libfaad --enable-libfaac --enable-xvid --enable-x264 --enable-liba52 --enable-amr_nb --enable-amr_wb --enable-shared --prefix=/usr
libavutil version: 1d.49.3.0
libavcodec version: 1d.51.38.0
libavformat version: 1d.51.10.0
built on Mar 23 2008 22:28:54, gcc: 4.2.3 (Ubuntu 4.2.3-2ubuntu6)
[aac @ 0xb7eae9a8]FAAD library: cannot resolve faacDecGetError
[aac @ 0xb7eae9a8]FAAD library: cannot resolve faacDecGetError
[aac @ 0xb7eae9a8]FAAD library: cannot resolve faacDecGetError
...
[aac @ 0xb7eae9a8]FAAD library: cannot resolve faacDecGetError
[aac @ 0xb7eae9a8]FAAD library: cannot resolve faacDecGetError
[aac @ 0xb7eae9a8]FAAD library: cannot resolve faacDecGetError
Input #0, mov,mp4,
Duration: 00:01:45.1, start: 0.000000, bitrate: 1605 kb/s
Stream #0.0(eng): Audio: aac
Stream #0.1(eng): Video: h264, yuv420p, 640x480, 29.97 fps(r)
Must supply at least one output file
The difference that Ubuntu 8.04 uses more recent faac lib 1.26-0 instead of 1.24clean one. PATH=/usr/ local/lib) ,
If you link ffmpeg against old 1.24 version (i'e' install it to /usr/local/lib and use LD_LIBRARY_
then no more complains and aac codec works again.
Unfortunately, mediabuntu ffmpeg source code very old (at least 1 year) and should be updated.
In attachment I briefly described 'fast and dirty' solution to fix a problem until new package arrives.