[FFmpeg-trac] #2782(avformat:open): aac - Malformed AAC bitstream - incorrectly fixed with -bsf:a aac_adtstoasc' option
FFmpeg
trac at avcodec.org
Tue Jul 16 04:20:10 CEST 2013
#2782: aac - Malformed AAC bitstream - incorrectly fixed with -bsf:a
aac_adtstoasc' option
------------------------------------+------------------------------------
Reporter: feelart | Owner:
Type: defect | Status: open
Priority: normal | Component: avformat
Version: git-master | Resolution:
Keywords: aac mov | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
------------------------------------+------------------------------------
Comment (by feelart):
Regarding MP4Box, I don't know this tool.
https://github.com/elfchief/mp3gain/blob/master/aacgain/aacgain.cpp
Line 317&318
{{{
//ignore error 4 (scalefactor out of range) which seems to happen on some
tracks
//other errors are fatal
}}}
aacgain starts to process the file almost till the end, then stops on
fatal error.
Same kind of fatal error both with
{{{
ffmpeg -i alice.aac -bsf:a aac_adtstoasc -vol 312 test.aac
or
ffmpeg -y -i alice.aac -bsf:a aac_adtstoasc -af volume=1.5 test.aac
}}}
{{{
F:\Youtube Extract\Music>ffmpeg -y -i alice.aac -bsf:a aac_adtstoasc -af
volume=1.5 test.aac
ffmpeg version N-54691-g7f4a1fd Copyright (c) 2000-2013 the FFmpeg
developers
built on Jul 12 2013 16:31:48 with gcc 4.7.3 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-avisynth --enable-bzlib --enable-fontconfig --en
able-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-
libbluray --enable-libcaca --enable-libfreetype --enable-l
ibgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-
libopencore-amrnb --enable-libopencore-amrwb --enable-
libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger
--enable-libsoxr --enable-libspeex --enable-libtheora -
-enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-
libvorbis --enable-libvpx --enable-libx264 --enable-
libxavs --enable-libxvid --enable-zlib
libavutil 52. 39.100 / 52. 39.100
libavcodec 55. 18.102 / 55. 18.102
libavformat 55. 12.102 / 55. 12.102
libavdevice 55. 3.100 / 55. 3.100
libavfilter 3. 80.101 / 3. 80.101
libswscale 2. 3.100 / 2. 3.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 3.100 / 52. 3.100
[aac @ 0000000002529fe0] Estimating duration from bitrate, this may be
inaccurate
Input #0, aac, from 'alice.aac':
Metadata:
title : Alice Deejay - Better Off Alon
Duration: 00:03:46.41, bitrate: 77 kb/s
Stream #0:0: Audio: aac, 44100 Hz, stereo, fltp, 77 kb/s
Output #0, adts, to 'test.aac':
Metadata:
title : Alice Deejay - Better Off Alon
encoder : Lavf55.12.102
Stream #0:0: Audio: aac (libvo_aacenc), 44100 Hz, stereo, s16, 128
kb/s
Stream mapping:
Stream #0:0 -> #0:0 (aac -> libvo_aacenc)
Press [q] to stop, [?] for help
decode_band_types: Input buffer exhausted before END element found
Error while decoding stream #0:0: Invalid data found when processing input
[aac @ 0000000002536ea0] channel element 2.0 is not allocated
Error while decoding stream #0:0: Error number -1 occurred
size= 2440kB time=00:02:39.13 bitrate= 125.6kbits/s
video:0kB audio:2487kB subtitle:0 global headers:0kB muxing overhead
-1.884090%
}}}
So far as I understand, it's a bug for ffmpeg.
I have other samples, which throw other error.
P.S. Work in progress against annoying important de-synch bugs such as
ticket 2400?
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2782#comment:4>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list