[FFmpeg-trac] #3038(undetermined:closed): FFMPEG crashes encoding AAC audio at 32k/1ch AAC, but not at 31k/1ch or 33k/1ch

FFmpeg trac at avcodec.org
Wed Oct 9 11:46:14 CEST 2013


#3038: FFMPEG crashes encoding AAC audio at 32k/1ch AAC, but not at 31k/1ch or
33k/1ch
-------------------------------------+-------------------------------------
             Reporter:  soulbabel    |                    Owner:
                 Type:  defect       |                   Status:  closed
             Priority:  normal       |                Component:
              Version:  unspecified  |  undetermined
             Keywords:               |               Resolution:
             Blocking:               |  worksforme
Analyzed by developer:  0            |               Blocked By:
                                     |  Reproduced by developer:  0
-------------------------------------+-------------------------------------

Comment (by soulbabel):

 Replying to [comment:6 cehoyos]:
 > Does it also crash if you use {{{-acodec aac -strict -2}}} ?

 It encoded successfully.  Here is the command line I used:
 {{{
 ffmpeg -v 9 -loglevel 99 -report -i original.mp4 -y -vn -acodec aac
 -strict -2 -ac 1 -b:a 32k -ar 44100 output.mp4
 }}}
 versus the crashing command line:
 {{{
 ffmpeg -v 9 -loglevel 99 -report -i original.mp4 -y -vn -c:a libvo_aacenc
 -ac 1 -b:a 32k -ar 44100 output.mp4
 }}}

 Here is the log file from the successful encode:
 {{{
 ffmpeg started on 2013-10-09 at 05:39:46
 Report written to "ffmpeg-20131009-053946.log"
 Command line:
 ffmpeg -v 9 -loglevel 99 -report -i original.mp4 -y -vn -acodec aac
 -strict -2 -ac 1 -b:a 32k -ar 44100 output.mp4
 ffmpeg version N-56980-g1ab9f32 Copyright (c) 2000-2013 the FFmpeg
 developers
   built on Oct  8 2013 18:08:35 with gcc 4.8.1 (GCC)
   configuration: --enable-gpl --enable-version3 --disable-w32threads
 --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r
 --enable-gnutls --enable-iconv --enable-libass --enable-libbluray
 --enable-libcaca --enable-libfreetype --enable-libgsm --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-libvidstab --enable-libvo-
 aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx
 --enable-libwavpack --enable-libx264 --enable-libxavs --enable-libxvid
 --enable-zlib
   libavutil      52. 46.101 / 52. 46.101
   libavcodec     55. 35.100 / 55. 35.100
   libavformat    55. 19.100 / 55. 19.100
   libavdevice    55.  4.100 / 55.  4.100
   libavfilter     3. 88.101 /  3. 88.101
   libswscale      2.  5.101 /  2.  5.101
   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 '-report' ... matched as option 'report' (generate a
 report) with argument '1'.
 Reading option '-i' ... matched as input file with argument
 'original.mp4'.
 Reading option '-y' ... matched as option 'y' (overwrite output files)
 with argument '1'.
 Reading option '-vn' ... matched as option 'vn' (disable video) with
 argument '1'.
 Reading option '-acodec' ... matched as option 'acodec' (force audio codec
 ('copy' to copy stream)) with argument 'aac'.
 Reading option '-strict' ... matched as AVOption 'strict' with argument
 '-2'.
 Reading option '-ac' ... matched as option 'ac' (set number of audio
 channels) with argument '1'.
 Reading option '-b:a' ... matched as option 'b' (video bitrate (please use
 -b:v)) with argument '32k'.
 Reading option '-ar' ... matched as option 'ar' (set audio sampling rate
 (in Hz)) with argument '44100'.
 Reading option 'output.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 loglevel (set logging level) with argument 99.
 Applying option report (generate a report) with argument 1.
 Applying option y (overwrite output files) with argument 1.
 Successfully parsed a group of options.
 Parsing a group of options: input file original.mp4.
 Successfully parsed a group of options.
 Opening an input file: original.mp4.
 [mov,mp4,m4a,3gp,3g2,mj2 @ 00000000003fe700] Format
 mov,mp4,m4a,3gp,3g2,mj2 probed with size=2048 and score=100
 [mov,mp4,m4a,3gp,3g2,mj2 @ 00000000003fe700] ISO: File Type Major Brand:
 M4V
 [mov,mp4,m4a,3gp,3g2,mj2 @ 00000000003fe700] File position before
 avformat_find_stream_info() is 400450
 [mov,mp4,m4a,3gp,3g2,mj2 @ 00000000003fe700] All info found
 [mov,mp4,m4a,3gp,3g2,mj2 @ 00000000003fe700] File position after
 avformat_find_stream_info() is 411559
 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'original.mp4':
   Metadata:
     major_brand     : M4V
     minor_version   : 1
     compatible_brands: M4V mp42isom
     creation_time   : 2013-03-22 15:43:32
   Duration: 00:18:58.68, start: 0.000000, bitrate: 1122 kb/s
     Stream #0:0(eng), 10, 1/29970: Video: h264 (Baseline) (avc1 /
 0x31637661), yuv420p(tv), 480x270 [SAR 1:1 DAR 16:9], 1001/60000, 994
 kb/s, 29.97 fps, 29.97 tbr, 29970 tbn, 59.94 tbc (default)
     Metadata:
       creation_time   : 2013-03-22 15:43:32
       handler_name    : Mainconcept MP4 Video Media Handler
     Stream #0:1(eng), 1, 1/44100: Audio: aac (mp4a / 0x6134706D), 44100
 Hz, stereo, fltp, 125 kb/s (default)
     Metadata:
       creation_time   : 2013-03-22 15:43:32
       handler_name    : Mainconcept MP4 Sound Media Handler
 Successfully opened the file.
 Parsing a group of options: output file output.mp4.
 Applying option vn (disable video) with argument 1.
 Applying option acodec (force audio codec ('copy' to copy stream)) with
 argument aac.
 Applying option ac (set number of audio channels) with argument 1.
 Applying option b:a (video bitrate (please use -b:v)) with argument 32k.
 Applying option ar (set audio sampling rate (in Hz)) with argument 44100.
 Successfully parsed a group of options.
 Opening an output file: output.mp4.
 Successfully opened the file.
 detected 12 logical cores
 [graph 0 input from stream 0:1 @ 00000000003f97c0] Setting 'time_base' to
 value '1/44100'
 [graph 0 input from stream 0:1 @ 00000000003f97c0] Setting 'sample_rate'
 to value '44100'
 [graph 0 input from stream 0:1 @ 00000000003f97c0] Setting 'sample_fmt' to
 value 'fltp'
 [graph 0 input from stream 0:1 @ 00000000003f97c0] Setting
 'channel_layout' to value '0x3'
 [graph 0 input from stream 0:1 @ 00000000003f97c0] tb:1/44100
 samplefmt:fltp samplerate:44100 chlayout:0x3
 [audio format for output stream 0:0 @ 000000000036cbc0] Setting
 'sample_fmts' to value 'fltp'
 [audio format for output stream 0:0 @ 000000000036cbc0] Setting
 'sample_rates' to value '44100'
 [audio format for output stream 0:0 @ 000000000036cbc0] Setting
 'channel_layouts' to value '0x4'
 [audio format for output stream 0:0 @ 000000000036cbc0] auto-inserting
 filter 'auto-inserted resampler 0' between the filter 'Parsed_anull_0' and
 the filter 'audio format for output stream 0:0'
 [AVFilterGraph @ 000000000035a160] query_formats: 4 queried, 7 merged, 3
 already done, 0 delayed
 0.707107 0.707107
 [auto-inserted resampler 0 @ 000000000036d180] ch:2 chl:stereo fmt:fltp
 r:44100Hz -> ch:1 chl:mono fmt:fltp r:44100Hz
 Output #0, mp4, to 'output.mp4':
   Metadata:
     major_brand     : M4V
     minor_version   : 1
     compatible_brands: M4V mp42isom
     encoder         : Lavf55.19.100
     Stream #0:0(eng), 0, 1/44100: Audio: aac ([64][0][0][0] / 0x0040),
 44100 Hz, mono, fltp, 32 kb/s (default)
     Metadata:
       creation_time   : 2013-03-22 15:43:32
       handler_name    : Mainconcept MP4 Sound Media Handler
 Stream mapping:
   Stream #0:1 -> #0:0 (aac -> aac)
 Press [q] to stop, [?] for help
 size=     204kB time=00:00:51.78 bitrate=  32.3kbits/s
 size=     391kB time=00:01:39.24 bitrate=  32.3kbits/s
 size=     584kB time=00:02:28.28 bitrate=  32.3kbits/s
 size=     778kB time=00:03:17.29 bitrate=  32.3kbits/s
 size=     964kB time=00:04:04.59 bitrate=  32.3kbits/s
 size=    1138kB time=00:04:48.80 bitrate=  32.3kbits/s
 size=    1303kB time=00:05:30.55 bitrate=  32.3kbits/s
 size=    1482kB time=00:06:16.07 bitrate=  32.3kbits/s
 size=    1664kB time=00:07:02.27 bitrate=  32.3kbits/s
 size=    1824kB time=00:07:42.98 bitrate=  32.3kbits/s
 size=    2005kB time=00:08:28.84 bitrate=  32.3kbits/s
 size=    2187kB time=00:09:14.98 bitrate=  32.3kbits/s
 size=    2371kB time=00:10:01.65 bitrate=  32.3kbits/s
 size=    2548kB time=00:10:46.53 bitrate=  32.3kbits/s
 size=    2732kB time=00:11:33.16 bitrate=  32.3kbits/s
 size=    2911kB time=00:12:18.74 bitrate=  32.3kbits/s
 size=    3083kB time=00:13:02.48 bitrate=  32.3kbits/s
 size=    3263kB time=00:13:48.00 bitrate=  32.3kbits/s
 size=    3448kB time=00:14:34.88 bitrate=  32.3kbits/s
 size=    3615kB time=00:15:17.44 bitrate=  32.3kbits/s
 size=    3801kB time=00:16:04.60 bitrate=  32.3kbits/s
 size=    3973kB time=00:16:48.23 bitrate=  32.3kbits/s
 size=    4143kB time=00:17:31.37 bitrate=  32.3kbits/s
 size=    4321kB time=00:18:16.60 bitrate=  32.3kbits/s
 [output stream 0:0 @ 00000000003ffee0] EOF on sink link output stream
 0:0:default.
 No more output streams to write to, finishing.
 size=    4679kB time=00:18:58.68 bitrate=  33.7kbits/s

 video:0kB audio:4487kB subtitle:0 global headers:0kB muxing overhead
 4.286627%
 49039 frames successfully decoded, 0 decoding errors
 [AVIOContext @ 00000000003f9c00] Statistics: 30 seeks, 49068 writeouts
 [AVIOContext @ 000000000035c660] Statistics: 110428153 bytes read, 3110
 seeks

 }}}

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


More information about the FFmpeg-trac mailing list