Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to go about converting DoVi RPU to HDR10+ metadata? #23

Closed
sagz opened this issue Jun 6, 2021 · 8 comments
Closed

How to go about converting DoVi RPU to HDR10+ metadata? #23

sagz opened this issue Jun 6, 2021 · 8 comments

Comments

@sagz
Copy link

sagz commented Jun 6, 2021

Following up from the previous issue thread, here's the overall goal. I'm trying to upload a bunch of content I have to Wikimedia Commons but that requires royalty-free encoded videos. I can do the HEVC>VP9 while maintaining BT.2020 (pending tone-curve conversion if needed), but the frame-level dynamic metadata gets lost in the process.

The thing is that iPhone12, while being DoVi encoded video, is HLG and so it seems like the metadata conversion from DoVi RPU to HDR10+ JSON should be possible 'easily' enough...

I'm not sure if it's in-scope for dovi_tool to do this, but since you also are the creator of the amazing hdr10plus_parser, I thought I'd go to you first to ask how to connect these two standards.

Looking through the extracted frame info from a DoVi RPU and a sample of the HDR10+ json from Tears of Steel, I don't think it's just a matter of reformatting the json... or is it?

Thanks for you help!

@quietvoid
Copy link
Owner

quietvoid commented Jun 6, 2021

No, the two formats are different.
There are patents on converting from one to another but the detailed steps are not public.

Since neither HDR10+ or Dolby Vision analysers are publicly available, this isn't a trivial task.
And I don't plan on looking into it either.

@quietvoid
Copy link
Owner

HDR10+ with VP9 relies on the container for the metadata, it is not in the stream.
I don't know if Youtube videos are HDR10+ when played on a supported display.

@Gronis
Copy link

Gronis commented Mar 29, 2022

I can see that it is possible to create a dolby vision RPU using HDR10+ metadata json file, so there seem to be some compatibility between the formats.

@quietvoid
Copy link
Owner

The only thing they share is the maximum brightness of the scene.

HDR10+ requires image analysis like the distribution (histogram) of the brightness in every frame, which Dolby Vision doesn't have.

So it cannot be converted without processing the decoded image.

@sagz
Copy link
Author

sagz commented Mar 29, 2022 via email

@quietvoid
Copy link
Owner

It shouldn't be too complicated. There's no public reference or implementation though.

@joaoserra
Copy link

There are patents on converting from one to another but the detailed steps are not public.

Patents on converting DV metadata to HDR10+? I understand that the patents don't have the exact details, but exactly what patents? I would like to take a look at those.

Thanks!

@quietvoid
Copy link
Owner

I didn't keep a note of it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants
@joaoserra @sagz @Gronis @quietvoid and others