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 |
|
|
|
|
#1 | Link |
|
Registered User
Join Date: Aug 2018
Location: Germany
Posts: 153
|
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? |
|
|
|
|
|
#2 | Link |
|
Registered User
Join Date: Jan 2019
Location: Canada
Posts: 583
|
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. |
|
|
|
|
|
#3 | Link | |
|
Registered User
Join Date: Feb 2021
Posts: 4
|
Quote:
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 |
|
|
|
|
|
|
#4 | Link | |
|
Registered User
Join Date: Aug 2018
Location: Germany
Posts: 153
|
Quote:
Code:
ffmpeg -i input.mkv -c:v copy -vbsf hevc_mp4toannexb -f hevc - | dovi_tool extract-rpu - -o RPU.bin But how do I get the RPU into my encoded video? First, I have tried it in HandBrake directly (which would be the perfect way). I've added Code:
vbv-bufsize=160000:vbv-maxrate=160000:dolby-vision-profile=8.1:dolby-vision-rpu=/Filepath/RPU.bin Code:
encx265: unknown option 'dolby-vision-rpu' Code:
ffmpeg -i video.m4v -c:v copy -c:a copy -vbsf hevc_mp4toannexb -f hevc - | dovi_tool inject-rpu -i - --rpu-in /Filepath/RPU.bin -o final.mp4 Code:
Error: RpuInjector: Must be a raw HEVC bitstream file |
|
|
|
|
|
|
#5 | Link | |
|
Registered User
Join Date: Jan 2019
Location: Canada
Posts: 583
|
Quote:
I think I've seen people use ffmpeg, but I'm not sure if it actually works. For injecting, you need to be using the raw bitstream, it can't be piped. So demux first, inject, remux. You also can't output in mp4, it'll just be HEVC with no container.
__________________
LG C2 OLED | GitHub Projects Last edited by quietvoid; 20th October 2022 at 01:03. |
|
|
|
|
|
|
#6 | Link |
|
Moderator
![]() Join Date: Jan 2006
Location: Portland, OR
Posts: 5,134
|
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.
|
|
|
|
|
|
#7 | Link | |
|
Registered User
Join Date: Jan 2019
Location: Canada
Posts: 583
|
Quote:
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. |
|
|
|
|
|
|
#8 | Link |
|
Registered User
Join Date: Jan 2010
Location: France
Posts: 851
|
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. |
|
|
|
|
|
#9 | Link | |
|
Moderator
![]() Join Date: Jan 2006
Location: Portland, OR
Posts: 5,134
|
Quote:
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. |
|
|
|
|
|
|
#10 | Link |
|
Registered User
Join Date: Jan 2010
Location: France
Posts: 851
|
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. |
|
|
|
|
|
#11 | Link | |
|
Moderator
![]() Join Date: Jan 2006
Location: Portland, OR
Posts: 5,134
|
Quote:
And I don't think any DoVi BD titles use 8.x. |
|
|
|
|
|
|
#17 | Link |
|
Registered User
Join Date: Jan 2019
Location: Canada
Posts: 583
|
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; 27th January 2021 at 17:08. |
|
|
|
|
|
#20 | Link |
|
Registered User
Join Date: Jan 2010
Location: France
Posts: 851
|
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.
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|