faac frame errors

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

faac frame errors

Daniel Kluesing
I've got a few video files that have aac audio where mencoder
successfully transcodes but ffmpeg fails on the aac. One example:
 
ffmpeg -i bad.mp4 -y -s 320x240 -ar 22050 -ab 96k -f flv -b 300000
test.flv
FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et
al.
  configuration: --prefix=/usr --libdir=/usr/lib64
--mandir=/usr/share/man --incdir=/usr/include/ffmpeg
--extra-cflags=-fPIC --enable-libmp3lame --enable-libfaad
--enable-libfaac --enable-libgsm --enable-liba52 --enable-liba52bin
--enable-pp --enable-shared --enable-pthreads --enable-gpl
--disable-strip
  libavutil version: 49.4.0
  libavcodec version: 51.40.4
  libavformat version: 51.12.1
  built on Jun  7 2007 17:49:20, gcc: 3.4.6 20060404 (Red Hat 3.4.6-3)
Compiler did not align stack variables. Libavcodec has been miscompiled
and may be very slow or crash. This is not a bug in libavcodec,
but in the compiler. Do not report crashes to FFmpeg developers.
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'bad.mp4':
  Duration: 00:04:11.6, start: 0.000000, bitrate: 367 kb/s
  Stream #0.0(eng): Video: mpeg4, yuv420p, 320x240, 20.00 fps(r)
  Stream #0.1(eng): Audio: aac, 44100 Hz, stereo
Output #0, flv, to 'test.flv':
  Stream #0.0: Video: flv, yuv420p, 320x240, q=2-31, 300 kb/s, 20.00
fps(c)
  Stream #0.1: Audio: mp3, 22050 Hz, stereo, 96 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Press [q] to stop encoding
[aac @ 0x2a95b3c910]faac: frame decoding failed: Unexpected channel
configuration change
Error while decoding stream #0.1
[aac @ 0x2a95b3c910]faac: frame decoding failed: Gain control not yet
implemented
...
[aac @ 0x2a95b3c910]faac: frame decoding failed: Maximum number of
bitstream elements exceeded
Error while decoding stream #0.1
[aac @ 0x2a95b3c910]faac: frame decoding failed: Gain control not yet
implemented
...
[aac @ 0x2a95b3c910]faac: frame decoding failed: Unexpected channel
configuration change
Error while decoding stream #0.1
frame= 5033 fps=467 q=9.5 Lsize=   10012kB time=44.5
bitrate=1841.5kbits/s    
video:9385kB audio:522kB global headers:0kB muxing overhead 1.065426%
 
This setup is fairly old, figured it might be an old bug, so I rebuilt
everything (ffmpeg, faac, faad2) from current sources. No dice.
 
-bash-3.00$ /usr/bin/ffmpeg -i bad.mp4 -y -s 320x240 -ar 22050 -ab 96k
-f flv -b 300000 test.flv
FFmpeg version SVN-r11264, Copyright (c) 2000-2007 Fabrice Bellard, et
al.
  configuration: --prefix=/usr --enable-memalign-hack --enable-gpl
--enable-libmp3lame --enable-liba52 --enable-liba52bin
--enable-libamr-nb --enable-libamr-wb --enable-libfaac --enable-libfaad
--enable-libx264 --enable-libxvid --enable-libgsm --disable-ffserver
--disable-ffplay
  libavutil version: 49.6.0
  libavcodec version: 51.49.0
  libavformat version: 52.2.0
  built on Dec 18 2007 23:52:50, gcc: 3.4.6 20060404 (Red Hat 3.4.6-3)
Compiler did not align stack variables. Libavcodec has been miscompiled
and may be very slow or crash. This is not a bug in libavcodec,
but in the compiler. You may try recompiling using gcc >= 4.2.
Do not report crashes to FFmpeg developers.
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'bad.mp4':
  Duration: 00:04:11.6, start: 0.000000, bitrate: 367 kb/s
    Stream #0.0(eng): Video: mpeg4, yuv420p, 320x240 [PAR 1:1 DAR 4:3],
20.00 tb(r)
    Stream #0.1(eng): Audio: mpeg4aac, 44100 Hz, stereo
Output #0, flv, to 'test.flv':
    Stream #0.0(eng): Video: flv, yuv420p, 320x240 [PAR 1:1 DAR 4:3],
q=2-31, 300 kb/s, 20.00 tb(c)
    Stream #0.1(eng): Audio: libmp3lame, 22050 Hz, stereo, 96 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Press [q] to stop encoding
[mpeg4aac @ 0x8ee4c0]faac: frame decoding failed: No standard extension
payload allowed in DRM
Error while decoding stream #0.1
[mpeg4aac @ 0x8ee4c0]faac: frame decoding failed: Gain control not yet
implemented
Error while decoding stream #0.1
[mpeg4aac @ 0x8ee4c0]faac: frame decoding failed: Gain control not yet
implemented
Error while decoding stream #0.1
[mpeg4aac @ 0x8ee4c0]faac: frame decoding failed: Invalid number of
channels
...and on...
 
I also tried a fresh 'yum install ffmpeg', same problems.
 
The resulting video file has _some_ of the audio in the output, but
seems to be missing audio for ~half the frames. Mencoder gets the audio
fine.
 
Any suggestions on blatently stupid things I did wrong? Is this the
gcc<4.2 problem?
 
-dk
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user