• AnyStream is having some DRM issues currently, Netflix is not available in HD for the time being.
    Situations like this will always happen with AnyStream: streaming providers are continuously improving their countermeasures while we try to catch up, it's an ongoing cat-and-mouse game. Please be patient and don't flood our support or forum with requests, we are working on it 24/7 to get it resolved. Thank you.

Best GUI encoder for UHD Blu-rays

CCaptain00

Active Member
Thread Starter
Joined
Nov 25, 2015
Messages
44
Likes
7
I use Serviio to stream x264 encoded MP4s to Samsung smart TVs (some 4k) and Rokus (also 4K) from my home server. I have always used Handbrake to encode my DVD and Blu-ray rips.

I have ripped a few UHD Blu-rays using AnyDVD and MakeMKV. I would like to encode them as x265 10 bit encoded MKVs. I have tested this format on my TVs and Rokus.

I would like to compress the video but retain UHD resolution, 10 bit color, HDR metadata, and ATMOS or TrueHD 7.1 audio.

I cannot use Handbrake for this because it has an 8 bit pipe. My understanding is it converts 10 bit video to 8 bit and then back to 10 bit if 10 bit is selected. I have also confirmed with MediaInfo that it does not retain the HDR metadata.

I have tried CloneBD but for some reason it also did not pass through the HDR metadata. Plus, CloneBD does not let me adjust the x265 quality (Constant Rate Factor) or presets.

I am looking to suggestions for other x265 GUI encoders that will retain 10 bit color, HDR metadata, and pass through ATMOS or TrueHD.

Thank you.
 
RipBot264 now offers HDR passthrough and 10-bit encoding pipeline.
 
Straxrip 1.4 passes hdr and the bt2020 10bit. After encode use mkvtoolnix to mux atmos dtsx whatever.... :rolleyes:
 
Last edited:
I tried the latest StaXrip (1.7) and according to Mediainfo 17.2 I am missing the HDR metadata after encode. The same this happened when I tried ClonedBD.

Source:

Video
ID : 1
ID in the original source medium : 4113 (0x1011)
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main 10@L5.1@High
Codec ID : V_MPEGH/ISO/HEVC
Duration : 2 h 43 min
Bit rate : 58.0 Mb/s
Width : 3 840 pixels
Height : 2 160 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 23.976 (24000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0 (Type 2)
Bit depth : 10 bits
Bits/(Pixel*Frame) : 0.292
Stream size : 66.4 GiB (94%)
Language : English
Default : No
Forced : No
Color range : Limited
Color primaries : BT.2020
Transfer characteristics : PQ
Matrix coefficients : BT.2020 non-constant
Original source medium : Blu-ray
Mastering display color primaries : BT.2020
Mastering display luminance : min: 0.0050 cd/m2, max: 10000 cd/m2
Maximum Content Light Level : 500 cd/m2
Maximum Frame-Average Light Level : 200 cd/m2



After encode with StaXrip:

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 h 43 min
Bit rate : 1 959 kb/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
Bits/(Pixel*Frame) : 0.013
Stream size : 2.24 GiB (34%)
Writing library : x265 2.5+14-2718cb5dd67f:[Windows][GCC 7.1.0][64 bit] 10bit
Encoding settings : cpuid=1173503 / 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=235628 / level-idc=0 / high-tier=1 / uhd-bd=0 / ref=4 / no-allow-non-conformance / no-repeat-headers / annexb / no-aud / no-hrd / info / hash=0 / no-temporal-layers / open-gop / min-keyint=23 / keyint=250 / bframes=4 / b-adapt=2 / b-pyramid / bframe-bias=0 / rc-lookahead=25 / lookahead-slices=4 / scenecut=40 / no-intra-refresh / ctu=64 / min-cu-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 / strong-intra-smoothing / max-merge=3 / limit-refs=3 / limit-modes / me=3 / subme=3 / merange=57 / temporal-mvp / weightp / no-weightb / no-analyze-src-pics / deblock=0:0 / 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=24.0 / qcomp=0.60 / qpstep=4 / stats-write=0 / stats-read=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=0 / overscan=0 / videoformat=5 / range=0 / colorprim=2 / transfer=2 / colormatrix=2 / 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


I am a UHD noob, so maybe I am doing something wrong.

@Balthazar2k4 - I am trying RipBot264 now. I saw on Myce that you submitted a ton of UHD dumps to MakeMKV so thanks for that;)
 
@CCaptain00 You were asked to provide a cloneBD logfile by @Pete and you did. Now have some patience. They'll look into it. It's weekend for the Elby dev's too.
 
1.4! The rest will NOT pass hdr meta data. Select h265 for encoding. In setting you can add these hdr primaries and stuff.

Update: 1.7 support cropping function and 10bit HDR pipeline....
 
Last edited:
@Ch3vr0n I am confident Pete will help me with CloneBD. It was probably an error on my part. I am just testing multiple programs to find a daily driver for UHD. I did see this under encoding settings for CloneBD encode.

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 h 43 min
Width : 3 840 pixels
Height : 2 160 pixels
Display aspect ratio : 16:9
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 7.2.0][64 bit] 10bit
Encoding settings : cpuid=1173503 / frame-threads=8 / numa-pools=8 / wpp / no-pmode / no-pme / no-psnr / no-ssim / log-level=2 / input-csp=1 / input-res=3840x2160 / 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=23 / keyint=250 / 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=6127 / qcomp=0.60 / qpstep=4 / stats-write=0 / stats-read=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=2 / transfer=2 / colormatrix=2 / 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

@gereral1 - I will try StaXrip 1.4. Do you know if that was a feature removal or a bug?
 
Not sure. I just know many people have had sucess with encoding hdr with this version of this program. I've watch many uhd encodes from this program and all trigger hdr correctly with x265 and will encode the tags correctly. As for any other info this is where I stop.
 
yeah staxrip work very well. Avoid Handbrake, it trigger HDR but no complete 10bit pipeline unlike Staxrip.

upload_2018-1-21_10-36-42.png
 
It seems my only 4K TV (Samsung UN55KU6300), whether using a Roku Ultra or the internal dlna renderer, will show in the info that the source is HDR of 4K resolution mkvs even when it's not. It shows HDR for mkvs encoded by handbrake.
 
@imhh1 - I see your using StaxRip 1.7. I only changed Basic Options under x265 Options. Did you have to manually input those options inclugin Min/Max Luma, Max CLL, and Max FALL?
 
yep, min and max luma are always 0 / 1023 and you can read the maxcll and maxfall using mediainfo. If there are no maxcll/maxfall reported by mediainfo, then the values are 0 / 0
Master display line is automatically transferred in the VUI tab when you use Version 1.7 of staxrip.

It's very important that you use FFvideosource (with indexing) as the source filter, because without it the pipeline will still have 8bit.
 
yep, min and max luma are always 0 / 1023 and you can read the maxcll and maxfall using mediainfo. If there are no maxcll/maxfall reported by mediainfo, then the values are 0 / 0
Master display line is automatically transferred in the VUI tab when you use Version 1.7 of staxrip.

It's very important that you use FFvideosource (with indexing) as the source filter, because without it the pipeline will still have 8bit.

Thank you. I was using Automatic.
 
Will Staxrip hard code subtitles in 10bit color? Ripbot264 won't do this currently and I'm researching avisynth plugins to try and find a workaround.
 
yep, min and max luma are always 0 / 1023 and you can read the maxcll and maxfall using mediainfo. If there are no maxcll/maxfall reported by mediainfo, then the values are 0 / 0
Master display line is automatically transferred in the VUI tab when you use Version 1.7 of staxrip.

It's very important that you use FFvideosource (with indexing) as the source filter, because without it the pipeline will still have 8bit.

Why 1023 for max luma? According to my source max luma is 10,000.
 
So I should input, 0, 1023, 500, and 200?

Color range : Limited
Color primaries : BT.2020
Transfer characteristics : PQ
Matrix coefficients : BT.2020 non-constant
Original source medium : Blu-ray
Mastering display color primaries : BT.2020
Mastering display luminance : min: 0.0050 cd/m2, max: 10000 cd/m2
Maximum Content Light Level : 500 cd/m2
Maximum Frame-Average Light Level : 200 cd/m2
 
1023 = 1111111111 in binary. 10 bits. I assume it's to prevent some sort of clipping but there are TVs whose max luma exceeds this.
 
Max luma isnt the same thing as ''mastering display luminance''.

So your encoded file have the right value :
Color range : Limited
Color primaries : BT.2020
Transfer characteristics : PQ
Matrix coefficients : BT.2020 non-constant
Original source medium : Blu-ray
Mastering display color primaries : BT.2020
Mastering display luminance : min: 0.0050 cd/m2, max: 10000 cd/m2
Maximum Content Light Level : 500 cd/m2
Maximum Frame-Average Light Level : 200 cd/m2

the Mastering display luminance is automatically set in the master display line (VUI tab):

upload_2018-1-21_20-42-22.png
 
Will Staxrip hard code subtitles in 10bit color? Ripbot264 won't do this currently and I'm researching avisynth plugins to try and find a workaround.
there is an option to hardcode SRT subtitles but i never tried it.
 
Back
Top