[FFmpeg-trac] #8200(undetermined:closed): ffmpeg crash with -vcodec libx264

FFmpeg trac at avcodec.org
Thu Sep 26 00:43:29 EEST 2019


#8200: ffmpeg crash with -vcodec libx264
-------------------------------------+-------------------------------------
             Reporter:  doleva       |                    Owner:
                 Type:  defect       |                   Status:  closed
             Priority:  normal       |                Component:
                                     |  undetermined
              Version:  git-master   |               Resolution:
             Keywords:  libx264      |  worksforme
  crash                              |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Changes (by cehoyos):

 * status:  new => closed
 * resolution:   => worksforme


Comment:

 I cannot reproduce the issue with an even older compiler, analysis showed
 that if there is an issue, it is most likely in x264 and cannot be fixed
 in FFmpeg.
 {{{
 $ ffmpeg -y -t 5 -f lavfi -i testsrc2=s=hd720 -vcodec libx264 out.mp4
 ffmpeg version N-95072-gced3b8c61e Copyright (c) 2000-2019 the FFmpeg
 developers
   built with gcc 4.4.6 (GCC)
   configuration: --cc=/mnt/sdb6/cehoyos/gcc/gcc-4.4.6/bin/gcc --enable-gpl
 --enable-libx264 --extra-cflags=-I../x264 --extra-ldflags=-L../x264
 --disable-v4l2-m2m --disable-libxcb --disable-alsa --disable-zlib
 --disable-bzlib --disable-vdpau --disable-lzma --disable-vaapi --disable-
 sdl2
   libavutil      56. 35.100 / 56. 35.100
   libavcodec     58. 59.100 / 58. 59.100
   libavformat    58. 33.100 / 58. 33.100
   libavdevice    58.  9.100 / 58.  9.100
   libavfilter     7. 59.100 /  7. 59.100
   libswscale      5.  6.100 /  5.  6.100
   libswresample   3.  6.100 /  3.  6.100
   libpostproc    55.  6.100 / 55.  6.100
 Input #0, lavfi, from 'testsrc2=s=hd720':
   Duration: N/A, start: 0.000000, bitrate: N/A
     Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 1280x720
 [SAR 1:1 DAR 16:9], 25 tbr, 25 tbn, 25 tbc
 Stream mapping:
   Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
 Press [q] to stop, [?] for help
 [libx264 @ 0x2bb0ec0] using SAR=1/1
 [libx264 @ 0x2bb0ec0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
 AVX FMA3 BMI2 AVX2
 [libx264 @ 0x2bb0ec0] profile High, level 3.1, 4:2:0, 8-bit
 [libx264 @ 0x2bb0ec0] 264 - core 158 r2984 3759fcb - H.264/MPEG-4 AVC
 codec - Copyleft 2003-2019 - http://www.videolan.org/x264.html - options:
 cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 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=22
 lookahead_threads=3 sliced_threads=0 nr=0 decimate=1 interlaced=0
 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1
 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25
 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0
 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
 Output #0, mp4, to 'out.mp4':
   Metadata:
     encoder         : Lavf58.33.100
     Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p,
 1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 25 fps, 12800 tbn, 25 tbc
     Metadata:
       encoder         : Lavc58.59.100 libx264
     Side data:
       cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
 frame=  125 fps=0.0 q=-1.0 Lsize=    1702kB time=00:00:04.88
 bitrate=2857.2kbits/s speed=7.05x
 video:1700kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
 muxing overhead: 0.135187%
 [libx264 @ 0x2bb0ec0] frame I:1     Avg QP:14.53  size: 24526
 [libx264 @ 0x2bb0ec0] frame P:60    Avg QP:25.57  size: 16360
 [libx264 @ 0x2bb0ec0] frame B:64    Avg QP:30.06  size: 11465
 [libx264 @ 0x2bb0ec0] consecutive B-frames:  7.2% 72.0%  4.8% 16.0%
 [libx264 @ 0x2bb0ec0] mb I  I16..4: 56.5% 34.6%  8.9%
 [libx264 @ 0x2bb0ec0] mb P  I16..4:  0.9%  4.2%  1.1%  P16..4:  6.6%  4.1%
 2.5%  0.0%  0.0%    skip:80.6%
 [libx264 @ 0x2bb0ec0] mb B  I16..4:  0.2%  0.8%  0.6%  B16..8:  9.4%  2.9%
 0.7%  direct: 1.1%  skip:84.3%  L0:47.8% L1:42.0% BI:10.3%
 [libx264 @ 0x2bb0ec0] 8x8 transform intra:58.6% inter:26.2%
 [libx264 @ 0x2bb0ec0] coded y,uvDC,uvAC intra: 24.2% 32.7% 32.2% inter:
 3.6% 6.8% 6.1%
 [libx264 @ 0x2bb0ec0] i16 v,h,dc,p: 80% 16%  3%  0%
 [libx264 @ 0x2bb0ec0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu:  7% 12% 75%  2%  1%
 1%  1%  1%  1%
 [libx264 @ 0x2bb0ec0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 21% 24% 34%  5%  3%
 3%  3%  4%  4%
 [libx264 @ 0x2bb0ec0] i8c dc,h,v,p: 75% 11% 11%  3%
 [libx264 @ 0x2bb0ec0] Weighted P-Frames: Y:0.0% UV:0.0%
 [libx264 @ 0x2bb0ec0] ref P L0: 48.7%  7.3% 29.0% 15.0%
 [libx264 @ 0x2bb0ec0] ref B L0: 72.4% 26.0%  1.6%
 [libx264 @ 0x2bb0ec0] ref B L1: 98.1%  1.9%
 [libx264 @ 0x2bb0ec0] kb/s:2783.77
 }}}
 Note that the fact that the crash is not always reproducible may indicate
 a hardware issue.

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


More information about the FFmpeg-trac mailing list