Log in

View Full Version : HEVC UHD HDR to X265 10bit HDR


MaistroX
27th November 2017, 13:31
Newbie question it may seem, but I fail to get my parameters to generate the output to show in MediaInfo.

On the Original file in MediaInfo this info is present ->

Mastering display color primaries : R: x=0.680000 y=0.320000, G: x=0.265000 y=0.690000, B: x=0.150000 y=0.060000, White point: x=0.312700 y=0.329000
Mastering display luminance : min: 0.0050 cd/m2, max: 4000.0000 cd/m2
Maximum Content Light Level : 9977 cd/m2
Maximum Frame-Average Light Level : 240 cd/m2

But after the encode with X265 that info is not present at all, what Command Line Option am I missing to get thoose values saved after encode?

Regards

excellentswordfight
27th November 2017, 15:54
--max-cll "9977,240" --master-display "G(13250,34500)B(7500,3000)R(34000,16000)WP(15635,16450)L(40000000,50)"

MaistroX
27th November 2017, 17:59
--max-cll "9977,240" --master-display "G(13250,34500)B(7500,3000)R(34000,16000)WP(15635,16450)L(40000000,50)"

Tryed it with a 2 min file with the following commands added in HandBrake -> cpuid=1173503 --frame-threads=4 --numa-pools=20 --wpp --no-pmode --no-pme --no-psnr --no-ssim --log-level=2 --input-csp=1 --interlace=0 --level-idc=51 --high-tier=1 --uhd-bd=1 --ref=6 --no-allow-non-conformance --repeat-headers --annexb --aud --hrd --info --hash=0 --no-temporal-layers --no-open-gop --min-keyint=1 --keyint=24 --bframes=4 --b-adapt=2 --b-pyramid --bframe-bias=0 --rc-lookahead=25 --lookahead-slices=4 --scenecut=40 --no-intra-refresh --ctu=64 --mincu-size=8 --rect --no-amp --max-tu-size=32 --tu-inter-depth=1 --tu-intra-depth=1 --limit-tu=0 --rdoq-level=2 --dynamic-rd=0.00 --no-ssim-rd --signhide --no-tskip --nr-intra=0 --nr-inter=0 --no-constrained-intra --no-strong-intra-smoothing --max-merge=3 --limit-refs=3 --limit-modes --me=4 --subme=4 --merange=57 --temporal-mvp --weightp --no-weightb --no-analyze-src-pics --deblock=-3:-3 --no-sao --no-sao-non-deblock --rd=4 --no-early-skip --rskip --no-fast-intra --no-tskip-fast --no-cu-lossless --no-b-intra --no-splitrd-skip --rdpenalty=0 --psy-rd=2.00 --psy-rdoq=1.00 --no-rd-refine --analysis-reuse-mode=0 --no-lossless --cbqpoffs=0 --crqpoffs=0 --rc=crf --crf=18.0 --qcomp=0.60 --qpstep=4 --stats-write=0 --stats-read=0 --vbv-maxrate=160000 --vbv-bufsize=160000 --vbv-init=0.9 --crf-max=0.0 --crf-min=0.0 --ipratio=1.40 --pbratio=1.30 --aq-mode=1 --aq-strength=1.00 --cutree --zone-count=0 --no-strict-cbr --qg-size=32 --no-rc-grain --qpmax=69 --qpmin=0 --no-const-vbv --sar=1 --overscan=0 --videoformat=5 --range=0 --colorprim=9 --transfer=16 --colormatrix=9 --chromaloc=1 --chromaloc-top=2 --chromaloc-bottom=2 --display-window=0 --min-luma=0 --max-luma=1023 --log2-max-poc-lsb=8 --vui-timing-info --vui-hrd-info --slices=1 --no-opt-qp-pps --no-opt-ref-list-length-pps --no-multi-pass-opt-rps --scenecut-bias=0.05 --no-opt-cu-delta-qp --no-aq-motion --hdr --hdr-opt --no-dhdr10-opt --analysis-reuse-level=5 --scale-factor=0 --refine-intra=0 --refine-inter=0 --refine-mv=0 --no-limit-sao --ctu-info=0 --no-lowpass-dct --refine-mv-type=0 --copy-pic=1 --transfer-smpte2084 --min_luminance=0.001000 --max_luminance=1000.000000 --ssim-rd --max-cll=4000,1000 --master-display=G(13250,34500)B(7500,3000)R(34000,16000)WP(15635,16450)L(40000000,50)

But Outcome still looks like this in MediaInfo ->

Video
ID : 1
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main 10@L5@Main
Codec ID : V_MPEGH/ISO/HEVC
Duration : 2 min 0 s
Width : 3 840 pixels
Height : 1 600 pixels
Display aspect ratio : 2.40:1
Frame rate mode : Constant
Frame rate : 23.976 (24000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 10 bits
Writing library : x265 2.5:[Windows][GCC 5.3.1][64 bit] 10bit
Encoding settings : cpuid=1105919 / frame-threads=3 / numa-pools=8 / wpp / no-pmode / no-pme / no-psnr / no-ssim / log-level=2 / input-csp=1 / input-res=3840x1600 / interlace=0 / total-frames=0 / level-idc=0 / high-tier=1 / uhd-bd=0 / ref=3 / no-allow-non-conformance / no-repeat-headers / annexb / no-aud / no-hrd / info / hash=0 / no-temporal-layers / open-gop / min-keyint=24 / keyint=240 / bframes=4 / b-adapt=2 / b-pyramid / bframe-bias=0 / rc-lookahead=20 / lookahead-slices=8 / scenecut=40 / no-intra-refresh / ctu=64 / min-cu-size=8 / no-rect / no-amp / max-tu-size=32 / tu-inter-depth=1 / tu-intra-depth=1 / limit-tu=0 / rdoq-level=0 / dynamic-rd=0.00 / no-ssim-rd / signhide / no-tskip / nr-intra=0 / nr-inter=0 / no-constrained-intra / strong-intra-smoothing / max-merge=2 / limit-refs=3 / no-limit-modes / me=1 / subme=2 / merange=57 / temporal-mvp / weightp / no-weightb / no-analyze-src-pics / deblock=0:0 / sao / no-sao-non-deblock / rd=3 / no-early-skip / rskip / no-fast-intra / no-tskip-fast / no-cu-lossless / no-b-intra / rdpenalty=0 / psy-rd=2.00 / psy-rdoq=0.00 / no-rd-refine / analysis-reuse-mode=0 / no-lossless / cbqpoffs=0 / crqpoffs=0 / rc=abr / bitrate=13000 / qcomp=0.60 / qpstep=4 / stats-write=0 / stats-read=2 / cplxblur=20.0 / qblur=0.5 / ipratio=1.40 / pbratio=1.30 / aq-mode=1 / aq-strength=1.00 / cutree / zone-count=0 / no-strict-cbr / qg-size=32 / no-rc-grain / qpmax=69 / qpmin=0 / no-const-vbv / sar=1 / overscan=0 / videoformat=5 / range=0 / colorprim=9 / transfer=16 / colormatrix=9 / chromaloc=0 / display-window=0 / max-cll=0,0 / min-luma=0 / max-luma=1023 / log2-max-poc-lsb=8 / vui-timing-info / vui-hrd-info / slices=1 / opt-qp-pps / opt-ref-list-length-pps / no-multi-pass-opt-rps / scenecut-bias=0.05 / no-opt-cu-delta-qp / no-aq-motion / no-hdr / no-hdr-opt / no-dhdr10-opt / analysis-reuse-level=5 / scale-factor=0 / refine-intra=0 / refine-inter=0 / refine-mv=0 / no-limit-sao / ctu-info=0
Default : Yes
Forced : No
Color range : Limited
Color primaries : BT.2020
Transfer characteristics : PQ
Matrix coefficients : BT.2020 non-constant

Still missing the the Original last part from the Original info in MediaInfo ->

Mastering display luminance : min: 0.0050 cd/m2, max: 4000.0000 cd/m2
Maximum Content Light Level : 4000 cd/m2
Maximum Frame-Average Light Level : 1000 cd/m2

Possible ALOT wrong with all my "unessesery" commands, but still canīt get the info in MediaInfo in the end, please help me figure it out!

sneaker_ger
27th November 2017, 18:11
HandBrake extra x265 parameter format is different from x265cli.

Should be something like:
max-cll=9977,240:master-display=G(13250,34500)B(7500,3000)R(34000,16000)WP(15635,16450)L(40000000,50):no-open-gop=1
etc.

excellentswordfight
28th November 2017, 09:54
I have no issue with with getting mediainfo to pick up that metadata when doing an encode with those settings.

Either sneaker_ger is on to something (im not a handbreak user), or it could be that you are missing the quotation marks.

--master-display
--max-cll
Note that this string value will need to be escaped or quoted to protect against shell expansion on many platforms. No default.
https://x265.readthedocs.io/en/default/cli.html