[FFmpeg-trac] #3723(undetermined:new): aac copy issue with -bsf:a aac_adtstoasc when container is not flv, m4a, mov or mp4

FFmpeg trac at avcodec.org
Tue Jun 17 18:52:14 CEST 2014

#3723: aac copy issue with -bsf:a aac_adtstoasc when container is not flv, m4a,
mov or mp4
             Reporter:  feelart      |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
              Version:  git-master   |  undetermined
             Keywords:               |               Resolution:
             Blocking:               |               Blocked By:
Analyzed by developer:  0            |  Reproduced by developer:  0

Comment (by feelart):

 I do wish not to use the bitstream filter, I'd rather prefer it is left
 However, as I understood it is a must requirement for m4a, flv, mp4 and

 As I understand, bsf is a mutual exclusive flag: you must use it on
 certain containers (m4a, flv, mp4 and mov), but must not on all others.

 In the following CLI, ffmpeg clearly mentions "Conversion failed!" and no
 empty output (1 Kb)is created.

 While in 1st example, namely:
 >ffmpeg -i aac_test.aac -c:a copy -bsf:a aac_adtstoasc
 ffmpeg ought to exist, but currently does not and more prone to error
 creates an apparently good output.

 This is either a feature enhancement or bug.

 E:\_PS\dbtest\mm_audio_codec>ffmpeg -i aac_test.aac -c:a copy
 ffmpeg version N-63968-g73d820e Copyright (c) 2000-2014 the FFmpeg
   built on Jun 15 2014 00:52:21 with gcc 4.8.3 (GCC)
   configuration: --enable-gpl --enable-version3 --disable-w32threads
 --enable-avisynth --enable-bzlib --enable-fo
 ntconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass
 --enable-libbluray --enable-libcaca --ena
 ble-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-
 libmodplug --enable-libmp3lame --enable
 -libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
 --enable-libopus --enable-librtmp --enable-lib
 schroedinger --enable-libsoxr --enable-libspeex --enable-libtheora
 --enable-libtwolame --enable-libvidstab --enab
 le-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx
 --enable-libwavpack --enable-libwebp -
 -enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid
 --enable-decklink --enable-zlib
   libavutil      52. 89.100 / 52. 89.100
   libavcodec     55. 66.101 / 55. 66.101
   libavformat    55. 43.100 / 55. 43.100
   libavdevice    55. 13.101 / 55. 13.101
   libavfilter     4.  8.100 /  4.  8.100
   libswscale      2.  6.100 /  2.  6.100
   libswresample   0. 19.100 /  0. 19.100
   libpostproc    52.  3.100 / 52.  3.100
 [aac @ 0000000000318320] Estimating duration from bitrate, this may be
 Input #0, aac, from 'aac_test.aac':
   Duration: 00:00:14.72, bitrate: 124 kb/s
     Stream #0:0: Audio: aac, 44100 Hz, stereo, fltp, 124 kb/s
 Output #0, mp4, to 'aac_try_with_bsf.mp4':
     encoder         : Lavf55.43.100
     Stream #0:0: Audio: aac ([64][0][0][0] / 0x0040), 44100 Hz, stereo,
 124 kb/s
 Stream mapping:
   Stream #0:0 -> #0:0 (copy)
 Press [q] to stop, [?] for help
 [mp4 @ 0000000004ee42e0] Malformed AAC bitstream detected: use audio
 bitstream filter 'aac_adtstoasc' to fix it (
 '-bsf:a aac_adtstoasc' option with ffmpeg)
 av_interleaved_write_frame(): Operation not permitted
 size=       0kB time=00:00:00.02 bitrate=  88.9kbits/s
 video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
 muxing overhead: unknown
 Conversion failed!


Ticket URL: <https://trac.ffmpeg.org/ticket/3723#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker

More information about the FFmpeg-trac mailing list