[FFmpeg-trac] #2686(avcodec:open): Native AAC encoder collapses at high bitrates on some samples

FFmpeg trac at avcodec.org
Tue Dec 22 15:09:39 CET 2015


#2686: Native AAC encoder collapses at high bitrates on some samples
-------------------------------------+-------------------------------------
             Reporter:  Kamedo2      |                    Owner:
                 Type:  defect       |  klaussfreire
             Priority:  normal       |                   Status:  open
              Version:  git-master   |                Component:  avcodec
             Keywords:  aac          |               Resolution:
  regression                         |               Blocked By:
             Blocking:               |  Reproduced by developer:  1
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------

Comment (by Kamedo2):

 Sadly, it still crashes with some samples.
 {{{
 ffmpeg77436 -y -i "FFmpeg_aacvbr_pulse2.flac" -c:a aac -ar 11025 -cutoff
 5000 -profile:a aac_main -b:a 8k out.mp4
 ffmpeg version N-77436-g18cd789 Copyright (c) 2000-2015 the FFmpeg
 developers
   built with gcc 5.2.0 (GCC)
   configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-
 libmp3
 lame --enable-libvo-aacenc --enable-libvorbis --enable-libfdk-aac
 --enable-w32th
 reads --extra-ldflags=-static --extra-cflags='-mtune=nocona'
 --optflags=-O2
   libavutil      55. 11.100 / 55. 11.100
   libavcodec     57. 20.100 / 57. 20.100
   libavformat    57. 20.100 / 57. 20.100
   libavdevice    57.  0.100 / 57.  0.100
   libavfilter     6. 21.100 /  6. 21.100
   libswscale      4.  0.100 /  4.  0.100
   libswresample   2.  0.101 /  2.  0.101
   libpostproc    54.  0.100 / 54.  0.100
 Input #0, flac, from 'FFmpeg_aacvbr_pulse2.flac':
   Duration: 00:00:16.10, start: 0.000000, bitrate: 1167 kb/s
     Stream #0:0: Audio: flac, 48000 Hz, stereo, s16
 Output #0, mp4, to 'out.mp4':
   Metadata:
     encoder         : Lavf57.20.100
     Stream #0:0: Audio: aac ([64][0][0][0] / 0x0040), 11025 Hz, stereo,
 fltp (16
  bit), 8 kb/s
     Metadata:
       encoder         : Lavc57.20.100 aac
 Stream mapping:
   Stream #0:0 -> #0:0 (flac (native) -> aac (native))
 Press [q] to stop, [?] for help
 Assertion diff >= 0 && diff <= 120 failed at libavcodec/aacenc.c:363

 This application has requested the Runtime to terminate it in an unusual
 way.
 Please contact the application's support team for more information.
 }}}

 {{{
 ffmpeg77436 -y -i "FFmpeg_anmr_error6.flac" -c:a aac -q:a 1280k out.mp4
 ffmpeg version N-77436-g18cd789 Copyright (c) 2000-2015 the FFmpeg
 developers
   built with gcc 5.2.0 (GCC)
   configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-
 libmp3
 lame --enable-libvo-aacenc --enable-libvorbis --enable-libfdk-aac
 --enable-w32th
 reads --extra-ldflags=-static --extra-cflags='-mtune=nocona'
 --optflags=-O2
   libavutil      55. 11.100 / 55. 11.100
   libavcodec     57. 20.100 / 57. 20.100
   libavformat    57. 20.100 / 57. 20.100
   libavdevice    57.  0.100 / 57.  0.100
   libavfilter     6. 21.100 /  6. 21.100
   libswscale      4.  0.100 /  4.  0.100
   libswresample   2.  0.101 /  2.  0.101
   libpostproc    54.  0.100 / 54.  0.100
 Input #0, flac, from 'FFmpeg_anmr_error6.flac':
   Duration: 00:00:10.00, start: 0.000000, bitrate: 218 kb/s
     Stream #0:0: Audio: flac, 44100 Hz, stereo, s16
 }}}

 {{{
 ffmpeg77436 -y -i "ffmpeg_aacvbr_pulse2.flac" -c:a aac -ar 11025 -cutoff
 5000 -b:a 8k -profile:a aac_main out.mp4
 ffmpeg version N-77436-g18cd789 Copyright (c) 2000-2015 the FFmpeg
 developers
   built with gcc 5.2.0 (GCC)
   configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-
 libmp3
 lame --enable-libvo-aacenc --enable-libvorbis --enable-libfdk-aac
 --enable-w32th
 reads --extra-ldflags=-static --extra-cflags='-mtune=nocona'
 --optflags=-O2
   libavutil      55. 11.100 / 55. 11.100
   libavcodec     57. 20.100 / 57. 20.100
   libavformat    57. 20.100 / 57. 20.100
   libavdevice    57.  0.100 / 57.  0.100
   libavfilter     6. 21.100 /  6. 21.100
   libswscale      4.  0.100 /  4.  0.100
   libswresample   2.  0.101 /  2.  0.101
   libpostproc    54.  0.100 / 54.  0.100
 Input #0, flac, from 'ffmpeg_aacvbr_pulse2.flac':
   Duration: 00:00:16.10, start: 0.000000, bitrate: 1167 kb/s
     Stream #0:0: Audio: flac, 48000 Hz, stereo, s16
 Output #0, mp4, to 'out.mp4':
   Metadata:
     encoder         : Lavf57.20.100
     Stream #0:0: Audio: aac ([64][0][0][0] / 0x0040), 11025 Hz, stereo,
 fltp (16
  bit), 8 kb/s
     Metadata:
       encoder         : Lavc57.20.100 aac
 Stream mapping:
   Stream #0:0 -> #0:0 (flac (native) -> aac (native))
 Press [q] to stop, [?] for help
 Assertion diff >= 0 && diff <= 120 failed at libavcodec/aacenc.c:363

 This application has requested the Runtime to terminate it in an unusual
 way.
 Please contact the application's support team for more information.
 }}}

 {{{
 ffmpeg77436 -y -i "sine_tester.flac" -c:a aac -ar 11025 -cutoff 5000 -b:a
 8k out.mp4
 ffmpeg version N-77436-g18cd789 Copyright (c) 2000-2015 the FFmpeg
 developers
   built with gcc 5.2.0 (GCC)
   configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-
 libmp3
 lame --enable-libvo-aacenc --enable-libvorbis --enable-libfdk-aac
 --enable-w32th
 reads --extra-ldflags=-static --extra-cflags='-mtune=nocona'
 --optflags=-O2
   libavutil      55. 11.100 / 55. 11.100
   libavcodec     57. 20.100 / 57. 20.100
   libavformat    57. 20.100 / 57. 20.100
   libavdevice    57.  0.100 / 57.  0.100
   libavfilter     6. 21.100 /  6. 21.100
   libswscale      4.  0.100 /  4.  0.100
   libswresample   2.  0.101 /  2.  0.101
   libpostproc    54.  0.100 / 54.  0.100
 Input #0, flac, from 'sine_tester.flac':
   Duration: 00:00:28.00, start: 0.000000, bitrate: 294 kb/s
     Stream #0:0: Audio: flac, 48000 Hz, stereo, s32 (24 bit)
 Output #0, mp4, to 'out.mp4':
   Metadata:
     encoder         : Lavf57.20.100
     Stream #0:0: Audio: aac ([64][0][0][0] / 0x0040), 11025 Hz, stereo,
 fltp (24
  bit), 8 kb/s
     Metadata:
       encoder         : Lavc57.20.100 aac
 Stream mapping:
   Stream #0:0 -> #0:0 (flac (native) -> aac (native))
 Press [q] to stop, [?] for help
 Assertion diff >= 0 && diff <= 120 failed at libavcodec/aacenc.c:363

 This application has requested the Runtime to terminate it in an unusual
 way.
 Please contact the application's support team for more information.
 }}}

 {{{
 ffmpeg77436 -y -i "ffmpeg_96k_error.flac" -c:a aac -profile:a aac_main
 -b:a 16k -ar 44100 -cutoff 20000 out.mp4
 ffmpeg version N-77436-g18cd789 Copyright (c) 2000-2015 the FFmpeg
 developers
   built with gcc 5.2.0 (GCC)
   configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-
 libmp3
 lame --enable-libvo-aacenc --enable-libvorbis --enable-libfdk-aac
 --enable-w32th
 reads --extra-ldflags=-static --extra-cflags='-mtune=nocona'
 --optflags=-O2
   libavutil      55. 11.100 / 55. 11.100
   libavcodec     57. 20.100 / 57. 20.100
   libavformat    57. 20.100 / 57. 20.100
   libavdevice    57.  0.100 / 57.  0.100
   libavfilter     6. 21.100 /  6. 21.100
   libswscale      4.  0.100 /  4.  0.100
   libswresample   2.  0.101 /  2.  0.101
   libpostproc    54.  0.100 / 54.  0.100
 Input #0, flac, from 'ffmpeg_96k_error.flac':
   Duration: 00:00:02.01, start: 0.000000, bitrate: 238 kb/s
     Stream #0:0: Audio: flac, 48000 Hz, stereo, s16
 Output #0, mp4, to 'out.mp4':
   Metadata:
     encoder         : Lavf57.20.100
     Stream #0:0: Audio: aac ([64][0][0][0] / 0x0040), 44100 Hz, stereo,
 fltp (16
  bit), 16 kb/s
     Metadata:
       encoder         : Lavc57.20.100 aac
 Stream mapping:
   Stream #0:0 -> #0:0 (flac (native) -> aac (native))
 Press [q] to stop, [?] for help
 Assertion diff >= 0 && diff <= 120 failed at libavcodec/aacenc.c:363

 This application has requested the Runtime to terminate it in an unusual
 way.
 Please contact the application's support team for more information.
 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/2686#comment:469>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list