Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Video Encoding > High Efficiency Video Coding (HEVC)

Reply
 
Thread Tools Search this Thread Display Modes
Old 25th January 2021, 22:02   #1  |  Link
ShortKatz
Registered User
 
Join Date: Aug 2018
Location: Germany
Posts: 35
Pass over HDR10+ and Dolby Vision information?

Now that HandBrake finally has a first 10-bit pipeline, I was experimenting with converting some HDR movies. For regular HDR10 this is relatively easy. You just need to read out the HDR values with e.g. MediaInfo and than add the --master-display and --max-cll values in HandBrakes additional option box.
But, how would I do this with dynamic metadata from HDR10+ and Dolby Vision sources?
ShortKatz is offline   Reply With Quote
Old 25th January 2021, 22:24   #2  |  Link
quietvoid
Registered User
 
Join Date: Jan 2019
Posts: 179
For HDR10+ you can extract to JSON using https://github.com/quietvoid/hdr10plus_parser
And then feed the JSON to x265: https://x265.readthedocs.io/en/maste...on-dhdr10-info

For Dolby Vision, same principle: https://github.com/quietvoid/dovi_tool#extract-rpu
Feed to x265 with: https://x265.readthedocs.io/en/maste...lby-vision-rpu
Also have to specify the profile.

You'll need to figure out what profile your devices are compatible with, most likely converting to profile 8.1 is fine for most cases.
However this does not support cropped Dolby Vision encodes out of the box just yet, a modification to the code is necessary to override the metadata.
quietvoid is offline   Reply With Quote
Old 26th January 2021, 01:08   #3  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 3,482
And note a lot of Dolby Vision devices don't support Profile 8.1, and most sources aren't in that either. Converting between DoVi versions requires a full tone remapping, beyond the abilities of something like Handbreak.
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old 26th January 2021, 02:14   #4  |  Link
quietvoid
Registered User
 
Join Date: Jan 2019
Posts: 179
Quote:
Originally Posted by benwaggoner View Post
And note a lot of Dolby Vision devices don't support Profile 8.1, and most sources aren't in that either. Converting between DoVi versions requires a full tone remapping, beyond the abilities of something like Handbreak.
So far most streaming devices and Android TVs have no problem with YCbCr HDR10 + Profile 8.1 compatible RPU in the same stream, the Dolby engine interprets them correctly.
It's much more compatible than profile 7, at least

It's just a question of unsetting some flags and then the decoder has no problem. Converting profile 5 would be a different story.

Last edited by quietvoid; 26th January 2021 at 02:20.
quietvoid is offline   Reply With Quote
Old 26th January 2021, 11:34   #5  |  Link
Nico8583
Registered User
 
Join Date: Jan 2010
Location: France
Posts: 772
Hi
I'm interested, my TV is a Samsung Q70R so not compatible with DoVi, only HDR10+. What is the result if I recode a DoVi stream to x265 DoVi stream ? It will play as a standard HDR10 stream or it will not be compatible ?
Thank you.
Nico8583 is offline   Reply With Quote
Old 26th January 2021, 22:28   #6  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 3,482
Quote:
Originally Posted by Nico8583 View Post
Hi
I'm interested, my TV is a Samsung Q70R so not compatible with DoVi, only HDR10+. What is the result if I recode a DoVi stream to x265 DoVi stream ? It will play as a standard HDR10 stream or it will not be compatible ?
Thank you.
If it is a Profile 8.x source, then the bitstream is in a "native" color volume and will work without the metadata, although perhaps with lower quality without the dynamic metadata.

If it's a non-backwards compatible base layer, like Profile 5, you'd need to do a full tone mapping conversion with specialized tools. That's a full format conversion, not even a straight reencode let alone a remux.
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old 26th January 2021, 23:23   #7  |  Link
Nico8583
Registered User
 
Join Date: Jan 2010
Location: France
Posts: 772
Thank you !
How can I know the DoVi profile version ? With MediaInfo ?
And how does it work with original Blu ray ? My TV will play it as an HDR / HDR10 stream ? I don't have any DoVi BD now so I can't try but I ask for the future.

Last edited by Nico8583; 26th January 2021 at 23:27.
Nico8583 is offline   Reply With Quote
Old Yesterday, 01:47   #8  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 3,482
Quote:
Originally Posted by Nico8583 View Post
Thank you !
How can I know the DoVi profile version ? With MediaInfo ?
And how does it work with original Blu ray ? My TV will play it as an HDR / HDR10 stream ? I don't have any DoVi BD now so I can't try but I ask for the future.
MediaInfo should tell you.

And I don't think any DoVi BD titles use 8.x.
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old Yesterday, 01:50   #9  |  Link
Nico8583
Registered User
 
Join Date: Jan 2010
Location: France
Posts: 772
Quote:
Originally Posted by benwaggoner View Post
MediaInfo should tell you.

And I don't think any DoVi BD titles use 8.x.
Thank you so DoVi BD use profile 5 ? Or 7 ?
Nico8583 is offline   Reply With Quote
Old Yesterday, 04:24   #10  |  Link
quietvoid
Registered User
 
Join Date: Jan 2019
Posts: 179
Quote:
Originally Posted by Nico8583 View Post
Thank you so DoVi BD use profile 5 ? Or 7 ?
Profile 7.
quietvoid is offline   Reply With Quote
Old Yesterday, 09:58   #11  |  Link
Nico8583
Registered User
 
Join Date: Jan 2010
Location: France
Posts: 772
Quote:
Originally Posted by quietvoid View Post
Profile 7.
Thank you so if I want to convert an DoVi BD (profile 7) to x265 DoVi file I must use profile 5, 8.1 or 8.2 because x265 supports only these profiles ?
And I must convert profile 7 to profile 8.1 so I can keep HDR10 + DoVi metadata ?
Thank you.
Nico8583 is offline   Reply With Quote
Old Yesterday, 15:23   #12  |  Link
quietvoid
Registered User
 
Join Date: Jan 2019
Posts: 179
Correct. However, you can only convert profile 7 to 8.1 with the existing tools. Since they share the same HDR10 base layer.
Profile 5 conversion is much more complex.
quietvoid is offline   Reply With Quote
Old Yesterday, 16:25   #13  |  Link
Nico8583
Registered User
 
Join Date: Jan 2010
Location: France
Posts: 772
OK thank you I'll try it. There are DoVi BD with profile 5 or all are profile 7 ? There is no quality difference between profile 7 or 8.1 ? Thank you.
Nico8583 is offline   Reply With Quote
Old Yesterday, 17:04   #14  |  Link
quietvoid
Registered User
 
Join Date: Jan 2019
Posts: 179
All Dolby Vision UHD BDs are profile 7.

Profile 7 FEL has the potential to be better, but in most cases (and current technology) it is not noticeably so.
It is also only fully compatible on UHD BD players.
Profile 7 MEL is equivalent to profile 8.1.

You can use google to find the differences between FEL and MEL.

Last edited by quietvoid; Yesterday at 17:08.
quietvoid is offline   Reply With Quote
Old Yesterday, 19:18   #15  |  Link
Blue_MiSfit
Derek Prestegard IRL
 
Blue_MiSfit's Avatar
 
Join Date: Nov 2003
Location: Los Angeles
Posts: 5,792
Erm, Profile 7 supports an enhancement layer, but 8.1 does not (just metadata on top of the HDR10 base)
Blue_MiSfit is offline   Reply With Quote
Old Yesterday, 20:17   #16  |  Link
quietvoid
Registered User
 
Join Date: Jan 2019
Posts: 179
Quote:
Originally Posted by Blue_MiSfit View Post
Erm, Profile 7 supports an enhancement layer, but 8.1 does not (just metadata on top of the HDR10 base)
Profile 7 MEL has a useless enhancement layer, so it's pretty much the same metadata.
quietvoid is offline   Reply With Quote
Old Yesterday, 20:26   #17  |  Link
Nico8583
Registered User
 
Join Date: Jan 2010
Location: France
Posts: 772
And there is no link between Dolby Vision metadata and HDR10+ metadata ? It's not possible to find a way to convert DoVi metadata informations to HDR10+ ? I don't know the structure of each file, perhaps it's stupid.
Nico8583 is offline   Reply With Quote
Old Yesterday, 21:15   #18  |  Link
quietvoid
Registered User
 
Join Date: Jan 2019
Posts: 179
Quote:
Originally Posted by Nico8583 View Post
And there is no link between Dolby Vision metadata and HDR10+ metadata ? It's not possible to find a way to convert DoVi metadata informations to HDR10+ ? I don't know the structure of each file, perhaps it's stupid.
There are patents on converting from Dolby Vision to HDR10+ but there are no public algorithms.
quietvoid is offline   Reply With Quote
Old Yesterday, 21:35   #19  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 3,482
Quote:
Originally Posted by Nico8583 View Post
And there is no link between Dolby Vision metadata and HDR10+ metadata ? It's not possible to find a way to convert DoVi metadata informations to HDR10+ ? I don't know the structure of each file, perhaps it's stupid.
For Profile 8.1 DoVi, conversion to HDR10+ is theoretically possible as they both have a HDR-10 base layer. Something like ColorFront Transkoder might have, or might get that sort of functionality. But it'd have to be a company with lots of image science chops who licenses tech from both Dolby and HDR10+ LLC.

Generating new dynamic metadata based on the base layer is possible today, and should yield pretty identical results in the cases where metadata is descriptive based on analysis without specific creative intent metadata tuning. Transkoder can do that today.

Another likely scenario is to generate both HDR10+ and DoVi 8.1 metadata simultaneously, and then insert the respective metadata into the same base layer HDR10 encoded bitstream.
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old Yesterday, 23:09   #20  |  Link
Nico8583
Registered User
 
Join Date: Jan 2010
Location: France
Posts: 772
Thank you both. Is there a BD movie with DoVi and HDR10+ ? Or it's not possible ?
It should be a good thing to get a public algorithm to convert DoVi to HDR10+, I'm trying to find some informations.
Nico8583 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:45.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.