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.

Domains: forum.doom9.org / forum.doom9.net / forum.doom9.se

 

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

Reply
 
Thread Tools Search this Thread Display Modes
Old 28th January 2021, 10:42   #21  |  Link
SeeMoreDigital
Life's clearer in 4K UHD
 
SeeMoreDigital's Avatar
 
Join Date: Jun 2003
Location: Notts, UK
Posts: 12,402
Quote:
Originally Posted by Nico8583 View Post
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.
Yes there are...

The Blu-ray Forum has a constantly updated list of HDR10+ movies (there are currently only around 50). If you click on a movie cover you'll be able to find out which movies are also encoded with Dolby Vision.

Here's a few to get you started: -

1917 [With FEL Dolby Vision]
Birds of Prey (And The Fantabulous Emancipation of One Harley Quinn) [With MEL Dolby Vision]
Jaws [With FEL Dolby Vision]
The Shining [With MEL Dolby Vision]
The Wizard Of Oz [With MEL Dolby Vision]

I bought 'Birds Of Prey' a few weeks ago, which offers MEL Dolby Vision and HDR10+. But there are some FEL Dolby Vision and HDR10+ releases too


Cheers
__________________
| I've been testing hardware media playback devices and software A/V encoders and decoders since 2001 | My Network Layout & A/V Gear |

Last edited by SeeMoreDigital; 28th January 2021 at 14:29. Reason: Movie links added
SeeMoreDigital is offline   Reply With Quote
Old 28th January 2021, 13:30   #22  |  Link
Nico8583
Registered User
 
Join Date: Jan 2010
Location: France
Posts: 851
Thank you, I'll look to buy one of them
Nico8583 is offline   Reply With Quote
Old 28th January 2021, 19:23   #23  |  Link
ShortKatz
Registered User
 
Join Date: Aug 2018
Location: Germany
Posts: 153
Wow, thanks to all of you for all suggestions. I will give this a try. On the long run it seems it is planned that HandBrake simply passthru all mastering display / content light / dynamic metadata.
ShortKatz is offline   Reply With Quote
Old 28th January 2021, 20:09   #24  |  Link
RanmaCanada
Registered User
 
Join Date: May 2009
Posts: 357
Quote:
Originally Posted by ShortKatz View Post
Wow, thanks to all of you for all suggestions. I will give this a try. On the long run it seems it is planned that HandBrake simply passthru all mastering display / content light / dynamic metadata.
If it does, that would be fantastic.
RanmaCanada is offline   Reply With Quote
Old 29th January 2021, 18:56   #25  |  Link
ShortKatz
Registered User
 
Join Date: Aug 2018
Location: Germany
Posts: 153
Quote:
Originally Posted by RanmaCanada View Post
If it does, that would be fantastic.
At least for mastering display / content light metadata there is a PR. I've tested it and it works nicely for me.
ShortKatz is offline   Reply With Quote
Old 31st January 2021, 22:55   #26  |  Link
Stacey Spears
Registered User
 
Join Date: Nov 2009
Location: Sammamish, WA
Posts: 66
Quote:
Originally Posted by Nico8583 View Post
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.
Yes, 2018 Robin hood has both. When you put both into the same encoded file, then you may not have a choice which version you see. I think one defaults to HDR10+.

I have both on my disc, but in separate encodes. My next disc will also have SL-HDR2 (Advanced HDR by Technicolor).
__________________
Stacey Spears
Co-Creator, Spears & Munsil Ultra HD Benchmark
Stacey Spears is offline   Reply With Quote
Old 31st January 2021, 23:22   #27  |  Link
SeeMoreDigital
Life's clearer in 4K UHD
 
SeeMoreDigital's Avatar
 
Join Date: Jun 2003
Location: Notts, UK
Posts: 12,402
Quote:
Originally Posted by Stacey Spears View Post
Yes, 2018 Robin hood has both. When you put both into the same encoded file, then you may not have a choice which version you see. I think one defaults to HDR10+.
Robin Hood!!! That's a terrible movie. And yes it does default to HDR10+ when played in an OPPO coupled with an HDR10+ and Dolby Vision capable television, such as the 2020/21 Panasonic or Philips models


Cheers
__________________
| I've been testing hardware media playback devices and software A/V encoders and decoders since 2001 | My Network Layout & A/V Gear |

Last edited by SeeMoreDigital; 1st September 2021 at 15:25.
SeeMoreDigital is offline   Reply With Quote
Old 9th February 2021, 22:57   #28  |  Link
ShortKatz
Registered User
 
Join Date: Aug 2018
Location: Germany
Posts: 153
By the way, if somebody is interested to give this a try. The latest HandBrake snapshot build now supports 10bit HDR10 (if all filters are disabled and the output codec is 10bit) and passthru of all mastering display / content light metadata. I used it to encode my Wonder Woman UHD Blu-ray for a test.
ShortKatz is offline   Reply With Quote
Old 1st September 2021, 04:00   #29  |  Link
Lollaskates
Registered User
 
Join Date: Feb 2021
Posts: 4
Quote:
Originally Posted by quietvoid View Post
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.
Sorry, new to handling DV - Ive got a DV profile 7 MKV , (BL+EL+RPU) that i'm trying to encode with x265. In your instructions above, you mention extracting the RPU and then feeding it to x265.

Am I extracting the RPU as-is and then feeding it to x265 and specifying profile 8.1? or am I using that same tool to convert the RPU from profile 7 to profile 8.1 and then feeding it to x265 while specifying profile 8.1?

Thanks
Lollaskates is offline   Reply With Quote
Old 1st September 2021, 13:22   #30  |  Link
quietvoid
Registered User
 
Join Date: Jan 2019
Location: Canada
Posts: 583
You would have to convert the RPU to profile 8, and "crop" if necessary for your encode.
The command would look like this:
Code:
dovi_tool -m 2 -c extract-rpu
If not cropping AND downscaling, then it gets more complicated since you have to edit the RPU itself..
__________________
LG C2 OLED | GitHub Projects
quietvoid is online now   Reply With Quote
Old 2nd September 2021, 00:34   #31  |  Link
Lollaskates
Registered User
 
Join Date: Feb 2021
Posts: 4
Quote:
Originally Posted by quietvoid View Post
You would have to convert the RPU to profile 8, and "crop" if necessary for your encode.
The command would look like this:
Code:
dovi_tool -m 2 -c extract-rpu
If not cropping AND downscaling, then it gets more complicated since you have to edit the RPU itself..
Thanks! For me just encoding it as-is, no cropping or downscaling.

Cheers
Lollaskates is offline   Reply With Quote
Old 5th September 2021, 11:51   #32  |  Link
LazyNcoder
Registered User
 
Join Date: Feb 2015
Posts: 33
Quote:
Originally Posted by quietvoid View Post
You would have to convert the RPU to profile 8, and "crop" if necessary for your encode.
The command would look like this:
Code:
dovi_tool -m 2 -c extract-rpu
If not cropping AND downscaling, then it gets more complicated since you have to edit the RPU itself..
Let me get this straight. If there is no cropping, should we still use the crop switch?

I want to encode a bluray which has both HDR10+ and DV

for the HDR10+ part, I did it with hdr10plus_parser.exe
Since I heard you cannot crop the video on HDR10+, I didn't crop it.

Now, I want to include both HDR10+ and DV just like the source

Should I use the crop switch?


My plan is to feed both json and rpu to x265
Is this the correct way?

I'd be thankful if any one can help me with this.

Also, does -m 2 convert the profile to 8.1 or 8.2??

What switches should I enable for the DV on x265?

Last edited by LazyNcoder; 5th September 2021 at 11:59.
LazyNcoder is offline   Reply With Quote
Old 5th September 2021, 14:07   #33  |  Link
quietvoid
Registered User
 
Join Date: Jan 2019
Location: Canada
Posts: 583
Quote:
Originally Posted by LazyNcoder View Post
Let me get this straight. If there is no cropping, should we still use the crop switch?

I want to encode a bluray which has both HDR10+ and DV

for the HDR10+ part, I did it with hdr10plus_parser.exe
Since I heard you cannot crop the video on HDR10+, I didn't crop it.

Now, I want to include both HDR10+ and DV just like the source

Should I use the crop switch?


My plan is to feed both json and rpu to x265
Is this the correct way?

I'd be thankful if any one can help me with this.

Also, does -m 2 convert the profile to 8.1 or 8.2??

What switches should I enable for the DV on x265?
You can absolutely crop with HDR10+, and resizing the image as well.

In summary for Dolby Vision...

Source video 2160p with letterbox bars:
encoded as 2160p with letterbox bars: don't use crop.
encoded as 2160p and cropped (no more letterbox bars): use crop.

encoded as 1080p with letterbox bars: you need to edit the active area to set the final letterbox bars size as offsets, see documentation.
encoded as 1080p and cropped: use crop.


If you encode HDR10 video (from a HDR10 profile 7 source, such as UHD BD), you should convert to profile 8.1 (which is Dolby Vision w/ HDR10 backwards compatibility)
So that would be mode 2.

In x265, you would add these for Dolby Vision: --dolby-vision-profile 8.1 --dolby-vision-rpu RPU.bin
However if you're not setting VBV rates, x265 will warn you.

And for HDR10+, it's recommended to only add: --dhdr10-info metadata.json

Hopefully this clears up some confusion.
__________________
LG C2 OLED | GitHub Projects

Last edited by quietvoid; 5th September 2021 at 14:58.
quietvoid is online now   Reply With Quote
Old 5th September 2021, 20:08   #34  |  Link
LazyNcoder
Registered User
 
Join Date: Feb 2015
Posts: 33
Quote:
Originally Posted by quietvoid View Post
You can absolutely crop with HDR10+, and resizing the image as well.

In summary for Dolby Vision...

Source video 2160p with letterbox bars:
encoded as 2160p with letterbox bars: don't use crop.
encoded as 2160p and cropped (no more letterbox bars): use crop.

encoded as 1080p with letterbox bars: you need to edit the active area to set the final letterbox bars size as offsets, see documentation.
encoded as 1080p and cropped: use crop.


If you encode HDR10 video (from a HDR10 profile 7 source, such as UHD BD), you should convert to profile 8.1 (which is Dolby Vision w/ HDR10 backwards compatibility)
So that would be mode 2.

In x265, you would add these for Dolby Vision: --dolby-vision-profile 8.1 --dolby-vision-rpu RPU.bin
However if you're not setting VBV rates, x265 will warn you.

And for HDR10+, it's recommended to only add: --dhdr10-info metadata.json

Hopefully this clears up some confusion.
First of all, thank you for being so humble. Couldn't have more respect for someone like you.

So, is there anything needed when we crop a HDR10+ video? something like -c switch with DV? Nothing? Just crop it like a regular video and it's fine?

I did everything you said but I get this error everytime:
Error: fwrite() call failed when writing frame: 3, plane: 1, errno: 32
Output 45 frames in 38.79 seconds (1.16 fps)

Video encoding using x265 failed with exit code: -1073741819 (0xC0000005)

-----------

I figured out this is about empty VBV parameteres.

After adding --vbv-bufsize 20000 --vbv-maxrate 20000 to the command like, the problem goes away but the results has missing DV in it. It's just a HDR10+ video as media info states.

The source is:
"Dolby Vision, Version 1.0, dvhe.07.06, BL+EL+RPU, Blu-ray compatible / SMPTE ST 2094 App 4, Version 1, HDR10+ Profile B compatible"

The result(with --dolby-vision-profile 8.1 --dolby-vision-rpu "E:\1.bin"
"SMPTE ST 2094 App 4, Version 1, HDR10+ Profile B compatible"

Any suggestions?
LazyNcoder is offline   Reply With Quote
Old 5th September 2021, 20:16   #35  |  Link
quietvoid
Registered User
 
Join Date: Jan 2019
Location: Canada
Posts: 583
There's nothing to do for the HDR10+ metadata, it's supposed to be compatible for any resolution.

For MediaInfo to detect Dolby Vision, you need to mux the video to a compatible container.
MKVToolNix version 58 and newer supports this.

Does the x265 log mention if it worked successfully?
It should say this: VES muxing with Dolby Vision RPU file successful in x265
__________________
LG C2 OLED | GitHub Projects
quietvoid is online now   Reply With Quote
Old 7th September 2021, 10:58   #36  |  Link
LazyNcoder
Registered User
 
Join Date: Feb 2015
Posts: 33
Quote:
Originally Posted by quietvoid View Post
There's nothing to do for the HDR10+ metadata, it's supposed to be compatible for any resolution.

For MediaInfo to detect Dolby Vision, you need to mux the video to a compatible container.
MKVToolNix version 58 and newer supports this.

Does the x265 log mention if it worked successfully?
It should say this: VES muxing with Dolby Vision RPU file successful in x265
Thank you very much. I checked the hevc before muxing to MKV. After muxing it, mediainfo shows the DV.

But there is one other thing. I noticed the info on the source:
Dolby Vision, Version 1.0, dvhe.07.06, BL+EL+RPU

But on the encoded file it's:
Dolby Vision, Version 1.0, dvhe.08.06, BL+RPU

Is this OK? I mean the "EL" is missing on the encoded file. I don't know what that is anyways

Again, thank you
LazyNcoder is offline   Reply With Quote
Old 7th September 2021, 13:08   #37  |  Link
quietvoid
Registered User
 
Join Date: Jan 2019
Location: Canada
Posts: 583
Quote:
Originally Posted by LazyNcoder View Post
But there is one other thing. I noticed the info on the source:
Dolby Vision, Version 1.0, dvhe.07.06, BL+EL+RPU

But on the encoded file it's:
Dolby Vision, Version 1.0, dvhe.08.06, BL+RPU

Is this OK? I mean the "EL" is missing on the encoded file. I don't know what that is anyways
Yes it's normal, only profile 7 requires the EL (enhancement layer), which is a separate video track.
__________________
LG C2 OLED | GitHub Projects

Last edited by quietvoid; 7th September 2021 at 14:26.
quietvoid is online now   Reply With Quote
Old 7th September 2021, 14:15   #38  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Finland
Posts: 5,836
So is it possible to downscale the normal video to 1440p or 1080p and then combine it with the DV data when encoding?
__________________
And if the band you're in starts playing different tunes
I'll see you on the dark side of the Moon...
Boulder is offline   Reply With Quote
Old 7th September 2021, 14:23   #39  |  Link
quietvoid
Registered User
 
Join Date: Jan 2019
Location: Canada
Posts: 583
Quote:
Originally Posted by Boulder View Post
So is it possible to downscale the normal video to 1440p or 1080p and then combine it with the DV data when encoding?
It should work fine, there's only more steps involved if there are still letterbox bars in the content.
__________________
LG C2 OLED | GitHub Projects
quietvoid is online now   Reply With Quote
Old 7th September 2021, 17:14   #40  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Finland
Posts: 5,836
Quote:
Originally Posted by quietvoid View Post
It should work fine, there's only more steps involved if there are still letterbox bars in the content.
I never leave the black bars there, I always crop them before denoising and downscaling. So this would be just a case of running dovi_tool -m 2 -c extract-rpu to get the RPU file for the x265 encoding part?
__________________
And if the band you're in starts playing different tunes
I'll see you on the dark side of the Moon...
Boulder 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 02:48.


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