DGHDRtoSDR_1.12

Anything related to video and my tools that is not a support request.
Post Reply
User avatar
JoyBell
Posts: 16
Joined: Mon Feb 17, 2020 11:50 pm

DGHDRtoSDR_1.12

Post by JoyBell »

I am a bit embarrassed about this.
I have finally got a good HDR to SDR conversion using DGHDRtoSDR_1.12 by accident instead of 1.13
You see the light argument finally got the converted SDR to light levels matching original SDR!

I work in stax and this finally after years of trying tools works with good results.

Code: Select all

z_ConvertFormat(pixel_type="YUV420P16",colorspace_op="2020ncl:2020:2020:l=>709:709:709:l", dither_type="None")
DGHDRtoSDR(light=150.0, impl="255", fulldepth=true )
Some shadows are too dark, and I have been desperately looking for the parameters list from the readme or other documentation but I can only find 1.13 information. I am also working on an issue of some content blowing out the sky.

Maybe I am silly but I could not get the white and black arguments in 1.13 to match the results of using light in 1.12 at all.

I'd post image examples but don't want to get anyone in trouble.

P.S. Donald, I owe you a license which I will happily do now that I got it working.
User avatar
Rocky
Posts: 3556
Joined: Fri Sep 06, 2019 12:57 pm

Re: DGHDRtoSDR_1.12

Post by Rocky »

Welcome to the forum and love your avatar! Can you make available a small source clip that I can use to investigate this? There should be a way to duplicate things with 1.13.

Still, your script looks wrong because you should not need any conversion to 709 before DGHDRtoSDR().

DGHDRtoSDR is free but you can certainly make a donation if you like.
User avatar
JoyBell
Posts: 16
Joined: Mon Feb 17, 2020 11:50 pm

Re: DGHDRtoSDR_1.12

Post by JoyBell »

Anyone have that DGHDRtoSDR 1.12 documentation?

Going with in Staxrip:

Code: Select all

DGHDRtoSDR(light=100.0, impl="255", fulldepth=true )
Gives:

Code: Select all

Script Error
DGHDRtoSDR: input must be CS_YUV420P16
Must need the conversion as the Source is YV12 HDR.

Code: Select all

FFVideoSource("\\t02.mkv", colorspace = "YV12", \ cachefile = "C:\t02.ffindex")
All my work is for our home media server. Is it ok to link images and or short clips of content to here? I don't want to break any forum rules.
User avatar
Rocky
Posts: 3556
Joined: Fri Sep 06, 2019 12:57 pm

Re: DGHDRtoSDR_1.12

Post by Rocky »

Yes, please link a short unprocessed clip. Images don't help much as I need the video for testing, etc. If it's pr0n send me a link by PM, otherwise you can post it here. Short clips are OK per the fair use clause of copyright.

YV12 HDR is unusual. Where is it coming from?

I posted the 1.12 help file at the other forum.
User avatar
JoyBell
Posts: 16
Joined: Mon Feb 17, 2020 11:50 pm

DGHDRtoSDR_1.12

Post by JoyBell »

Source Clips
https://cdn.discordapp.com/attachments/ ... DR.torrent

I found a small clip of Midway that shows the blown out brights issue:

Bluray SDR
Image

DGHDRtoSDR bright 100
Image

DGHDRtoSDR bright 300
Image

Bright 300 looks good here. But is way too dark on most other content.

These are from a teaser preview of Disneys The Mandalorian:
DGHDRtoSDR bright 300
Image
DGHDRtoSDR bright 100 Image
DGHDRtoSDR bright 50
Image
SDR 1080p Webstream
Image


Shadows are very dark:
DGHDRtoSDR bright 300
Image
DGHDRtoSDR bright 100 Image
DGHDRtoSDR bright 50
Image
SDR 1080p Webstream
Image

Another issue, is if I don't have a SDR source to look at can I even balance at all? I would like to be able to trust blind batch encoding to have decent results. Yes, I understand that HDR is colored differently. I am just looking for brightness and contrast to be reasonable.
I hope this isn't all in my head, but I have looked at these on TV, Laser Projector, Desktop Panel, and Laptop Panel.

Edit: I also notice that the Bluray native always looks more brown, turning down the blue just makes it look green. Can't seem to replicate that aspect either.

I have also tried other available cubemaps and they all look much duller than the DGHDRtoSDR. Good work!
User avatar
JoyBell
Posts: 16
Joined: Mon Feb 17, 2020 11:50 pm

Re: DGHDRtoSDR_1.12

Post by JoyBell »

I got the cube mapped Luts working. This is not a solution at all either.

Image

DGHDRtoSDR looks much more vibrant. This keeps the correct tone but looks washed out and dull AF.

Code: Select all

ConvertBits(16)
ConvertToPlanarRGB()
Cube("C:\Encoder Temp\PQ_to_BT709_v2.cube", cpu=1, fullrange=true)
BT2100_HDR_PQ_to_BT2020_SDR
C-Log3_to_BT709
HLG_to_BT709
PQ_to_BT709_v1
Also all look terrible. But that is for BBencoder.

fullrange=false, shows no image and throws no errors.
User avatar
Rocky
Posts: 3556
Joined: Fri Sep 06, 2019 12:57 pm

Re: DGHDRtoSDR_1.12

Post by Rocky »

Sorry but I don't do torrents. Just use a hosting site with the raw file. If needed I can give you access to my FTP site. Thank you.
dull AF
What is 'AF'?
User avatar
JoyBell
Posts: 16
Joined: Mon Feb 17, 2020 11:50 pm

Re: DGHDRtoSDR_1.12

Post by JoyBell »

AF is slang.
Strongly worded "very" in this case. The converted imaged looks very dull, so much as to invoke crude slang derogatory.

I will get a direct download file link. That was just easy compared to dealing with Mega or something.

Here are server links to the two source file. If you get security just leave blank.
https://bit.ly/2V7TqeY
https://bit.ly/2vRtfyQ
Post Reply