#3038 closed defect (worksforme)
FFMPEG crashes encoding AAC audio at 32k/1ch AAC, but not at 31k/1ch or 33k/1ch
Reported by: | soulbabel | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | undetermined |
Version: | unspecified | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
Summary of the bug:
FFMPEG crashes when output audio bitrate is set to 32k and one audio channel, however it encodes successfully at 31k and 33k. This appears to be file specific, as it seems to encode most files successfully to a 1ch/32k bitrate, but one file I have seems to trigger the crash.
How to reproduce:
ffmpeg.exe -i "input.mp4" -c:a libvo_aacenc -ac 1 -b:a 32k "output.mp4" ffmpeg version N-56980-g1ab9f32 built on Oct 8 2013 18:08:35 with gcc 4.8.1 (GCC)
Patches should be submitted to the ffmpeg-devel mailing list and not this bug tracker.
Attachments (1)
Change History (13)
comment:1 by , 11 years ago
comment:2 by , 11 years ago
Component: | FFmpeg → undetermined |
---|---|
Resolution: | → worksforme |
Status: | new → closed |
Works fine here, if you want to reopen this ticket, please provide the missing information as explained on http://ffmpeg.org/bugreports.html
$ valgrind ffmpeg_g -i original.mp4 -ac 1 -b:a 32k -c:a libvo_aacenc out.mp4 ==20710== Memcheck, a memory error detector ==20710== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al. ==20710== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info ==20710== Command: ffmpeg_g -i original.mp4 -ac 1 -b:a 32k -c:a libvo_aacenc out.mp4 ==20710== ffmpeg version N-56984-gf115e83 Copyright (c) 2000-2013 the FFmpeg developers built on Oct 9 2013 08:55:45 with gcc 4.7 (SUSE Linux) configuration: --enable-gpl --enable-version3 --enable-libvo-aacenc 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 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): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p(tv), 480x270 [SAR 1:1 DAR 16:9], 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): 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 Output #0, mp4, to 'out.mp4': Metadata: major_brand : M4V minor_version : 1 compatible_brands: M4V mp42isom encoder : Lavf55.19.100 Stream #0:0(eng): Video: mpeg4 ( [0][0][0] / 0x0020), yuv420p, 480x270 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 11988 tbn, 29.97 tbc (default) Metadata: creation_time : 2013-03-22 15:43:32 handler_name : Mainconcept MP4 Video Media Handler Stream #0:1(eng): Audio: aac (libvo_aacenc) ([64][0][0][0] / 0x0040), 44100 Hz, mono, s16, 32 kb/s (default) Metadata: creation_time : 2013-03-22 15:43:32 handler_name : Mainconcept MP4 Sound Media Handler Stream mapping: Stream #0:0 -> #0:0 (h264 -> mpeg4) Stream #0:1 -> #0:1 (aac -> libvo_aacenc) Press [q] to stop, [?] for help frame=34126 fps= 13 q=10.1 Lsize= 33378kB time=00:18:58.69 bitrate= 240.1kbits/s dup=1 drop=0 video:28018kB audio:4406kB subtitle:0 global headers:0kB muxing overhead 2.940380% ==20710== ==20710== HEAP SUMMARY: ==20710== in use at exit: 0 bytes in 0 blocks ==20710== total heap usage: 6,864,152 allocs, 6,864,152 frees, 1,632,917,242 bytes allocated ==20710== ==20710== All heap blocks were freed -- no leaks are possible ==20710== ==20710== For counts of detected and suppressed errors, rerun with: -v ==20710== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 2 from 2)
follow-up: 4 comment:3 by , 11 years ago
I've tried it on two different Windows machines (Win7 and Windows Server 2012), and it crashed on both machines. Perhaps this is a Windows only bug?
comment:4 by , 11 years ago
Replying to soulbabel:
Perhaps this is a Windows only bug?
So far you have unfortunately not provided any information that would allow me to answer...
(And I hope you agree that I did try to reproduce the problem.)
comment:5 by , 11 years ago
My apologies for not attaching the missing info. I am running this command on Windows 7 x64 using the latest static build from Zeranoe. The command crashes after a few seconds, so the log file ends abruptly when it reaches the 4 minute mark in the file.
ffmpeg started on 2013-10-09 at 04:49:50 Report written to "ffmpeg-20131009-044950.log" 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 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 '-c:a' ... matched as option 'c' (codec name) with argument 'libvo_aacenc'. 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 @ 000000000253af00] Format mov,mp4,m4a,3gp,3g2,mj2 probed with size=2048 and score=100 [mov,mp4,m4a,3gp,3g2,mj2 @ 000000000253af00] ISO: File Type Major Brand: M4V [mov,mp4,m4a,3gp,3g2,mj2 @ 000000000253af00] File position before avformat_find_stream_info() is 400450 [mov,mp4,m4a,3gp,3g2,mj2 @ 000000000253af00] All info found [mov,mp4,m4a,3gp,3g2,mj2 @ 000000000253af00] 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 c:a (codec name) with argument libvo_aacenc. 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 @ 00000000024bca60] Setting 'time_base' to value '1/44100' [graph 0 input from stream 0:1 @ 00000000024bca60] Setting 'sample_rate' to value '44100' [graph 0 input from stream 0:1 @ 00000000024bca60] Setting 'sample_fmt' to value 'fltp' [graph 0 input from stream 0:1 @ 00000000024bca60] Setting 'channel_layout' to value '0x3' [graph 0 input from stream 0:1 @ 00000000024bca60] tb:1/44100 samplefmt:fltp samplerate:44100 chlayout:0x3 [audio format for output stream 0:0 @ 00000000024ca400] Setting 'sample_fmts' to value 's16' [audio format for output stream 0:0 @ 00000000024ca400] Setting 'sample_rates' to value '44100' [audio format for output stream 0:0 @ 00000000024ca400] Setting 'channel_layouts' to value '0x4' [audio format for output stream 0:0 @ 00000000024ca400] auto-inserting filter 'auto-inserted resampler 0' between the filter 'Parsed_anull_0' and the filter 'audio format for output stream 0:0' [AVFilterGraph @ 00000000024ba520] query_formats: 4 queried, 6 merged, 3 already done, 0 delayed 0.500000 0.500000 [auto-inserted resampler 0 @ 0000000004cd0b00] ch:2 chl:stereo fmt:fltp r:44100Hz -> ch:1 chl:mono fmt:s16 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 (libvo_aacenc) ([64][0][0][0] / 0x0040), 44100 Hz, mono, s16, 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 -> libvo_aacenc) Press [q] to stop, [?] for help size= 312kB time=00:01:20.42 bitrate= 31.8kbits/s size= 613kB time=00:02:38.39 bitrate= 31.7kbits/s size= 919kB time=00:03:57.38 bitrate= 31.7kbits/s
comment:7 by , 11 years ago
Replying to 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
follow-up: 10 comment:9 by , 11 years ago
I tried the input.mp4 and it crashed on Win7 64bit, Core i7 870. I tried to use the foobar2000 decoded wav as an input, but it also fails. I tried many diverse wav files and quiet speech samples seem to cause the crash problem. I'm going to post another problematic sample that crash the vo-aacenc. I compressed the file into FLAC, but using the original wav doesn't help.
cores\ffmpeg57158.exe -v 9 -loglevel 99 -y -i input.mp4 -c:a libvo_aacenc -ac 1 -b:a 32k -ar 44100 output.mp4 ffmpeg version N-57158-g51df616 Copyright (c) 2000-2013 the FFmpeg developers built on Oct 16 2013 00:36:40 with gcc 4.8.1 (GCC) configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-libfdk -aac --enable-libfaac --enable-libmp3lame --enable-libvo-aacenc --extra-ldflags= -static --extra-cflags='-march=nocona -mfpmath=sse' --optflags=-O2 libavutil 52. 46.101 / 52. 46.101 libavcodec 55. 36.100 / 55. 36.100 libavformat 55. 19.102 / 55. 19.102 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 '-y' ... matched as option 'y' (overwrite output files) with argu ment '1'. Reading option '-i' ... matched as input file with argument 'input.mp4'. Reading option '-c:a' ... matched as option 'c' (codec name) with argument 'libv o_aacenc'. Reading option '-ac' ... matched as option 'ac' (set number of audio channels) w ith 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 y (overwrite output files) with argument 1. Successfully parsed a group of options. Parsing a group of options: input file input.mp4. Successfully parsed a group of options. Opening an input file: input.mp4. [mov,mp4,m4a,3gp,3g2,mj2 @ 03375f40] Format mov,mp4,m4a,3gp,3g2,mj2 probed with size=2048 and score=100 [mov,mp4,m4a,3gp,3g2,mj2 @ 03375f40] ISO: File Type Major Brand: isom [mov,mp4,m4a,3gp,3g2,mj2 @ 03375f40] File position before avformat_find_stream_i nfo() is 4775256 [mov,mp4,m4a,3gp,3g2,mj2 @ 03375f40] All info found [mov,mp4,m4a,3gp,3g2,mj2 @ 03375f40] File position after avformat_find_stream_in fo() is 392 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'input.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2mp41 encoder : Lavf55.19.100 Duration: 00:05:00.84, start: 0.834830, bitrate: 126 kb/s Stream #0:0(eng), 1, 1/44100: Audio: aac (mp4a / 0x6134706D), 44100 Hz, ster eo, fltp, 125 kb/s (default) Metadata: handler_name : SoundHandler Successfully opened the file. Parsing a group of options: output file output.mp4. Applying option c:a (codec name) with argument libvo_aacenc. 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 8 logical cores [graph 0 input from stream 0:0 @ 033e7040] Setting 'time_base' to value '1/44100 ' [graph 0 input from stream 0:0 @ 033e7040] Setting 'sample_rate' to value '44100 ' [graph 0 input from stream 0:0 @ 033e7040] Setting 'sample_fmt' to value 'fltp' [graph 0 input from stream 0:0 @ 033e7040] Setting 'channel_layout' to value '0x 3' [graph 0 input from stream 0:0 @ 033e7040] tb:1/44100 samplefmt:fltp samplerate: 44100 chlayout:0x3 [audio format for output stream 0:0 @ 03372780] Setting 'sample_fmts' to value ' s16' [audio format for output stream 0:0 @ 03372780] Setting 'sample_rates' to value '44100' [audio format for output stream 0:0 @ 03372780] Setting 'channel_layouts' to val ue '0x4' [audio format for output stream 0:0 @ 03372780] 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 @ 0337df20] query_formats: 4 queried, 6 merged, 3 already done, 0 delayed 0.500000 0.500000 [auto-inserted resampler 0 @ 03372b00] ch:2 chl:stereo fmt:fltp r:44100Hz -> ch: 1 chl:mono fmt:s16 r:44100Hz Output #0, mp4, to 'output.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2mp41 encoder : Lavf55.19.102 Stream #0:0(eng), 0, 1/44100: Audio: aac (libvo_aacenc) ([64][0][0][0] / 0x0 040), 44100 Hz, mono, s16, 32 kb/s (default) Metadata: handler_name : SoundHandler Stream mapping: Stream #0:0 -> #0:0 (aac -> libvo_aacenc) Press [q] to stop, [?] for help size= 183kB time=00:00:47.05 bitrate= 31.8kbits/s
cores\ffmpeg57158.exe -v 9 -loglevel 99 -y -i input.wav -c:a libvo_aacenc -ac 1 -b:a 32k -ar 44100 output.mp4 ffmpeg version N-57158-g51df616 Copyright (c) 2000-2013 the FFmpeg developers built on Oct 16 2013 00:36:40 with gcc 4.8.1 (GCC) configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-libfdk -aac --enable-libfaac --enable-libmp3lame --enable-libvo-aacenc --extra-ldflags= -static --extra-cflags='-march=nocona -mfpmath=sse' --optflags=-O2 libavutil 52. 46.101 / 52. 46.101 libavcodec 55. 36.100 / 55. 36.100 libavformat 55. 19.102 / 55. 19.102 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 '-y' ... matched as option 'y' (overwrite output files) with argu ment '1'. Reading option '-i' ... matched as input file with argument 'input.wav'. Reading option '-c:a' ... matched as option 'c' (codec name) with argument 'libv o_aacenc'. Reading option '-ac' ... matched as option 'ac' (set number of audio channels) w ith 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 y (overwrite output files) with argument 1. Successfully parsed a group of options. Parsing a group of options: input file input.wav. Successfully parsed a group of options. Opening an input file: input.wav. [wav @ 03355f40] Format wav probed with size=2048 and score=99 [wav @ 03355f40] File position before avformat_find_stream_info() is 44 [wav @ 03355f40] parser not found for codec pcm_s16le, packets or times may be i nvalid. [wav @ 03355f40] probing stream 0 pp:4 [wav @ 03355f40] probing stream 0 pp:3 [wav @ 03355f40] probing stream 0 pp:2 [wav @ 03355f40] probing stream 0 pp:1 [wav @ 03355f40] probed stream 0 [wav @ 03355f40] parser not found for codec pcm_s16le, packets or times may be i nvalid. [wav @ 03355f40] max_analyze_duration 5000000 reached at 5015510 microseconds [wav @ 03355f40] File position after avformat_find_stream_info() is 897068 Guessed Channel Layout for Input Stream #0.0 : stereo Input #0, wav, from 'input.wav': Duration: 00:05:00.84, bitrate: 1411 kb/s Stream #0:0, 218, 1/44100: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 H z, stereo, s16, 1411 kb/s Successfully opened the file. Parsing a group of options: output file output.mp4. Applying option c:a (codec name) with argument libvo_aacenc. 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 8 logical cores [graph 0 input from stream 0:0 @ 038b9de0] Setting 'time_base' to value '1/44100 ' [graph 0 input from stream 0:0 @ 038b9de0] Setting 'sample_rate' to value '44100 ' [graph 0 input from stream 0:0 @ 038b9de0] Setting 'sample_fmt' to value 's16' [graph 0 input from stream 0:0 @ 038b9de0] Setting 'channel_layout' to value '0x 3' [graph 0 input from stream 0:0 @ 038b9de0] tb:1/44100 samplefmt:s16 samplerate:4 4100 chlayout:0x3 [audio format for output stream 0:0 @ 03442a20] Setting 'sample_fmts' to value ' s16' [audio format for output stream 0:0 @ 03442a20] Setting 'sample_rates' to value '44100' [audio format for output stream 0:0 @ 03442a20] Setting 'channel_layouts' to val ue '0x4' [audio format for output stream 0:0 @ 03442a20] 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 @ 0335da40] query_formats: 4 queried, 7 merged, 3 already done, 0 delayed 0.500000 0.500000 [auto-inserted resampler 0 @ 03442f00] ch:2 chl:stereo fmt:s16 r:44100Hz -> ch:1 chl:mono fmt:s16 r:44100Hz Output #0, mp4, to 'output.mp4': Metadata: encoder : Lavf55.19.102 Stream #0:0, 0, 1/44100: Audio: aac (libvo_aacenc) ([64][0][0][0] / 0x0040), 44100 Hz, mono, s16, 32 kb/s Stream mapping: Stream #0:0 -> #0:0 (pcm_s16le -> libvo_aacenc) Press [q] to stop, [?] for help size= 195kB time=00:00:50.23 bitrate= 31.8kbits/s
cores\ffmpeg57158.exe -v 9 -loglevel 99 -y -i voaacenc_freeze_30-39.flac -c:a libvo_aacenc -ac 1 -b:a 32k -ar 44100 output.mp4 ffmpeg version N-57158-g51df616 Copyright (c) 2000-2013 the FFmpeg developers built on Oct 16 2013 00:36:40 with gcc 4.8.1 (GCC) configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-libfdk -aac --enable-libfaac --enable-libmp3lame --enable-libvo-aacenc --extra-ldflags= -static --extra-cflags='-march=nocona -mfpmath=sse' --optflags=-O2 libavutil 52. 46.101 / 52. 46.101 libavcodec 55. 36.100 / 55. 36.100 libavformat 55. 19.102 / 55. 19.102 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 '-y' ... matched as option 'y' (overwrite output files) with argu ment '1'. Reading option '-i' ... matched as input file with argument 'voaacenc_freeze_30- 39.flac'. Reading option '-c:a' ... matched as option 'c' (codec name) with argument 'libv o_aacenc'. Reading option '-ac' ... matched as option 'ac' (set number of audio channels) w ith 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 y (overwrite output files) with argument 1. Successfully parsed a group of options. Parsing a group of options: input file voaacenc_freeze_30-39.flac. Successfully parsed a group of options. Opening an input file: voaacenc_freeze_30-39.flac. [flac @ 0033ef60] Format flac probed with size=2048 and score=50 [flac @ 0033ef60] File position before avformat_find_stream_info() is 8282 [flac @ 0033f940] sample/frame number mismatch in adjacent frames Last message repeated 126 times [flac @ 0033ef60] max_analyze_duration 5000000 reached at 5015510 microseconds [flac @ 0033ef60] File position after avformat_find_stream_info() is 364544 Input #0, flac, from 'voaacenc_freeze_30-39.flac': Duration: 00:00:09.00, bitrate: 504 kb/s Stream #0:0, 56, 1/44100: Audio: flac, 44100 Hz, stereo, s16 Successfully opened the file. Parsing a group of options: output file output.mp4. Applying option c:a (codec name) with argument libvo_aacenc. 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 8 logical cores [graph 0 input from stream 0:0 @ 03656a20] Setting 'time_base' to value '1/44100 ' [graph 0 input from stream 0:0 @ 03656a20] Setting 'sample_rate' to value '44100 ' [graph 0 input from stream 0:0 @ 03656a20] Setting 'sample_fmt' to value 's16' [graph 0 input from stream 0:0 @ 03656a20] Setting 'channel_layout' to value '0x 3' [graph 0 input from stream 0:0 @ 03656a20] tb:1/44100 samplefmt:s16 samplerate:4 4100 chlayout:0x3 [audio format for output stream 0:0 @ 035909c0] Setting 'sample_fmts' to value ' s16' [audio format for output stream 0:0 @ 035909c0] Setting 'sample_rates' to value '44100' [audio format for output stream 0:0 @ 035909c0] Setting 'channel_layouts' to val ue '0x4' [audio format for output stream 0:0 @ 035909c0] 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 @ 0359dde0] query_formats: 4 queried, 7 merged, 3 already done, 0 delayed 0.500000 0.500000 [auto-inserted resampler 0 @ 03591660] ch:2 chl:stereo fmt:s16 r:44100Hz -> ch:1 chl:mono fmt:s16 r:44100Hz Output #0, mp4, to 'output.mp4': Metadata: encoder : Lavf55.19.102 Stream #0:0, 0, 1/44100: Audio: aac (libvo_aacenc) ([64][0][0][0] / 0x0040), 44100 Hz, mono, s16, 32 kb/s Stream mapping: Stream #0:0 -> #0:0 (flac -> libvo_aacenc) Press [q] to stop, [?] for help [flac @ 0033f940] sample/frame number mismatch in adjacent frames Last message repeated 21 times
All of these 3 examples crash.
by , 11 years ago
Attachment: | voaacenc_freeze_30-39.flac added |
---|
This sample crashes the FFmpeg vo-aacenc 32k. Chie Ayado - To You, Track08 The River Of No Return, 30-39s EWSA-78
comment:10 by , 11 years ago
Replying to Kamedo2:
All of these 3 examples crash.
Please provide backtrace etc. as explained on http://ffmpeg.org/bugreports.html
I don't think anything can be done without it.
comment:11 by , 11 years ago
GNU gdb (GDB) 7.4 Copyright (C) 2012 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i686-pc-mingw32". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... Reading symbols from c:\Users\PCC\Documents\ABC-HR\ffmpeg57158_g.exe...done. <39.flac -c:a libvo_aacenc -ac 1 -b:a 32k -ar 44100 output.mp4 Starting program: c:\Users\PCC\Documents\ABC-HR\ffmpeg57158_g.exe -v 9 -loglevel 99 -y -i voaacenc_freeze_30-39.flac -c:a libvo_aacenc -ac 1 -b:a 32k -ar 44100 output.mp4 [New Thread 7344.0x1a18] ffmpeg version N-57158-g51df616 Copyright (c) 2000-2013 the FFmpeg developers built on Oct 16 2013 00:36:40 with gcc 4.8.1 (GCC) configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-libfdk -aac --enable-libfaac --enable-libmp3lame --enable-libvo-aacenc --extra-ldflags= -static --extra-cflags='-march=nocona -mfpmath=sse' --optflags=-O2 libavutil 52. 46.101 / 52. 46.101 libavcodec 55. 36.100 / 55. 36.100 libavformat 55. 19.102 / 55. 19.102 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 '-y' ... matched as option 'y' (overwrite output files) with argu ment '1'. Reading option '-i' ... matched as input file with argument 'voaacenc_freeze_30- 39.flac'. Reading option '-c:a' ... matched as option 'c' (codec name) with argument 'libv o_aacenc'. Reading option '-ac' ... matched as option 'ac' (set number of audio channels) w ith 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 y (overwrite output files) with argument 1. Successfully parsed a group of options. Parsing a group of options: input file voaacenc_freeze_30-39.flac. Successfully parsed a group of options. Opening an input file: voaacenc_freeze_30-39.flac. [flac @ 04ecf4c0] Format flac probed with size=2048 and score=50 [flac @ 04ecf4c0] File position before avformat_find_stream_info() is 8282 [flac @ 06c66720] sample/frame number mismatch in adjacent frames Last message repeated 126 times [flac @ 04ecf4c0] max_analyze_duration 5000000 reached at 5015510 microseconds [flac @ 04ecf4c0] File position after avformat_find_stream_info() is 364544 Input #0, flac, from 'voaacenc_freeze_30-39.flac': Duration: 00:00:09.00, bitrate: 504 kb/s Stream #0:0, 56, 1/44100: Audio: flac, 44100 Hz, stereo, s16 Successfully opened the file. Parsing a group of options: output file output.mp4. Applying option c:a (codec name) with argument libvo_aacenc. 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 8 logical cores [New Thread 7344.0x1ec8] [New Thread 7344.0x20e8] [New Thread 7344.0x2154] [New Thread 7344.0x1508] [New Thread 7344.0x2278] [New Thread 7344.0x758] [New Thread 7344.0x248c] [New Thread 7344.0x1df8] [New Thread 7344.0x12dc] [graph 0 input from stream 0:0 @ 06c86160] Setting 'time_base' to value '1/44100 ' [graph 0 input from stream 0:0 @ 06c86160] Setting 'sample_rate' to value '44100 ' [graph 0 input from stream 0:0 @ 06c86160] Setting 'sample_fmt' to value 's16' [graph 0 input from stream 0:0 @ 06c86160] Setting 'channel_layout' to value '0x 3' [graph 0 input from stream 0:0 @ 06c86160] tb:1/44100 samplefmt:s16 samplerate:4 4100 chlayout:0x3 [audio format for output stream 0:0 @ 06c86940] Setting 'sample_fmts' to value ' s16' [audio format for output stream 0:0 @ 06c86940] Setting 'sample_rates' to value '44100' [audio format for output stream 0:0 @ 06c86940] Setting 'channel_layouts' to val ue '0x4' [audio format for output stream 0:0 @ 06c86940] 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 @ 06cd2f80] query_formats: 4 queried, 7 merged, 3 already done, 0 delayed 0.500000 0.500000 [auto-inserted resampler 0 @ 06c876c0] ch:2 chl:stereo fmt:s16 r:44100Hz -> ch:1 chl:mono fmt:s16 r:44100Hz [New Thread 7344.0x1c6c] [New Thread 7344.0x12e8] [New Thread 7344.0x2244] [New Thread 7344.0xe90] [New Thread 7344.0x1da8] [New Thread 7344.0x43c] [New Thread 7344.0x1bfc] [New Thread 7344.0x12a0] [New Thread 7344.0x27cc] Output #0, mp4, to 'output.mp4': Metadata: encoder : Lavf55.19.102 Stream #0:0, 0, 1/44100: Audio: aac (libvo_aacenc) ([64][0][0][0] / 0x0040), 44100 Hz, mono, s16, 32 kb/s Stream mapping: Stream #0:0 -> #0:0 (flac -> libvo_aacenc) Press [q] to stop, [?] for help [flac @ 06c66720] sample/frame number mismatch in adjacent frames Last message repeated 21 times Program received signal SIGSEGV, Segmentation fault. 0x009fa2fe in voAACEnc_pow2_xy ()
comment:12 by , 11 years ago
voAACEnc_pow2_xy() is a function from libvo-aacenc, has someone tested if libvo-aacenc without ffmpeg shows this issue too?
Also a full backtrace with linenumbers and disassembly of the crashing place and register values could help to better understand this
And the inability of carl to reproduce this might be due to differing libvo-aacenc versions (but iam just guessing here)
With which libvo-aacenc version does this happen?
Iam on linux ATM and it doesnt happen here, neither with valgrind nor address sanitizer.
I tried to attach a sample, but I couldn't extract a segment that was less than 2.5MB. Despite instructing FFMPEG to use copy only a 60 second portion of the file, it kept extracting a segment of 5 minutes or more. input.mp4 is an extracted audio only portion that seems to still trigger the crash, and original.mp4 is the file as I received it before I attempted to transcode it.
http://clt.odu.edu/dropbox/ffmpeg/input.mp4 (4.6MB / audio only)
http://clt.odu.edu/dropbox/ffmpeg/original.mp4 (152MB / video+audio)
Can these links be removed from this ticket when it is closed?