How to pass -x264opts value with embedded colon in option value
Looked through the docs + tried several approaches. Nothing seems to work. For example, what's the correct way to pass.. -x264opts analyse=0x3:0x113 Which has a ':' embedded in option value? Thanks.
On Thu, Apr 16, 2015 at 8:29 PM, David Favor <david@davidfavor.com> wrote:
Looked through the docs
Please look more carefully:
x264opts (N.A.)
Set any x264 option, see x264 --fullhelp for a list.
Argument is a list of key=value couples separated by ":". In filter and psy-rd options that use ":" as a separator themselves, use "," instead. They accept it as well since long ago but this is kept undocumented for some reason.
Does this work? (Cannot test now…) -x264opts analyse=0x3,0x113
Werner Robitza wrote:
On Thu, Apr 16, 2015 at 8:29 PM, David Favor <david@davidfavor.com> wrote:
Looked through the docs
Please look more carefully:
x264opts (N.A.)
Set any x264 option, see x264 --fullhelp for a list.
Argument is a list of key=value couples separated by ":". In filter and psy-rd options that use ":" as a separator themselves, use "," instead. They accept it as well since long ago but this is kept undocumented for some reason.
Does this work? (Cannot test now…)
-x264opts analyse=0x3,0x113
This did not seem to have an effect on the ffmpeg git pull I tested. I'll pull again right now + let you know.
Werner Robitza wrote:
On Thu, Apr 16, 2015 at 8:29 PM, David Favor <david@davidfavor.com> wrote:
Looked through the docs
Please look more carefully:
x264opts (N.A.)
Set any x264 option, see x264 --fullhelp for a list.
Argument is a list of key=value couples separated by ":". In filter and psy-rd options that use ":" as a separator themselves, use "," instead. They accept it as well since long ago but this is kept undocumented for some reason.
Does this work? (Cannot test now…)
-x264opts analyse=0x3,0x113
Entire log at bottom... Odd. Not the comma syntax is having an effect + generating incorrect pass through. ffmpeg -fflags +genpts -i "test.mts" -map 0:0 -c:v libx264 -crf:v 18 -level:v 4.1 -profile:v high -tune:v film -preset:v veryfast -maxrate:v 3000k -bufsize:v 6000k -vf setdar=dar=0,setsar=sar=0 -x264opts colorprim=bt709:transfer=bt709:colormatrix=bt709:fullrange=off:analyse=0x3,0x133 -movflags +faststart -r 29.97 -map 0:1 -c:a libfdk_aac -profile:a aac_he_v2 -afterburner 1 -signaling explicit_sbr -vbr 5 -ac 2 -ar 44100 -metadata title='Test (TC)' -threads 0 -f mp4 -benchmark Test-1920x1080-veryfast-crf18-3000k-tc.mp4 Generates this... [libx264 @ 0x7ff1d4800c00] 264 - core 142 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:-1:-1 analyse=0x3:0 me=hex subme=2 psy=1 psy_rd=1.00:0.15 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=12 lookahead_threads=4 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=1 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=10 rc=crf mbtree=1 crf=18.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=3000 vbv_bufsize=6000 crf_max=0.0 nal_hrd=none filler=0 ip_ratio=1.40 aq=1:1.00 Notice the final x264 settings are analyse=0x3:0 instead of analyse=0x3,0x133 as specified. Suggestions? _______ nice -19 ffmpeg -fflags +genpts -i "test.mts" -map 0:0 -c:v libx264 -crf:v 18 -level:v 4.1 -profile:v high -tune:v film -preset:v veryfast -maxrate:v 3000k -bufsize:v 6000k -vf setdar=dar=0,setsar=sar=0 -x264opts colorprim=bt709:transfer=bt709:colormatrix=bt709:fullrange=off:analyse=0x3,0x133 -movflags +faststart -r 29.97 -map 0:1 -c:a libfdk_aac -profile:a aac_he_v2 -afterburner 1 -signaling explicit_sbr -vbr 5 -ac 2 -ar 44100 -metadata title='Test (TC)' -threads 0 -f mp4 -benchmark Test-1920x1080-veryfast-crf18-3000k-tc.mp4 ffmpeg version 2.6.3-2015-05-17-72191-g4f2fcac Copyright (c) 2000-2015 the FFmpeg developers built with Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn) configuration: --cc=/usr/bin/clang --prefix=/david-favor/osx-10.9.5 --mandir=/david-favor/osx-10.9.5/share/man --enable-gpl --enable-yasm --arch=x86_64 --enable-version3 --enable-pthreads --enable-shared --disable-static --disable-debug --extra-cflags='-pipe -I/david-favor/osx-10.9.5/include -I/opt/local/include -I/usr/local/include -I/usr/include' --extra-ldflags='-Wl,-rpath,/david-favor/osx-10.9.5/lib -Wl,-rpath,/opt/local/lib -Wl,-rpath,/usr/local/lib -Wl,-rpath,/usr/lib -L/david-favor/osx-10.9.5/lib -L/opt/local/lib -L/usr/local/lib -L/usr/lib' --enable-ffplay --enable-ffprobe --enable-ffserver --enable-indev=qtkit --enable-indev=avfoundation --enable-runtime-cpudetect --enable-nonfree --enable-zlib --enable-bzlib --enable-openssl --enable-gnutls --enable-swscale --enable-avfilter --enable-avresample --enable-postproc --enable-vda --enable-libfribidi --enable-libmp3lame --enable-libfaac --enable-libfdk_aac --enable-libvpx --enable-libtheora --enable-libvorbis --enable-libxvid --enable-libopus --enable-libopenjpeg --enable-libschroedinger --enable-libspeex --enable-libbluray --enable-libx264 --enable-libx265 --enable-postproc --enable-frei0r --enable-libopencore-amrnb --enable-fontconfig --enable-libfreetype --enable-libmodplug --enable-libass libavutil 54. 23.101 / 54. 23.101 libavcodec 56. 39.101 / 56. 39.101 libavformat 56. 33.101 / 56. 33.101 libavdevice 56. 4.100 / 56. 4.100 libavfilter 5. 16.101 / 5. 16.101 libavresample 2. 1. 0 / 2. 1. 0 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 3.100 / 53. 3.100 Input #0, mpegts, from 'test.mts': Duration: 00:01:00.03, start: 1.433367, bitrate: 24821 kb/s Program 1 Metadata: service_name : Service01 service_provider: FFmpeg Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc Stream #0:1[0x101]: Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, stereo, fltp, 256 kb/s [libx264 @ 0x7f991b80d000] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 [libx264 @ 0x7f991b80d000] profile High, level 4.1 [libx264 @ 0x7f991b80d000] 264 - core 142 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:-1:-1 analyse=0x3:0 me=hex subme=2 psy=1 psy_rd=1.00:0.15 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=12 lookahead_threads=4 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=1 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=10 rc=crf mbtree=1 crf=18.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=3000 vbv_bufsize=6000 crf_max=0.0 nal_hrd=none filler=0 ip_ratio=1.40 aq=1:1.00 [libfdk_aac @ 0x7f991b82f400] Note, the VBR setting is unsupported and only works with some parameter combinations Output #0, mp4, to 'Test-1920x1080-veryfast-crf18-3000k-tc.mp4.tmp': Metadata: title : Test (TC) encoder : Lavf56.33.101 Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 1920x1080, q=-1--1, max. 3000 kb/s, 29.97 fps, 11988 tbn, 29.97 tbc Metadata: encoder : Lavc56.39.101 libx264 Stream #0:1: Audio: aac (libfdk_aac) (HE-AACv2) ([64][0][0][0] / 0x0040), 44100 Hz, stereo, s16 Metadata: encoder : Lavc56.39.101 libfdk_aac Stream mapping: Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264)) Stream #0:1 -> #0:1 (ac3 (native) -> aac (libfdk_aac)) Press [q] to stop, [?] for help [mp4 @ 0x7f991b80c400] Starting second pass: moving the moov atom to the beginning of the file frame= 1800 fps= 55 q=-1.0 Lsize= 22500kB time=00:01:00.02 bitrate=3070.7kbits/s dup=1 drop=0 video:21996kB audio:454kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.219894% bench: utime=154.474s bench: maxrss=473305088kB [libx264 @ 0x7f991b80d000] frame I:8 Avg QP:23.69 size:124463 [libx264 @ 0x7f991b80d000] frame P:538 Avg QP:23.63 size: 32199 [libx264 @ 0x7f991b80d000] frame B:1254 Avg QP:25.13 size: 3353 [libx264 @ 0x7f991b80d000] consecutive B-frames: 2.2% 0.3% 43.0% 54.4% [libx264 @ 0x7f991b80d000] mb I I16..4: 15.7% 52.9% 31.4% [libx264 @ 0x7f991b80d000] mb P I16..4: 7.5% 0.0% 0.0% P16..4: 60.3% 0.0% 0.0% 0.0% 0.0% skip:32.2% [libx264 @ 0x7f991b80d000] mb B I16..4: 0.4% 0.0% 0.0% B16..8: 5.7% 0.0% 0.0% direct: 6.6% skip:87.3% L0:30.3% L1:57.3% BI:12.4% [libx264 @ 0x7f991b80d000] 8x8 transform intra:8.0% inter:37.2% [libx264 @ 0x7f991b80d000] coded y,uvDC,uvAC intra: 43.2% 66.1% 14.7% inter: 7.2% 11.0% 0.0% [libx264 @ 0x7f991b80d000] i16 v,h,dc,p: 32% 25% 33% 10% [libx264 @ 0x7f991b80d000] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 28% 22% 17% 6% 4% 4% 5% 6% 6% [libx264 @ 0x7f991b80d000] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 25% 26% 10% 7% 6% 6% 6% 7% 7% [libx264 @ 0x7f991b80d000] i8c dc,h,v,p: 49% 23% 23% 5% [libx264 @ 0x7f991b80d000] Weighted P-Frames: Y:1.7% UV:0.0% [libx264 @ 0x7f991b80d000] kb/s:3000.14
participants (2)
-
David Favor -
Werner Robitza