[FFmpeg-trac] #3307(avcodec:reopened): -level AVoption does not set refs with libx264

FFmpeg trac at avcodec.org
Mon Jan 11 02:50:35 CET 2016


#3307: -level AVoption does not set refs with libx264
------------------------------------+------------------------------------
             Reporter:  llogan      |                    Owner:
                 Type:  defect      |                   Status:  reopened
             Priority:  normal      |                Component:  avcodec
              Version:  git-master  |               Resolution:
             Keywords:  libx264     |               Blocked By:
             Blocking:              |  Reproduced by developer:  1
Analyzed by developer:  0           |
------------------------------------+------------------------------------
Changes (by llogan):

 * version:  2.7.3 => git-master
 * component:  undetermined => avcodec


Comment:

 `-level 4.1`:
 {{{
 ./ffmpeg -f lavfi -i testsrc=s=hd1080:d=1 -c:v libx264 -preset veryslow
 -level 4.1 level4.1.mp4
 ffmpeg version N-77792-g5908638 Copyright (c) 2000-2016 the FFmpeg
 developers
   built with gcc 5.3.0 (GCC)
   configuration: --enable-gpl --enable-libx264 --disable-doc
   libavutil      55. 13.100 / 55. 13.100
   libavcodec     57. 22.100 / 57. 22.100
   libavformat    57. 21.101 / 57. 21.101
   libavdevice    57.  0.100 / 57.  0.100
   libavfilter     6. 23.100 /  6. 23.100
   libswscale      4.  0.100 /  4.  0.100
   libswresample   2.  0.101 /  2.  0.101
   libpostproc    54.  0.100 / 54.  0.100
 Input #0, lavfi, from 'testsrc=s=hd1080:d=1':
   Duration: N/A, start: 0.000000, bitrate: N/A
     Stream #0:0: Video: rawvideo (RGB[24] / 0x18424752), rgb24, 1920x1080
 [SAR 1:1 DAR 16:9], 25 tbr, 25 tbn, 25 tbc
 No pixel format specified, yuv444p for H.264 encoding chosen.
 Use -pix_fmt yuv420p for compatibility with outdated media players.
 [libx264 @ 0x2b32500] using SAR=1/1
 [libx264 @ 0x2b32500] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
 [libx264 @ 0x2b32500] profile High 4:4:4 Predictive, level 4.1, 4:4:4
 8-bit
 [libx264 @ 0x2b32500] 264 - core 148 r2579 73ae2d1 - H.264/MPEG-4 AVC
 codec - Copyleft 2003-2015 - http://www.videolan.org/x264.html - options:
 cabac=1 ref=4 deblock=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 chroma_qp_offset=4 threads=12
 lookahead_threads=2 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=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 'level4.1.mp4':
   Metadata:
     encoder         : Lavf57.21.101
     Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv444p,
 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 25 fps, 12800 tbn, 25 tbc
     Metadata:
       encoder         : Lavc57.22.100 libx264
     Side data:
       unknown side data type 10 (24 bytes)
 Stream mapping:
   Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
 Press [q] to stop, [?] for help
 frame=   20 fps=0.0 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A
 speed=   frame=   25 fps= 12 q=-1.0 Lsize=      25kB time=00:00:00.92
 bitrate= 225.0kbits/s speed=0.441x
 video:24kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
 muxing overhead: 4.201071%
 [libx264 @ 0x2b32500] frame I:1     Avg QP:12.19  size: 10131
 [libx264 @ 0x2b32500] frame P:3     Avg QP:17.82  size:  1487
 [libx264 @ 0x2b32500] frame B:21    Avg QP:13.76  size:   454
 [libx264 @ 0x2b32500] consecutive B-frames:  4.0%  0.0%  0.0%  0.0%  0.0%
 24.0%  0.0%  0.0% 72.0%
 [libx264 @ 0x2b32500] mb I  I16..4: 59.8% 37.2%  2.9%
 [libx264 @ 0x2b32500] mb P  I16..4:  3.1%  1.0%  0.1%  P16..4:  2.5%  0.2%
 0.0%  0.0%  0.0%    skip:92.9%
 [libx264 @ 0x2b32500] mb B  I16..4:  0.1%  0.2%  0.0%  B16..8:  4.5%  0.1%
 0.0%  direct: 0.0%  skip:95.1%  L0:46.3% L1:45.3% BI: 8.4%
 [libx264 @ 0x2b32500] 8x8 transform intra:37.1% inter:59.1%
 [libx264 @ 0x2b32500] direct mvs  spatial:61.9% temporal:38.1%
 [libx264 @ 0x2b32500] coded y,u,v intra: 1.9% 1.6% 1.6% inter: 0.0% 0.0%
 0.0%
 [libx264 @ 0x2b32500] i16 v,h,dc,p: 90%  8%  1%  2%
 [libx264 @ 0x2b32500] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 51% 11% 38%  0%  0%
 0%  0%  0%  0%
 [libx264 @ 0x2b32500] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 32% 32% 28%  2%  1%
 2%  0%  2%  0%
 [libx264 @ 0x2b32500] Weighted P-Frames: Y:0.0% UV:0.0%
 [libx264 @ 0x2b32500] ref P L0: 68.4%  1.4% 21.4%  8.8%
 [libx264 @ 0x2b32500] ref B L0: 92.9%  7.0%  0.1%
 [libx264 @ 0x2b32500] ref B L1: 90.5%  9.5%
 [libx264 @ 0x2b32500] kb/s:193.10
 }}}

 `-level 41`:

 {{{
 ./ffmpeg -f lavfi -i testsrc=s=hd1080:d=1 -c:v libx264 -preset veryslow
 -level 41 level41.mp4
 ffmpeg version N-77792-g5908638 Copyright (c) 2000-2016 the FFmpeg
 developers
   built with gcc 5.3.0 (GCC)
   configuration: --enable-gpl --enable-libx264 --disable-doc
   libavutil      55. 13.100 / 55. 13.100
   libavcodec     57. 22.100 / 57. 22.100
   libavformat    57. 21.101 / 57. 21.101
   libavdevice    57.  0.100 / 57.  0.100
   libavfilter     6. 23.100 /  6. 23.100
   libswscale      4.  0.100 /  4.  0.100
   libswresample   2.  0.101 /  2.  0.101
   libpostproc    54.  0.100 / 54.  0.100
 Input #0, lavfi, from 'testsrc=s=hd1080:d=1':
   Duration: N/A, start: 0.000000, bitrate: N/A
     Stream #0:0: Video: rawvideo (RGB[24] / 0x18424752), rgb24, 1920x1080
 [SAR 1:1 DAR 16:9], 25 tbr, 25 tbn, 25 tbc
 No pixel format specified, yuv444p for H.264 encoding chosen.
 Use -pix_fmt yuv420p for compatibility with outdated media players.
 [libx264 @ 0x3bee500] using SAR=1/1
 [libx264 @ 0x3bee500] DPB size (16 frames, 130560 mbs) > level limit (4
 frames, 32768 mbs)
 [libx264 @ 0x3bee500] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
 [libx264 @ 0x3bee500] profile High 4:4:4 Predictive, level 4.1, 4:4:4
 8-bit
 [libx264 @ 0x3bee500] 264 - core 148 r2579 73ae2d1 - H.264/MPEG-4 AVC
 codec - Copyleft 2003-2015 - http://www.videolan.org/x264.html - options:
 cabac=1 ref=16 deblock=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 chroma_qp_offset=4 threads=12
 lookahead_threads=2 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=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 'level41.mp4':
   Metadata:
     encoder         : Lavf57.21.101
     Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv444p,
 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 25 fps, 12800 tbn, 25 tbc
     Metadata:
       encoder         : Lavc57.22.100 libx264
     Side data:
       unknown side data type 10 (24 bytes)
 Stream mapping:
   Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
 Press [q] to stop, [?] for help
 frame=   25 fps=9.4 q=-1.0 Lsize=      25kB time=00:00:00.92 bitrate=
 224.5kbits/s speed=0.347x
 video:24kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
 muxing overhead: 4.214946%
 [libx264 @ 0x3bee500] frame I:1     Avg QP:12.19  size: 10131
 [libx264 @ 0x3bee500] frame P:3     Avg QP:17.82  size:  1493
 [libx264 @ 0x3bee500] frame B:21    Avg QP:13.61  size:   451
 [libx264 @ 0x3bee500] consecutive B-frames:  4.0%  0.0%  0.0%  0.0%  0.0%
 24.0%  0.0%  0.0% 72.0%
 [libx264 @ 0x3bee500] mb I  I16..4: 59.8% 37.2%  2.9%
 [libx264 @ 0x3bee500] mb P  I16..4:  3.2%  1.1%  0.1%  P16..4:  2.5%  0.2%
 0.0%  0.0%  0.0%    skip:92.9%
 [libx264 @ 0x3bee500] mb B  I16..4:  0.3%  0.2%  0.0%  B16..8:  4.1%  0.1%
 0.0%  direct: 0.0%  skip:95.4%  L0:46.6% L1:49.4% BI: 4.0%
 [libx264 @ 0x3bee500] 8x8 transform intra:35.8% inter:58.1%
 [libx264 @ 0x3bee500] direct mvs  spatial:61.9% temporal:38.1%
 [libx264 @ 0x3bee500] coded y,u,v intra: 1.8% 1.6% 1.6% inter: 0.0% 0.0%
 0.0%
 [libx264 @ 0x3bee500] i16 v,h,dc,p: 90%  7%  1%  2%
 [libx264 @ 0x3bee500] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 51% 11% 38%  0%  0%
 0%  0%  0%  0%
 [libx264 @ 0x3bee500] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 32% 32% 28%  2%  1%
 2%  0%  2%  0%
 [libx264 @ 0x3bee500] Weighted P-Frames: Y:0.0% UV:0.0%
 [libx264 @ 0x3bee500] ref P L0: 67.7%  1.7% 21.4%  7.2%  1.4%  0.6%
 [libx264 @ 0x3bee500] ref B L0: 78.3% 13.2%  4.8%  2.5%  1.2%
 [libx264 @ 0x3bee500] ref B L1: 93.5%  6.5%
 [libx264 @ 0x3bee500] kb/s:192.62
 }}}

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


More information about the FFmpeg-trac mailing list