Hello guest, if you like this forum, why don't you register? https://fanrestore.com/member.php?action=register (December 14, 2021) x


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
x265 UHD-BD compliant "perfect" settings
#21
OK so there is one more part to this after fixing the previous mentioned params. I noticed in MediaInfo one thing was different - the luminance and light level values for the video stream at the bottom of the list. These values tie back to the max-cll and master-display params, and the important thing to note is that these aren't static values, and need to either come from the source video you're re-encoding, or your editor if its something new. Here's how the source video looks in MediaInfo:

Code:
Mastering display color primaries        : Display P3
Mastering display luminance              : min: 0.0050 cd/m2 (D), max: 4000 cd/m2 (C)
Maximum Content Light Level              : 343 cd/m2 (A)
Maximum Frame-Average Light Level        : 106 cd/m2 (B)

I have added A, B, C, & D above to show where to derive the values for the params:

Code:
--max-cll "A,B"
--master-display "G(13250,34500)B(7500,3000)R(34000,16000)WP(15635,16450)L(C * 10000,D * 10000)"

Only the last group L in the master-display list needs customized, the rest are standard P3 values that won't change for movie content. So in this example, we can match the above MediaInfo specs by changing the params to:

Code:
--max-cll "343,106"
--master-display "G(13250,34500)B(7500,3000)R(34000,16000)WP(15635,16450)L(40000000,50)"

From what I can tell, most displays disregard this metadata, but it is part of the spec, so if you want a correctly authored stream it will need it. If the Max Content Light Level or Maximum Frame-Average Light Level don't appear in MediaInfo, it means that they're set to 0. Those streams may work fine on your TV or possibly appear too dim if your display decides to use it.
Reply
Thanks given by: CSchmidlapp
#22
Can you give us a bit more info about your use case, like how are you trying to reencode? Can you show the ffmpeg command? Just for learning purposes.
Is there a way to include HDR metadata without reencoding?
Reply
Thanks given by:
#23
(2025-01-24, 02:36 PM)SHM Wrote: Can you give us a bit more info about your use case, like how are you trying to reencode? Can you show the ffmpeg command? Just for learning purposes.
Is there a way to include HDR metadata without reencoding?

Yea, sure! I use Simple x264 Launcher for encoding. It is quick to use and takes avisynth scripts as an input. Here is how my UHD encoding profile looks:

[Image: yz17H4y.png]

The custom param is basically just all the stuff from the first post plus the fixes I added:

Code:
--uhd-bd --vbv-maxrate 64000 --vbv-bufsize 64000 --keyint 24 --min-keyint 1 --level-idc 51 --high-tier --aud --sar 1 --hrd --repeat-headers --no-open-gop --ref 5 --temporal-layers 0 --overscan show --wpp --input-depth 10 --no-interlace --range limited --chromaloc 2 --colorprim bt2020 --transfer smpte2084 --colormatrix bt2020nc --max-cll "343,106" --master-display "G(13250,34500)B(7500,3000)R(34000,16000)WP(15635,16450)L(40000000,50)"

Also, you will need to re-encode the video if going from SDR to HDR. The color values themselves are different (0-1020 instead of 0-255), it's not just a layer ontop of SDR.
Reply
Thanks given by: CSchmidlapp , SHM , PDB


Possibly Related Threads…
Thread Author Replies Views Last Post
  [Help] Best Topaz Video Enhance settings ? mysun 6 1,820 2024-10-24, 01:01 PM
Last Post: SHM
  [Help] How to convert Dolby Vision Profile 8 to 7 to make it UHD BD compliant? Red41804 5 846 2024-10-24, 12:59 PM
Last Post: SHM
Thumbs Up x264 BD compliant "perfect" settings spoRv 150 225,792 2023-09-16, 10:08 PM
Last Post: DoomBot
  I want to change AR, do I have to re-encode? If so, how can I keep original settings? Onti 3 2,638 2021-07-14, 06:28 PM
Last Post: Onti
  NVenc Test Settings Chewtobacca 2 2,650 2020-08-04, 07:56 PM
Last Post: Chewtobacca
  [Idea] x264 BD compliant "perfect" settings - faster version spoRv 26 22,247 2020-05-11, 08:36 PM
Last Post: Stamper
  Handbrake settings - question JackForrester 3 3,597 2020-03-21, 09:25 PM
Last Post: deleted user
  Tools and settings for compressing x264? NeonBible 1 2,857 2019-01-11, 12:01 PM
Last Post: MrBrown

Forum Jump:


Users browsing this thread: 1 Guest(s)