[FFmpeg-trac] #2846(undetermined:new): Two-pass libx264 -preset veryslow crashes on some MPEG-type inputs

FFmpeg trac at avcodec.org
Wed Aug 21 08:40:55 CEST 2013


#2846: Two-pass libx264 -preset veryslow crashes on some MPEG-type inputs
-------------------------------------+-------------------------------------
             Reporter:               |                    Owner:
  francois.visagie@…                 |                   Status:  new
                 Type:  defect       |                Component:
             Priority:  normal       |  undetermined
              Version:  unspecified  |               Resolution:
             Keywords:  crash        |               Blocked By:
  libx264                            |  Reproduced by developer:  0
             Blocking:               |
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------

Comment (by francois.visagie@…):

 Here you go:

 C:\Users\fvisagie\Videos\Home Videos\Testing\Bug information>ffmpeg -y -i
 ticket_2846_crash_libx264.vob -filter:a aformat=channel_layouts=stereo
 -c:v libx264 -p
 reset veryslow -fastfirstpass 1 -f rawvideo -b:v 1000000 -pass 1 NUL
 ffmpeg version N-55159-gf118b41 Copyright (c) 2000-2013 the FFmpeg
 developers
   built on Aug  1 2013 18:01:57 with gcc 4.7.3 (GCC)
   configuration: --enable-gpl --enable-version3 --disable-w32threads
 --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r
 --enable-gnutls --enab
 le-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-
 libfreetype --enable-libgsm --enable-libilbc --enable-libmodplug --enable-
 libmp3lame --ena
 ble-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
 --enable-libopus --enable-librtmp --enable-libschroedinger --enable-
 libsoxr --enable-libsp
 eex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-
 libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264
 --enable-libxavs --
 enable-libxvid --enable-zlib
   libavutil      52. 40.100 / 52. 40.100
   libavcodec     55. 19.100 / 55. 19.100
   libavformat    55. 12.102 / 55. 12.102
   libavdevice    55.  3.100 / 55.  3.100
   libavfilter     3. 82.100 /  3. 82.100
   libswscale      2.  4.100 /  2.  4.100
   libswresample   0. 17.103 /  0. 17.103
   libpostproc    52.  3.100 / 52.  3.100
 [mpeg2video @ 0366fc80] Invalid frame dimensions 0x0.
 Input #0, mpeg, from 'ticket_2846_crash_libx264.vob':
   Duration: 00:02:11.08, start: 4199.857333, bitrate: 7838 kb/s
     Stream #0:0[0x8a]: Audio: dts (DTS), 48000 Hz, 5.1(side), fltp, 1536
 kb/s
     Stream #0:1[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
     Stream #0:2[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR
 32:27 DAR 16:9], max. 6000 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
     Stream #0:3[0x1bf]: Data: dvd_nav_packet
 [libx264 @ 03715020] using SAR=32/27
 [libx264 @ 03715020] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
 AVX
 [libx264 @ 03715020] profile Main, level 3.0
 Output #0, rawvideo, to 'NUL':
   Metadata:
     encoder         : Lavf55.12.102
     Stream #0:0: Video: h264 (libx264), yuv420p, 720x480 [SAR 32:27 DAR
 16:9], q=-1--1, pass 1, 1000 kb/s, 90k tbn, 29.97 tbc
 Stream mapping:
   Stream #0:2 -> #0:0 (mpeg2video -> libx264)
 Press [q] to stop, [?] for help
 [mpeg2video @ 0366fc80] warning: first frame is no keyframe
     Last message repeated 1 times
 frame= 3924 fps= 71 q=-1.0 Lsize=   15630kB time=00:02:10.86 bitrate=
 978.4kbits/s dup=0 drop=1
 video:15630kB audio:0kB subtitle:0 global headers:0kB muxing overhead
 0.000000%
 [libx264 @ 03715020] frame I:38    Avg QP:27.40  size: 13392
 [libx264 @ 03715020] frame P:1052  Avg QP:30.54  size:  6790
 [libx264 @ 03715020] frame B:2834  Avg QP:32.24  size:  2947
 [libx264 @ 03715020] consecutive B-frames:  5.5%  5.9% 19.3% 14.2%  5.7%
 49.4%  0.0%  0.0%  0.0%
 [libx264 @ 03715020] mb I  I16..4: 45.0%  0.0% 55.0%
 [libx264 @ 03715020] mb P  I16..4: 51.6%  0.0%  0.0%  P16..4: 39.5%  0.0%
 0.0%  0.0%  0.0%    skip: 8.9%
 [libx264 @ 03715020] mb B  I16..4:  8.3%  0.0%  0.0%  B16..8: 33.3%  0.0%
 0.0%  direct:13.4%  skip:45.0%  L0:40.6% L1:47.7% BI:11.7%
 [libx264 @ 03715020] final ratefactor: 26.54
 [libx264 @ 03715020] direct mvs  spatial:99.9% temporal:0.1%
 [libx264 @ 03715020] coded y,uvDC,uvAC intra: 24.3% 37.6% 2.5% inter:
 14.3% 19.7% 0.2%
 [libx264 @ 03715020] i16 v,h,dc,p: 32% 35% 18% 15%
 [libx264 @ 03715020] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 31% 13%  6%  5%
 5%  6%  5%  5%
 [libx264 @ 03715020] i8c dc,h,v,p: 58% 21% 15%  6%
 [libx264 @ 03715020] Weighted P-Frames: Y:12.0% UV:9.7%
 [libx264 @ 03715020] kb/s:977.90

 C:\Users\fvisagie\Videos\Home Videos\Testing\Bug information>ffmpeg -y -i
 ticket_2846_crash_libx264.vob -filter:a aformat=channel_layouts=stereo
 -c:v libx264 -p
 reset veryslow -b:v 1000000 -pass 2 zzz.mp4
 ffmpeg version N-55159-gf118b41 Copyright (c) 2000-2013 the FFmpeg
 developers
   built on Aug  1 2013 18:01:57 with gcc 4.7.3 (GCC)
   configuration: --enable-gpl --enable-version3 --disable-w32threads
 --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r
 --enable-gnutls --enab
 le-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-
 libfreetype --enable-libgsm --enable-libilbc --enable-libmodplug --enable-
 libmp3lame --ena
 ble-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
 --enable-libopus --enable-librtmp --enable-libschroedinger --enable-
 libsoxr --enable-libsp
 eex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-
 libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264
 --enable-libxavs --
 enable-libxvid --enable-zlib
   libavutil      52. 40.100 / 52. 40.100
   libavcodec     55. 19.100 / 55. 19.100
   libavformat    55. 12.102 / 55. 12.102
   libavdevice    55.  3.100 / 55.  3.100
   libavfilter     3. 82.100 /  3. 82.100
   libswscale      2.  4.100 /  2.  4.100
   libswresample   0. 17.103 /  0. 17.103
   libpostproc    52.  3.100 / 52.  3.100
 [mpeg2video @ 039f6f60] Invalid frame dimensions 0x0.
 Input #0, mpeg, from 'ticket_2846_crash_libx264.vob':
   Duration: 00:02:11.08, start: 4199.857333, bitrate: 7838 kb/s
     Stream #0:0[0x8a]: Audio: dts (DTS), 48000 Hz, 5.1(side), fltp, 1536
 kb/s
     Stream #0:1[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
     Stream #0:2[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR
 32:27 DAR 16:9], max. 6000 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
     Stream #0:3[0x1bf]: Data: dvd_nav_packet
 [libx264 @ 0428f020] using SAR=32/27
 [libx264 @ 0428f020] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
 AVX
 [libx264 @ 0428f020] profile High, level 4.0
 [libx264 @ 0428f020] 264 - core 135 r2345 f0c1c53 - H.264/MPEG-4 AVC codec
 - Copyleft 2003-2013 - http://www.videolan.org/x264.html - options:
 cabac=1 ref=16 de
 block=1:0:0 analyse=0x3:0x133 me=umh subme=10 psy=1 psy_rd=1.00:0.00
 mixed_ref=1 me_range=24 chroma_me=1 trellis=2 8x8dct=1 cqm=0
 deadzone=21,11 fast_pskip=1 ch
 roma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0
 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=8
 b_pyramid=2 b_adapt=
 2 b_bias=0 direct=3 weightb=1 open_gop=0 weightp=2 keyint=250
 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=60 rc=2pass
 mbtree=1 bitrate=1000 ratetol=1
 .0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 cplxblur=20.0 qblur=0.5
 ip_ratio=1.40 aq=1:1.00
 Output #0, mp4, to 'zzz.mp4':
   Metadata:
     encoder         : Lavf55.12.102
     Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p,
 720x480 [SAR 32:27 DAR 16:9], q=-1--1, pass 2, 1000 kb/s, 30k tbn, 29.97
 tbc
     Stream #0:1: Audio: aac (libvo_aacenc) ([64][0][0][0] / 0x0040), 48000
 Hz, stereo, s16, 128 kb/s
 Stream mapping:
   Stream #0:2 -> #0:0 (mpeg2video -> libx264)
   Stream #0:0 -> #0:1 (dca -> libvo_aacenc)
 Press [q] to stop, [?] for help
 [mpeg2video @ 039f6f60] warning: first frame is no keyframe
     Last message repeated 1 times
 frame= 3923 fps=8.4 q=28.0 size=   17725kB time=00:02:10.82
 bitrate=1109.9kbits/s dup=4 drop=0

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


More information about the FFmpeg-trac mailing list