HDR -> SDR conversion

These CUDA filters are packaged into DGDecodeNV, which is part of DGDecNV.
User avatar
admin
Site Admin
Posts: 4382
Joined: Thu Sep 09, 2010 3:08 pm

Re: HDR -> SDR conversion

Post by admin » Thu Sep 05, 2019 12:32 pm

Guys, I have added a 'HDR' field to the HEVC Info dialog. This will show "PQ" for HDR10, "HLG" for HLG, and is blank for SDR.

I also figured out how to properly detect HDR. There are two ways to signal it: 1) through the transfer_characteristics (16 is PQ, 18 is HLG), and 2) through SEI messages. Previously I was looking only at the presence/absence of SEI messages. Now I look at both. You have to look at both because a HLG stream can signal 709 via transfer_characteristics together with a preferred_transfer_characteristics SEI specifying HLG. This allows for backward compatibility of HLG with 709 displays. Refer to T-REC-H.Sup18-201710-I!!PDF-E.pdf for details:

https://www.itu.int/rec/T-REC-H.Sup18-201710-I

Will slipstream it after some regression testing.

User avatar
zys4416
Distinguished Member
Distinguished Member
Posts: 9
Joined: Fri Jul 29, 2011 9:04 pm

Re: HDR -> SDR conversion

Post by zys4416 » Thu Sep 05, 2019 12:59 pm

I found the official HD version here:

https://www.youtube.com/watch?v=ih1l6wb7LhU

for these clips:

trim_187.ts at 35:03
trim_203.ts at 38:02

I can't find trim_162.ts in HD version, I think SDR ver. and HDR ver. are different editions.

User avatar
admin
Site Admin
Posts: 4382
Joined: Thu Sep 09, 2010 3:08 pm

Re: HDR -> SDR conversion

Post by admin » Thu Sep 05, 2019 1:27 pm

Thanks but I don't know how to download youtube videos.

User avatar
Bullwinkle
Posts: 15
Joined: Thu Sep 05, 2019 6:37 pm

Re: HDR -> SDR conversion

Post by Bullwinkle » Thu Sep 05, 2019 6:45 pm

Hello there culture lovers. Today we take a look at the modern day HLG to SDR known as The Good Stuff. Here is one fetching picture. They call me fetching. Fetching all the pixels ain't saving whoa! Ooh. Okay that is all for today next week the meaning of Randomness and Beauty.

User avatar
admin
Site Admin
Posts: 4382
Joined: Thu Sep 09, 2010 3:08 pm

Re: HDR -> SDR conversion

Post by admin » Thu Sep 05, 2019 6:48 pm

Whee!

User avatar
zys4416
Distinguished Member
Distinguished Member
Posts: 9
Joined: Fri Jul 29, 2011 9:04 pm

Re: HDR -> SDR conversion

Post by zys4416 » Thu Sep 05, 2019 9:06 pm

admin wrote:
Thu Sep 05, 2019 1:27 pm
Thanks but I don't know how to download youtube videos.
https://www.vidpaw.com/

or

https://www.findyoutube.net/

User avatar
Rocky
Posts: 60
Joined: Fri Sep 06, 2019 12:57 pm

Re: HDR -> SDR conversion

Post by Rocky » Sun Sep 08, 2019 12:58 pm

Thank you, zys4416.

I have the HLG EOTF coded and apparently working. I want to compare the results to the HD versions you linked, and also to the results of some other conversion filters. If things look good, I'll implement it fully into DGHDRtoSDR (with a mode parameter for PQ or HLG) and add it to DGIndexNV as well.

User avatar
Bullwinkle
Posts: 15
Joined: Thu Sep 05, 2019 6:37 pm

Re: HDR -> SDR conversion

Post by Bullwinkle » Sun Sep 08, 2019 2:25 pm

Sure but watch me pull a rabbit out of a hat... Ooh not what I had in mind randomness is beautiful.

User avatar
Rocky
Posts: 60
Joined: Fri Sep 06, 2019 12:57 pm

Re: HDR -> SDR conversion

Post by Rocky » Mon Sep 09, 2019 9:45 am

Just discovered there is a BT.2100-2 while I was coding off of BT.2100-1. The HLG EOTF is a bit different in BT.2100-2 so I'll have to revise the implementation accordingly. No big deal.

User avatar
Rocky
Posts: 60
Joined: Fri Sep 06, 2019 12:57 pm

Re: HDR -> SDR conversion

Post by Rocky » Mon Sep 09, 2019 8:21 pm

I tried both of these. Each simply brought up a player and played the stream. I could not see how to download the stream.

Post Reply