4K HDR10 Encoding?
-
- Posts: 2
- Joined: Fri Feb 19, 2021 5:14 pm
4K HDR10 Encoding?
ISSUE
I think I finally have the settings correct, but I noticed something odd... The goal is to take (Frozen II in this example) from the original file of 50GB which looks AMAZING with HDR10 and such. I wanted to shrink the file, but not lose noticeable quality in the video, and cropping the black bars, etc., and pass the audio and subtitles through without converting. This normally was easy (for non HDR content), but then I learned about the metadata which with my old settings were getting stripped out, so I have uncovered the new settings to get the file size down and maintain colors so they're not flat boring, however I noticed something and I can't figure out the reason why... Keep in mind, the colors and detail now match the original (to my eyes) and look great and MUCH smaller in size, but it does not list HDR10 on the video after encoding... Am I missing something? Please see the attached screenshots for reference.
ORIGINAL - 50GB
ENCODED - 17GB
HANDBRAKE SETTINGS
Codec: H.265 10-bit (x265)
Framerate: Same as source (variable)
Constant Quality: 16
Preset: Slow
Tune: None
Profile: Automatic
Level: 5.2
Fast Decode: Unchecked
QSV Decoding: Unchecked
All Video Filters: Off
HANDBRAKE VERSION
1.3.3
OPERATING SYSTEM
Edition: Windows 10 Pro
Version: 20H2
Installed on: 8/31/2020
OS build: 19042.804
Experience: Windows Feature Experience Pack 120.2212.551.0
I think I finally have the settings correct, but I noticed something odd... The goal is to take (Frozen II in this example) from the original file of 50GB which looks AMAZING with HDR10 and such. I wanted to shrink the file, but not lose noticeable quality in the video, and cropping the black bars, etc., and pass the audio and subtitles through without converting. This normally was easy (for non HDR content), but then I learned about the metadata which with my old settings were getting stripped out, so I have uncovered the new settings to get the file size down and maintain colors so they're not flat boring, however I noticed something and I can't figure out the reason why... Keep in mind, the colors and detail now match the original (to my eyes) and look great and MUCH smaller in size, but it does not list HDR10 on the video after encoding... Am I missing something? Please see the attached screenshots for reference.
ORIGINAL - 50GB
ENCODED - 17GB
HANDBRAKE SETTINGS
Codec: H.265 10-bit (x265)
Framerate: Same as source (variable)
Constant Quality: 16
Preset: Slow
Tune: None
Profile: Automatic
Level: 5.2
Fast Decode: Unchecked
QSV Decoding: Unchecked
All Video Filters: Off
HANDBRAKE VERSION
1.3.3
OPERATING SYSTEM
Edition: Windows 10 Pro
Version: 20H2
Installed on: 8/31/2020
OS build: 19042.804
Experience: Windows Feature Experience Pack 120.2212.551.0
Re: 4K HDR10 Encoding?
HDR10 metadata passthru is supported in the nightly builds. Get the latest one from https://handbrake.fr/nightly.php
Re: 4K HDR10 Encoding?
Shows you just how little HDR10 means.kjparenteau wrote: ↑Thu Feb 25, 2021 7:59 amKeep in mind, the colors and detail now match the original (to my eyes) and look great and MUCH smaller in size, but it does not list HDR10 on the video after encoding... Am I missing something?
-
- Posts: 2
- Joined: Fri Feb 19, 2021 5:14 pm
Re: 4K HDR10 Encoding?
Thank you for the feedback guys. I will try a nightly build to see what happens.
So in your experience, to achieve my goals, I just want to crop the black bars, retain as much original detail as possible while shrinking the file size, and pass through everything else like subs, audio tracks, etc. as original. Are the settings I outlined in the original post accurate for that? (With the exception of trying the nightly build to get the HDR10 metadata passthru?)
Secondly, is there any real benefit to doing the HDR10 metadata passthru vs the non-nightly settings I outlined? I noticed the screenshots did not post correctly, so I have included the video line item from MediaInfo for reference. Thanks!
ORIGINAL - 50GB
60.7 Mb/s, 3840*2160 (16:9), at 23.976 (24000/1001) FPS, HEVC (Main 10@L5.1@High), HDR10
ENCODED - 17GB
8,736 kb/s, 3840*1608 (2.40:1), at 23.976 (24000/1001) FPS, HEVC (Main 10@L5.2@High)
So in your experience, to achieve my goals, I just want to crop the black bars, retain as much original detail as possible while shrinking the file size, and pass through everything else like subs, audio tracks, etc. as original. Are the settings I outlined in the original post accurate for that? (With the exception of trying the nightly build to get the HDR10 metadata passthru?)
Secondly, is there any real benefit to doing the HDR10 metadata passthru vs the non-nightly settings I outlined? I noticed the screenshots did not post correctly, so I have included the video line item from MediaInfo for reference. Thanks!
ORIGINAL - 50GB
60.7 Mb/s, 3840*2160 (16:9), at 23.976 (24000/1001) FPS, HEVC (Main 10@L5.1@High), HDR10
ENCODED - 17GB
8,736 kb/s, 3840*1608 (2.40:1), at 23.976 (24000/1001) FPS, HEVC (Main 10@L5.2@High)
-
- Veteran User
- Posts: 4859
- Joined: Wed May 04, 2011 11:06 pm
Re: 4K HDR10 Encoding?
Could you please post your HB logs, instructions can be found here:
https://handbrake.fr/docs/en/latest/hel ... y-log.html
https://handbrake.fr/docs/en/latest/hel ... y-log.html
Re: 4K HDR10 Encoding?
Nightly builds have a 10bit pipeline (if you don't enable any filter on the filters tab), so it will better preserve the original video. 1.3.3 did 10 bit -> 8 bit -> 10 bit.
-
- Veteran User
- Posts: 2697
- Joined: Thu Jan 22, 2009 8:04 pm
-
- Posts: 3
- Joined: Wed Mar 17, 2021 4:31 pm
Re: 4K HDR10 Encoding?
When will the 10bit pipeline be included in the general release ?
Re: 4K HDR10 Encoding?
I'm not sure why people do things like this. Why re-encode if you've already gone to the trouble of getting UHD rips? Hard drives are reasonably priced. You're already reaching the boundaries of what can fit on the disc with HEVC. Why take the chance of getting compression artefacts if you don't have to? Your re-encodes might look fine right now, but you might notice macro blocking later if you upgrade to a bigger and nicer TV.
Re: 4K HDR10 Encoding?
Hey Guy's
First Up..... I love Handbrake and the 10 bit pipeline, in the nightly build, is music to my ears
Question... When encoding 4K HDR10 from a 4K HDR10 source do I need to enter anything into the "Advanced Options" on the Video Tab or will the HDR metadata be transferred automatically.
Im Currently using this in the Advanced Options box
hdr:max-cll=4000,1000:master-display=G(13250,34500)B(7500,3000)R(34000,16000)WP(15635,16450)L(10000000,1):deblock=0:strong-intra-smoothing=0:sao=0"
All Filters are turned off on the Filters Tab
Any help would be great
First Up..... I love Handbrake and the 10 bit pipeline, in the nightly build, is music to my ears
Question... When encoding 4K HDR10 from a 4K HDR10 source do I need to enter anything into the "Advanced Options" on the Video Tab or will the HDR metadata be transferred automatically.
Im Currently using this in the Advanced Options box
hdr:max-cll=4000,1000:master-display=G(13250,34500)B(7500,3000)R(34000,16000)WP(15635,16450)L(10000000,1):deblock=0:strong-intra-smoothing=0:sao=0"
All Filters are turned off on the Filters Tab
Any help would be great
Re: 4K HDR10 Encoding?
No, the HDR10 metadata is transferred automatically.
Re: 4K HDR10 Encoding?
Thanks for the reply Ritsuka
and thanks to the HB team
Thats cleared a lot up for me ...... Cheers
and thanks to the HB team
Thats cleared a lot up for me ...... Cheers
Re: 4K HDR10 Encoding?
I am testing out how to encode 4k UHD HEVC 10-bit files on Apple Silicon and retain the 10-bit meta and data. What encoder do I use?
H.265 10-bit
H.265 (VideoToolBox)
H.265 10-bit (VideoToolBox)
I am not sure if the 10-bit options are native (passthru) or if they are 10-bit -> 8-bit -> 10-bit. Also, not sure if the 10-bit pipeline has been activated for VideoToolBox or not yet.
I am using the Nightly build, but unfortunately, the only file I have is 70gb so testing all of them is a bit time consuming.
Thanks, and I am happy to share results once I sort it out.
H.265 10-bit
H.265 (VideoToolBox)
H.265 10-bit (VideoToolBox)
I am not sure if the 10-bit options are native (passthru) or if they are 10-bit -> 8-bit -> 10-bit. Also, not sure if the 10-bit pipeline has been activated for VideoToolBox or not yet.
I am using the Nightly build, but unfortunately, the only file I have is 70gb so testing all of them is a bit time consuming.
Thanks, and I am happy to share results once I sort it out.
Re: 4K HDR10 Encoding?
x265 will write the HDR10 metadata in the SEI units, so it will probably be more compatible with dumb TV players out there, the other encoders don't write it yet, and the info will be available only at the container level. The pipeline is 10bit -> 10bit, make sure to disable 8bit only filters (everything in the filters panel with the exception of colorspace and deinterlace yadif).
It's possible to encode only a part of that 70GB, you don't to encode it all each time
It's possible to encode only a part of that 70GB, you don't to encode it all each time
Re: 4K HDR10 Encoding?
Cheers!
Single tear that the VideoToolBox encoder doesn't do it yet... I was encoding a the 24fps file at 32fps with the new Apple Silicon, which was a little faster than my RTX 2070S!
-
- Posts: 2
- Joined: Tue May 11, 2021 12:47 pm
Re: 4K HDR10 Encoding?
Hi, first of all thank you for this terrific tool!
I'm also trying to find out the best way to encode 4K HDR Blu-ray rips from 50+GB to half the size around 25GB with 2-Pass AVG.
In the latest Nightly I've notice a new setting at the Format section under Summary named "Passthru Common Metadata".
Do I have to enable this to retain HDR10 data? And do I have to disable all filters? Normally I leave Decomb at the default setting, but is it better to turn is off completely with encoding HDR10 material?
I'm also trying to find out the best way to encode 4K HDR Blu-ray rips from 50+GB to half the size around 25GB with 2-Pass AVG.
In the latest Nightly I've notice a new setting at the Format section under Summary named "Passthru Common Metadata".
Do I have to enable this to retain HDR10 data? And do I have to disable all filters? Normally I leave Decomb at the default setting, but is it better to turn is off completely with encoding HDR10 material?
Re: 4K HDR10 Encoding?
No, the "Passthru Common Metadata" is for metadata like the title, date, description, it's unrelated to HDR.
Decomb and interlace detection must be off, but it would be better to disable them anyway, there is no way that a 4k video is going to be interlaced.
Decomb and interlace detection must be off, but it would be better to disable them anyway, there is no way that a 4k video is going to be interlaced.
-
- Posts: 2
- Joined: Tue May 11, 2021 12:47 pm
Re: 4K HDR10 Encoding?
Great, thanks for clearing this up!