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

FFmpeg trac at avcodec.org
Tue Oct 8 19:27:17 CEST 2013


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

Comment (by Kamedo2):

 FFmpeg crashes when the sampling rate is 7350Hz, both vbr and abr.
 Insignificant, but in case you have missed something.
 It worked on 96000, 88200, 64000, 48000, 44100, 32000, 24000, 22050,
 16000, 8000Hz.
 {{{
 ffmpeg56668.exe -v 9 -loglevel 99 -y -i ffmpeg_aac_lead_voice.flac -c:a
 aac -str
 ict -2 -ar 7350 -b:a 128k ffmpeg_aac_lead_voiceb128.mp4
 ffmpeg version N-56667-g32cde96 Copyright (c) 2000-2013 the FFmpeg
 developers
   built on Sep 29 2013 23:03:27 with gcc 4.8.1 (GCC)
   configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-
 libfdk
 -aac --enable-libfaac --enable-libmp3lame --extra-ldflags=-static --extra-
 cflags
 ='-march=nocona -mfpmath=sse' --optflags=-O2
   libavutil      52. 46.100 / 52. 46.100
   libavcodec     55. 33.100 / 55. 33.100
   libavformat    55. 18.102 / 55. 18.102
   libavdevice    55.  3.100 / 55.  3.100
   libavfilter     3. 87.100 /  3. 87.100
   libswscale      2.  5.100 /  2.  5.100
   libswresample   0. 17.103 /  0. 17.103
   libpostproc    52.  3.100 / 52.  3.100
 Splitting the commandline.
 Reading option '-v' ... matched as option 'v' (set logging level) with
 argument
 '9'.
 Reading option '-loglevel' ... matched as option 'loglevel' (set logging
 level)
 with argument '99'.
 Reading option '-y' ... matched as option 'y' (overwrite output files)
 with argu
 ment '1'.
 Reading option '-i' ... matched as input file with argument
 '\ffmpeg_aac_lead_vo
 ice.flac'.
 Reading option '-c:a' ... matched as option 'c' (codec name) with argument
 'aac'
 .
 Reading option '-strict' ... matched as AVOption 'strict' with argument
 '-2'.
 Reading option '-ar' ... matched as option 'ar' (set audio sampling rate
 (in Hz)
 ) with argument '7350'.
 Reading option '-b:a' ... matched as option 'b' (video bitrate (please use
 -b:v)
 ) with argument '128k'.
 Reading option 'ffmpeg_aac_lead_voiceb128.mp4' ...
  matched as output file.
 Finished splitting the commandline.
 Parsing a group of options: global .
 Applying option v (set logging level) with argument 9.
 Applying option y (overwrite output files) with argument 1.
 Successfully parsed a group of options.
 Parsing a group of options: input file ffmpeg_aac_
 lead_voice.flac.
 Successfully parsed a group of options.
 Opening an input file: ffmpeg_aac_lead_voice.flac.

 [flac @ 0159f2e0] Format flac probed with size=2048 and score=50
 [flac @ 0159f2e0] File position before avformat_find_stream_info() is 4374
 [flac @ 030866e0] sample/frame number mismatch in adjacent frames
     Last message repeated 114 times
 [flac @ 0159f2e0] max_analyze_duration 5000000 reached at 5015510
 microseconds
 [flac @ 0159f2e0] File position after avformat_find_stream_info() is
 377856
 Input #0, flac, from 'ffmpeg_aac_lead_voice.flac':

   Metadata:
     REPLAYGAIN_TRACK_PEAK: 0.67306519
     REPLAYGAIN_TRACK_GAIN: -4.18 dB
     REPLAYGAIN_ALBUM_PEAK: 0.67306519
     REPLAYGAIN_ALBUM_GAIN: -4.18 dB
     COMMENT         : Encoded by FLAC v1.1.2a with FLAC Frontend v1.7.1
   Duration: 00:00:24.68, bitrate: 471 kb/s
     Stream #0:0, 50, 1/44100: Audio: flac, 44100 Hz, mono, s16
 Successfully opened the file.
 Parsing a group of options: output file ffmpeg_aac
 _lead_voiceb128.mp4.
 Applying option c:a (codec name) with argument aac.
 Applying option ar (set audio sampling rate (in Hz)) with argument 7350.
 Applying option b:a (video bitrate (please use -b:v)) with argument 128k.
 Successfully parsed a group of options.
 Opening an output file: ffmpeg_aac_lead_voiceb128.
 mp4.
 Successfully opened the file.
 detected 8 logical cores
 [graph 0 input from stream 0:0 @ 0159f100] Setting 'time_base' to value
 '1/44100
 '
 [graph 0 input from stream 0:0 @ 0159f100] Setting 'sample_rate' to value
 '44100
 '
 [graph 0 input from stream 0:0 @ 0159f100] Setting 'sample_fmt' to value
 's16'
 [graph 0 input from stream 0:0 @ 0159f100] Setting 'channel_layout' to
 value '0x
 4'
 [graph 0 input from stream 0:0 @ 0159f100] tb:1/44100 samplefmt:s16
 samplerate:4
 4100 chlayout:0x4
 [audio format for output stream 0:0 @ 03142120] Setting 'sample_fmts' to
 value '
 fltp'
 [audio format for output stream 0:0 @ 03142120] Setting 'sample_rates' to
 value
 '7350'
 [audio format for output stream 0:0 @ 03142120] auto-inserting filter
 'auto-inse
 rted resampler 0' between the filter 'Parsed_anull_0' and the filter
 'audio form
 at for output stream 0:0'
 [AVFilterGraph @ 030df400] query_formats: 4 queried, 6 merged, 3 already
 done, 0
  delayed
 [auto-inserted resampler 0 @ 0307a240] ch:1 chl:mono fmt:s16 r:44100Hz ->
 ch:1 c
 hl:mono fmt:fltp r:7350Hz
 [aac @ 030ed9a0] Too many bits per frame requested, clamping to max
 }}}


 How is the development going?

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


More information about the FFmpeg-trac mailing list