[FFmpeg-trac] #3307(undetermined:reopened): -level AVoption does not set refs with libx264
FFmpeg
trac at avcodec.org
Mon Jan 11 02:08:06 CET 2016
#3307: -level AVoption does not set refs with libx264
---------------------------------+----------------------------------------
Reporter: llogan | Owner:
Type: defect | Status: reopened
Priority: normal | Component: undetermined
Version: 2.7.3 | Resolution:
Keywords: libx264 | Blocked By:
Blocking: | Reproduced by developer: 1
Analyzed by developer: 0 |
---------------------------------+----------------------------------------
Changes (by spookybathtub):
* cc: elliottbalsley@… (added)
* status: closed => reopened
* version: git-master => 2.7.3
* resolution: fixed =>
Comment:
This problem, or one very similar, still exists. Using "-level 41" sets
some x264 options, but not all. With "-level 4.1" it works correctly.
The x264 binary accepts either and outputs the correct number of refs.
For example, if I use -preset veryslow and -level 41, the reference frames
should be limited to 4 (with 1080p video), but instead it uses ref=16.
{{{
$ ffmpeg -i A011C010_160111_R6QT.mov -an -vcodec libx264 -preset veryslow
-level 41 -pix_fmt yuv420p level41.mp4
ffmpeg version 2.7.git Copyright (c) 2000-2015 the FFmpeg developers
built with Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM
3.6.0svn)
configuration: --prefix=/opt/local --enable-swscale --enable-avfilter
--enable-avresample --enable-libmp3lame --enable-libvorbis --enable-
libopus --enable-libtheora --enable-libschroedinger --enable-libopenjpeg
--enable-libmodplug --enable-libvpx --enable-libspeex --enable-libass
--enable-libbluray --enable-lzma --enable-gnutls --enable-fontconfig
--enable-libfreetype --enable-libfribidi --disable-indev=jack --disable-
outdev=xv --mandir=/opt/local/share/man --enable-shared --enable-pthreads
--cc=/usr/bin/cc --enable-vda --arch=x86_64 --enable-yasm --enable-gpl
--enable-postproc --enable-libx264 --enable-libxvid --enable-nonfree
--enable-libfdk-aac --enable-libfaac
libavutil 54. 28.100 / 54. 28.100
libavcodec 56. 49.101 / 56. 49.101
libavformat 56. 40.101 / 56. 40.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 25.100 / 5. 25.100
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.101 / 1. 2.101
libpostproc 53. 3.100 / 53. 3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'A011C010_160111_R6QT.mov':
Metadata:
major_brand : qt
minor_version : 0
compatible_brands: qt
creation_time : 2016-01-11 00:18:42
Duration: 00:00:18.10, start: 0.000000, bitrate: 81260 kb/s
Stream #0:0(und): Video: prores (apcs / 0x73637061),
yuv422p10le(bt709), 1920x1080, 80106 kb/s, SAR 1:1 DAR 16:9, 23.98 fps,
23.98 tbr, 24k tbn, 24k tbc (default)
Metadata:
creation_time : 2016-01-11 00:18:42
handler_name : Core Media Data Handler
encoder : Apple ProRes 422 LT
timecode : 10:54:40:16
Stream #0:1(und): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz,
mono, s32 (24 bit), 1152 kb/s (default)
Metadata:
creation_time : 2016-01-11 00:18:42
handler_name : Core Media Data Handler
Stream #0:2(und): Data: none (tmcd / 0x64636D74), 0 kb/s (default)
Metadata:
creation_time : 2016-01-11 00:18:42
handler_name : Core Media Data Handler
reel_name : A011R6QT
timecode : 10:54:40:16
File 'level41.mp4' already exists. Overwrite ? [y/N] y
[libx264 @ 0x7fe098818c00] using SAR=1/1
[libx264 @ 0x7fe098818c00] DPB size (16 frames, 130560 mbs) > level limit
(4 frames, 32768 mbs)
[libx264 @ 0x7fe098818c00] using cpu capabilities: MMX2 SSE2Fast SSSE3
SSE4.2
[libx264 @ 0x7fe098818c00] profile High, level 4.1
[libx264 @ 0x7fe098818c00] 264 - core 142 - H.264/MPEG-4 AVC codec -
Copyleft 2003-2014 - 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=-2 threads=36
lookahead_threads=6 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=23
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:
major_brand : qt
minor_version : 0
compatible_brands: qt
encoder : Lavf56.40.101
Stream #0:0(und): Video: h264 (libx264) ([33][0][0][0] / 0x0021),
yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 23.98 fps, 24k tbn, 23.98
tbc (default)
Metadata:
creation_time : 2016-01-11 00:18:42
handler_name : Core Media Data Handler
timecode : 10:54:40:16
encoder : Lavc56.49.101 libx264
Stream mapping:
Stream #0:0 -> #0:0 (prores (native) -> h264 (libx264))
Press [q] to stop, [?] for help
frame= 434 fps=6.0 q=-1.0 Lsize= 2637kB time=00:00:18.01
bitrate=1199.1kbits/s
video:2633kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 0.183476%
[libx264 @ 0x7fe098818c00] frame I:2 Avg QP:21.52 size: 66387
[libx264 @ 0x7fe098818c00] frame P:74 Avg QP:23.18 size: 18996
[libx264 @ 0x7fe098818c00] frame B:358 Avg QP:25.98 size: 3231
[libx264 @ 0x7fe098818c00] consecutive B-frames: 0.5% 1.4% 0.0% 7.4%
16.1% 47.0% 11.3% 1.8% 14.5%
[libx264 @ 0x7fe098818c00] mb I I16..4: 39.6% 49.5% 10.9%
[libx264 @ 0x7fe098818c00] mb P I16..4: 1.6% 2.2% 0.3% P16..4: 34.7%
6.0% 6.5% 0.1% 0.0% skip:48.4%
[libx264 @ 0x7fe098818c00] mb B I16..4: 0.1% 0.1% 0.0% B16..8: 29.1%
1.0% 0.2% direct: 0.2% skip:69.3% L0:43.3% L1:55.7% BI: 1.0%
[libx264 @ 0x7fe098818c00] 8x8 transform intra:52.6% inter:71.9%
[libx264 @ 0x7fe098818c00] direct mvs spatial:94.1% temporal:5.9%
[libx264 @ 0x7fe098818c00] coded y,uvDC,uvAC intra: 40.2% 30.1% 9.5%
inter: 2.1% 1.2% 0.1%
[libx264 @ 0x7fe098818c00] i16 v,h,dc,p: 31% 29% 8% 31%
[libx264 @ 0x7fe098818c00] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 22% 11% 8% 8%
11% 13% 9% 12% 8%
[libx264 @ 0x7fe098818c00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 30% 10% 5% 8%
10% 14% 7% 11% 6%
[libx264 @ 0x7fe098818c00] i8c dc,h,v,p: 17% 41% 27% 15%
[libx264 @ 0x7fe098818c00] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x7fe098818c00] ref P L0: 51.6% 11.7% 12.8% 4.3% 3.4% 2.8%
2.8% 1.3% 1.4% 1.2% 1.3% 1.0% 1.2% 1.0% 1.3% 0.8%
[libx264 @ 0x7fe098818c00] ref B L0: 73.0% 7.1% 3.8% 1.9% 1.6% 1.8%
1.6% 1.3% 1.2% 1.4% 1.2% 1.6% 1.4% 0.9% 0.3%
[libx264 @ 0x7fe098818c00] ref B L1: 91.9% 8.1%
[libx264 @ 0x7fe098818c00] kb/s:1191.09
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/3307#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list