[FFmpeg-trac] #1458(undetermined:new): FFMPEG Crashing on converting AC3 to AAC
FFmpeg
trac at avcodec.org
Sun Jun 17 10:27:05 CEST 2012
#1458: FFMPEG Crashing on converting AC3 to AAC
-------------------------------------+-------------------------------------
Reporter: ramitbhalla | Type: defect
Status: new | Priority: important
Component: | Version:
undetermined | unspecified
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Summary of the bug: FFMPEG Crashes when converting AC3 to AAC with DRC
enabled. This is with the newer builds.
The last working build is N-40640-g5edd4fc, no issues.
The source file is too big to attached (this happens at about the 43
second mark).
http://www.mediafire.com/?k2t3z4f5udkla8a
How to reproduce:
COMMAND:
{{{
ffmpeg -async 1 -threads 0 -drc_scale 0.8 -y -i "RemuxSup Fail H264.ts"
-ss 3 -vf y
adif=0:-1,hqdn3d,crop=1920:1072:0:4,scale=720:400 -vcodec libx264 -b
2000000 -flags +loop -cmp +chroma -deblock -1:-1 -b
t 256k -refs 8 -bf 3 -b_strategy 2 -coder 1 -me_method hex -me_range 16
-subq 8 -partitions +parti4x4+parti8x8+partp8x8+
partb8x8 -weightb 1 -mixed-refs 1 -8x8dct 1 -g 25 -keyint_min 20 -level 41
-trellis 1 -sc_threshold 40 -i_qfactor 0.71 -
acodec libvo_aacenc -ab 192k -vol 1143 -ac 2 "RemuxSup Fail H264.mp4"
}}}
OUTPUT:
{{{
ffmpeg version N-41578-ga5c1a0c Copyright (c) 2000-2012 the FFmpeg
developers
built on Jun 13 2012 22:34:53 with gcc 4.6.3
configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-runtime-cpudetect --enable-avisynth --enab
le-bzlib --enable-frei0r --enable-libass --enable-libcelt --enable-
libopencore-amrnb --enable-libopencore-amrwb --enable
-libfreetype --enable-libgsm --enable-libmp3lame --enable-libnut --enable-
libopenjpeg --enable-librtmp --enable-libschro
edinger --enable-libspeex --enable-libtheora --enable-libutvideo --enable-
libvo-aacenc --enable-libvo-amrwbenc --enable-
libvorbis --enable-libvpx --ena libavutil 51. 58.100 / 51. 58.100
libavcodec 54. 25.100 / 54. 25.100
libavformat 54. 6.101 / 54. 6.101
libavdevice 54. 0.100 / 54. 0.100
libavfilter 2. 79.100 / 2. 79.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 15.100 / 0. 15.100
libpostproc 52. 0.100 / 52. 0.100
Input #0, mpegts, from 'RemuxSup Fail H264.ts':
Duration: 00:01:37.00, start: 1.400000, bitrate: 17209 kb/s
Program 1
Metadata:
service_name : Canal+ Comedia HD
service_provider: Canal+ Comedia HD
Stream #0:0[0x100]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002),
yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 104857
kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
Stream #0:1[0x101](dos): Audio: ac3 ([129][0][0][0] / 0x0081), 48000
Hz, stereo, s16, 192 kb/s
Please use -b:a or -b:v, -b is ambiguous
[Parsed_yadif_0 @ 031b80e0] mode:0 parity:-1 auto_enable:0
[Parsed_hqdn3d_1 @ 031b8200] ls:4.000000 cs:3.000000 lt:6.000000
ct:4.500000
[buffer @ 02d5f8a0] w:1920 h:1080 pixfmt:yuv420p tb:1/90000 fr:25/1
sar:1/1 sws_param:flags=2
[ffmpeg_buffersink @ 02d5fa20] No opaque field provided
[Parsed_crop_2 @ 02ca39e0] w:1920 h:1080 sar:1/1 -> w:1920 h:1072 sar:1/1
[Parsed_scale_3 @ 02ca0940] w:1920 h:1072 fmt:yuv420p sar:1/1 -> w:720
h:400 fmt:yuv420p sar:200/201 flags:0x4
-async is forwarded to lavfi similarly to -af
aresample=min_comp=0.001:min_hard_comp=0.100000.
-vol is forwarded to lavfi similarly to -af volume=4.464844.
[volume @ 02c85f60] volume=4.464844
[aresample @ 02c85e40] chl:stereo fmt:s16 r:48000Hz -> chl:stereo fmt:s16
r:48000Hz
[libx264 @ 02ca3c00] using SAR=200/201
[libx264 @ 02ca3c00] using cpu capabilities: MMX2 SSE2Fast SSSE3
FastShuffle SSE4.2
[libx264 @ 02ca3c00] profile High, level 4.1
[libx264 @ 02ca3c00] 264 - core 125 r2200 999b753 - H.264/MPEG-4 AVC codec
- Copyleft 2003-2012 - http://www.videolan.or
g/x264.html - options: cabac=1 ref=8 deblock=1:-1:-1 analyse=0x3:0x113
me=hex subme=8 psy=1 psy_rd=1.00:0.00 mixed_ref=1
me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11
fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_th
reads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0
constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=
2 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 kOutput #0, mp4, to
'RemuxSup Fail H264.mp4':
Metadata:
encoder : Lavf54.6.101
Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 720x400
[SAR 200:201 DAR 120:67], q=-1--1, 2000 kb/s, 25
tbn, 25 tbc
Stream #0:1(dos): Audio: aac ([64][0][0][0] / 0x0040), 48000 Hz,
stereo, s16, 192 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (mpeg2video -> libx264)
Stream #0:1 -> #0:1 (ac3 -> libvo_aacenc)
Press [q] to stop, [?] for help
Input stream #0:1 frame changed from rate:48000 fmt:s16 ch:2 chl:stereo to
rate:48000 fmt:s16 ch:6 chl:5.1(side)
-async is forwarded to lavfi similarly to -af
aresample=min_comp=0.001:min_hard_comp=0.100000.
-vol is forwarded to lavfi similarly to -af volume=4.464844.
[volume @ 02c85f60] volume=4.464844
[aresample @ 02c85e40] chl:5.1(side) fmt:s16 r:48000Hz -> chl:stereo
fmt:s16 r:48000Hz
D:\Test Videos\MCEBuddyArchive\tools>ffmpeg -async 1 -threads 0 -drc_scale
0.8 -y -i "RemuxSup Fail H264.ts" -ss 3 -vf y
adif=0:-1,hqdn3d,crop=1920:1072:0:4,scale=720:400 -vcodec libx264 -b
2000000 -flags +loop -cmp +chroma -deblock -1:-1 -b
t 256k -refs 8 -bf 3 -b_strategy 2 -coder 1 -me_method hex -me_range 16
-subq 8 -partitions +parti4x4+parti8x8+partp8x8+
partb8x8 -weightb 1 -mixed-refs 1 -8x8dct 1 -g 25 -keyint_min 20 -level 41
-trellis 1 -sc_threshold 40 -i_qfactor 0.71 -
acodec libvo_aacenc -ab 192k -vol 1143 -ac 2 "RemuxSup Fail H264.mp4"
ffmpeg version N-41578-ga5c1a0c Copyright (c) 2000-2012 the FFmpeg
developers
built on Jun 13 2012 22:34:53 with gcc 4.6.3
configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-runtime-cpudetect --enable-avisynth --enab
le-bzlib --enable-frei0r --enable-libass --enable-libcelt --enable-
libopencore-amrnb --enable-libopencore-amrwb --enable
-libfreetype --enable-libgsm --enable-libmp3lame --enable-libnut --enable-
libopenjpeg --enable-librtmp --enable-libschro
edinger --enable-libspeex --enable-libtheora --enable-libutvideo --enable-
libvo-aacenc --enable-libvo-amrwbenc --enable-
libvorbis --enable-libvpx --ena libavutil 51. 58.100 / 51. 58.100
libavcodec 54. 25.100 / 54. 25.100
libavformat 54. 6.101 / 54. 6.101
libavdevice 54. 0.100 / 54. 0.100
libavfilter 2. 79.100 / 2. 79.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 15.100 / 0. 15.100
libpostproc 52. 0.100 / 52. 0.100
Input #0, mpegts, from 'RemuxSup Fail H264.ts':
Duration: 00:01:00.76, start: 1.400000, bitrate: 13806 kb/s
Program 1
Metadata:
service_name : Canal+ Comedia HD
service_provider: Canal+ Comedia HD
Stream #0:0[0x100]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002),
yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 104857
kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
Stream #0:1[0x101](dos): Audio: ac3 ([129][0][0][0] / 0x0081), 48000
Hz, stereo, s16, 192 kb/s
Please use -b:a or -b:v, -b is ambiguous
[Parsed_yadif_0 @ 03236080] mode:0 parity:-1 auto_enable:0
[Parsed_hqdn3d_1 @ 03236020] ls:4.000000 cs:3.000000 lt:6.000000
ct:4.500000
[buffer @ 032364a0] w:1920 h:1080 pixfmt:yuv420p tb:1/90000 fr:25/1
sar:1/1 sws_param:flags=2
[ffmpeg_buffersink @ 03236560] No opaque field provided
[Parsed_crop_2 @ 03236260] w:1920 h:1080 sar:1/1 -> w:1920 h:1072 sar:1/1
[Parsed_scale_3 @ 03236380] w:1920 h:1072 fmt:yuv420p sar:1/1 -> w:720
h:400 fmt:yuv420p sar:200/201 flags:0x4
-async is forwarded to lavfi similarly to -af
aresample=min_comp=0.001:min_hard_comp=0.100000.
-vol is forwarded to lavfi similarly to -af volume=4.464844.
[volume @ 03236a40] volume=4.464844
[aresample @ 03236920] chl:stereo fmt:s16 r:48000Hz -> chl:stereo fmt:s16
r:48000Hz
[libx264 @ 03269bc0] using SAR=200/201
[libx264 @ 03269bc0] using cpu capabilities: MMX2 SSE2Fast SSSE3
FastShuffle SSE4.2
[libx264 @ 03269bc0] profile High, level 4.1
[libx264 @ 03269bc0] 264 - core 125 r2200 999b753 - H.264/MPEG-4 AVC codec
- Copyleft 2003-2012 - http://www.videolan.or
g/x264.html - options: cabac=1 ref=8 deblock=1:-1:-1 analyse=0x3:0x113
me=hex subme=8 psy=1 psy_rd=1.00:0.00 mixed_ref=1
me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11
fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_th
reads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0
constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=
2 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 kOutput #0, mp4, to
'RemuxSup Fail H264.mp4':
Metadata:
encoder : Lavf54.6.101
Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 720x400
[SAR 200:201 DAR 120:67], q=-1--1, 2000 kb/s, 25
tbn, 25 tbc
Stream #0:1(dos): Audio: aac ([64][0][0][0] / 0x0040), 48000 Hz,
stereo, s16, 192 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (mpeg2video -> libx264)
Stream #0:1 -> #0:1 (ac3 -> libvo_aacenc)
Press [q] to stop, [?] for help
Input stream #0:1 frame changed from rate:48000 fmt:s16 ch:2 chl:stereo to
rate:48000 fmt:s16 ch:6 chl:5.1(side)
-async is forwarded to lavfi similarly to -af
aresample=min_comp=0.001:min_hard_comp=0.100000.
-vol is forwarded to lavfi similarly to -af volume=4.464844.
[volume @ 03236a40] volume=4.464844
[aresample @ 03236920] chl:5.1(side) fmt:s16 r:48000Hz -> chl:stereo
fmt:s16 r:48000Hz
}}}
The bare minimum command I've been able to use to replicate this issues
(both async and threads needs to be used with drc for ffmpeg to crash).
{{{
ffmpeg -async 1 -threads 0 -drc_scale 0.8 -y -i "RemuxSup Fail H264.ts"
-vn -acodec libvo_aacenc -ab 192k "RemuxSup Fail H264.mp4"
}}}
OUTPUT:
{{{
ffmpeg version N-41578-ga5c1a0c Copyright (c) 2000-2012 the FFmpeg
developers
built on Jun 13 2012 22:34:53 with gcc 4.6.3
configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-runtime-cpudetect --enable-avisynth --enab
le-bzlib --enable-frei0r --enable-libass --enable-libcelt --enable-
libopencore-amrnb --enable-libopencore-amrwb --enable
-libfreetype --enable-libgsm --enable-libmp3lame --enable-libnut --enable-
libopenjpeg --enable-librtmp --enable-libschro
edinger --enable-libspeex --enable-libtheora --enable-libutvideo --enable-
libvo-aacenc --enable-libvo-amrwbenc --enable-
libvorbis --enable-libvpx --ena libavutil 51. 58.100 / 51. 58.100
libavcodec 54. 25.100 / 54. 25.100
libavformat 54. 6.101 / 54. 6.101
libavdevice 54. 0.100 / 54. 0.100
libavfilter 2. 79.100 / 2. 79.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 15.100 / 0. 15.100
libpostproc 52. 0.100 / 52. 0.100
Input #0, mpegts, from 'RemuxSup Fail H264.ts':
Duration: 00:01:00.76, start: 1.400000, bitrate: 13806 kb/s
Program 1
Metadata:
service_name : Canal+ Comedia HD
service_provider: Canal+ Comedia HD
Stream #0:0[0x100]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002),
yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 104857
kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
Stream #0:1[0x101](dos): Audio: ac3 ([129][0][0][0] / 0x0081), 48000
Hz, stereo, s16, 192 kb/s
-async is forwarded to lavfi similarly to -af
aresample=min_comp=0.001:min_hard_comp=0.100000.
[aresample @ 020caea0] chl:stereo fmt:s16 r:48000Hz -> chl:stereo fmt:s16
r:48000Hz
Output #0, mp4, to 'RemuxSup Fail H264.mp4':
Metadata:
encoder : Lavf54.6.101
Stream #0:0(dos): Audio: aac ([64][0][0][0] / 0x0040), 48000 Hz,
stereo, s16, 192 kb/s
Stream mapping:
Stream #0:1 -> #0:0 (ac3 -> libvo_aacenc)
Press [q] to stop, [?] for help
Input stream #0:1 frame changed from rate:48000 fmt:s16 ch:2 chl:stereo to
rate:48000 fmt:s16 ch:6 chl:5.1(side)
-async is forwarded to lavfi similarly to -af
aresample=min_comp=0.001:min_hard_comp=0.100000.
[aresample @ 01f30240] chl:5.1(side) fmt:s16 r:48000Hz -> chl:stereo
fmt:s16 r:48000Hz
}}}
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1458>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list