[FFmpeg-devel] Error Decoding Stream (AAC)

Marcus Frasier airkat
Mon Oct 20 16:13:47 CEST 2008


Here is a quick output of what I'm running. This is the second pass:


ffmpeg -y -i southernman.mp4 -threads 2 -pass 2 -acodec libfaac -ac 2 
-vcodec libx264 -b 600000 -r 30 -s 480x368 -bf 3 -qcomp 0.7 -g 300 
-keyint_min 30 -refs 5 -loop 1 -flags +4mv -cmp 256 -coder 0 -me_range 
16 -sc_threshold 40 -i_qfactor 0.71 -level 30 -qmin 10 -qmax 51 -qdiff 4 
-subq 6 -me_method umh -partitions 
parti4x4+parti8x8+partp4x4+partp8x8+partb8x8 -flags2 
+wpred+mixed_refs+8x8dct -trellis 1 southernmanredone.mp4

FFmpeg version SVN-r15647, Copyright (c) 2000-2008 Fabrice Bellard, et al.
  configuration: --enable-shared --enable-gpl --enable-nonfree 
--enable-libxvid --enable-libvorbis --enable-libmp3lame --enable-libfaad 
--enable-libfaac --enable-libtheora --enable-libx264 --enable-libamr-nb 
--enable-libamr-wb
  libavutil     49.12. 0 / 49.12. 0
  libavcodec    52. 0. 0 / 52. 0. 0
  libavformat   52.22. 1 / 52.22. 1
  libavdevice   52. 1. 0 / 52. 1. 0
  built on Oct 19 2008 20:38:45, gcc: 4.1.2 20071124 (Red Hat 4.1.2-42)

Seems stream 1 codec frame rate differs from container frame rate: 
24000.00 (24000/1) -> 23.98 (24000/1001)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'southernman.mp4':
  Duration: 00:03:48.93, start: 0.000000, bitrate: 1842 kb/s
    Stream #0.0(eng): Audio: aac, 48000 Hz, stereo, s16
    Stream #0.1(eng): Video: h264, yuv420p, 640x480, 23.98 tb(r)
Warning: not compiled with thread support, using thread emulation
Output #0, mp4, to 'southernmanredone.mp4':
    Stream #0.0(eng): Video: libx264, yuv420p, 480x368, q=10-51, pass 2, 
600 kb/s, 30.00 tb(c)
    Stream #0.1(eng): Audio: libfaac, 48000 Hz, stereo, s16, 64 kb/s
Stream mapping:
  Stream #0.1 -> #0.0
  Stream #0.0 -> #0.1
[libx264 @ 0x9b1e040]using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64
Press [q] to stop encoding
Error while decoding stream #0.0
Error while decoding stream #0.0
Error while decoding stream #0.0
---------------------------
---------------------------

The first pass runs fine, and that command is:

ffmpeg -y -i southernman.mp4 -threads 2 -pass 1 -an -vcodec libx264 -b 
600000 -r 30 -s 480x368 -bf 3 -qcomp 0.7 -g 300 -keyint_min 30 -refs 5 
-loop 1 -flags +4m v -cmp 256 -coder 0 -me_range 16 -sc_threshold 40 
-i_qfactor 0.71 -level 30 -qmi n 10 -qmax 51 -qdiff 4 -subq 1 -me_method 
hex -partitions 0 -trellis 0 mixed_refs southernmanredone.mp4

So I assume it's because I'm telling it to use libfaac in the second 
pass. Other videos convert just fine, but as this is for a video 
uploading community, I want to make sure I test with a broad range of files.





More information about the ffmpeg-devel mailing list