[FFmpeg-devel] Error Decoding Stream (AAC)
Robert Swain
robert.swain
Mon Oct 20 16:15:34 CEST 2008
2008/10/20 Marcus Frasier <airkat at idlemedia.net>:
> 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.
1) -flags +4mv isn't used in libx264.
2) I think 'mixed_refs' is misplaced in your first pass command line.
3) Your first pass command line correctly uses -an and hence does not
process the audio at all, which is what you want for the first pass.
Your second pass does process the audio and it seems there is a
problem with the AAC stream of your source file.
How large is your source file? Can you follow the bug submission
guidelines on http://ffmpeg.org/ please? (This will lead you to create
a roundup ticket for the problematic file and upload the file to our
servers.)
Regards,
Rob
More information about the ffmpeg-devel
mailing list