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 4th December 2021, 22:16   #1  |  Link
-QfG-
QfG Group Germany
 
-QfG-'s Avatar
 
Join Date: Oct 2018
Location: Germany
Posts: 247
[DDVT Tool] Dolby Vision RPU Demuxing / Injecting / Editing.

DDVT Tool Download Folder on MEGA.
(The tool based on quietvoids tools)


-Demuxing DV Metadata from MKVs/MP4s.
-Convert HDR10+ Metadata to DoVi Metadata (Experimental).
-Convert Profile 7/5 Metadata to Profile 8.1.
-Inject DoVi Metadata in Streams.
-Easy Delay Adjustment in Injector.
-Complete Open Source Batch Scripts!

Credits to quietvoid for his awesome tools.
Credits to Atak_Snajpera for the BorderDetect tool.


Last edited by -QfG-; 6th February 2023 at 00:07.
-QfG- is offline   Reply With Quote
Old 4th December 2021, 23:14   #2  |  Link
quietvoid
Registered User
 
Join Date: Jan 2019
Location: Canada
Posts: 574
The mastering display metadata you used is correct.

For the min value, it is 10000x the float value. So 10000 * 0.0001 = 1.
Max stays the same.
__________________
LG C2 OLED | GitHub Projects
quietvoid is offline   Reply With Quote
Old 5th December 2021, 01:17   #3  |  Link
-QfG-
QfG Group Germany
 
-QfG-'s Avatar
 
Join Date: Oct 2018
Location: Germany
Posts: 247
Ok, thank you quietvoid.
-QfG- is offline   Reply With Quote
Old 5th December 2021, 04:13   #4  |  Link
-QfG-
QfG Group Germany
 
-QfG-'s Avatar
 
Join Date: Oct 2018
Location: Germany
Posts: 247
i have created 2 little Batch scripts, one Demuxer and one Injector. With this scripts you can simply:

- Change DoVi Profile 7,5 to Profile 8
- Adding Delays (useful for Hybrid Releases)
- Convert HDR10+ Metadata to DoVi Profile 8 Metadata
- Delete HDR10+ Metadata from Videostream



https://workupload.com/file/GWpvx2dzvcs

quietvoid many thanks for this awesome tools.
-QfG- is offline   Reply With Quote
Old 5th December 2021, 11:44   #5  |  Link
Nico8583
Registered User
 
Join Date: Jan 2010
Location: France
Posts: 851
Hi,
I have a question : now if we can convert HDR10+ to DoVi, is it possible to convert DoVi to HDR10+ ?
Thanks !
Nico8583 is offline   Reply With Quote
Old 5th December 2021, 14:48   #6  |  Link
quietvoid
Registered User
 
Join Date: Jan 2019
Location: Canada
Posts: 574
Quote:
Originally Posted by Nico8583 View Post
Hi,
I have a question : now if we can convert HDR10+ to DoVi, is it possible to convert DoVi to HDR10+ ?
Thanks !
In theory it is, but there's no implementation for it.
__________________
LG C2 OLED | GitHub Projects
quietvoid is offline   Reply With Quote
Old 5th December 2021, 20:00   #7  |  Link
Nico8583
Registered User
 
Join Date: Jan 2010
Location: France
Posts: 851
Thank you, do you plan to add it later ?
Nico8583 is offline   Reply With Quote
Old 5th December 2021, 20:03   #8  |  Link
quietvoid
Registered User
 
Join Date: Jan 2019
Location: Canada
Posts: 574
No, I have no way to test anything related to HDR10+.
__________________
LG C2 OLED | GitHub Projects
quietvoid is offline   Reply With Quote
Old 5th December 2021, 21:47   #9  |  Link
shodan5000
Registered User
 
Join Date: Sep 2018
Posts: 33
Quote:
Originally Posted by -QfG- View Post
i have created 2 little Batch scripts, one Demuxer and one Injector.
Thank you very much! I am having an issue though. I'm testing a HDR10+ film and running it through the demuxer batch file to convert to DV. Everything seems to go just fine in the conversion and it appears to complete successfully. However, I can't find any resulting RPU.bin file. The generated folder is completely empty.

I've also tested a DV film and that process seems to work well and leaves a generated RPU.bin file.

Also, since dovi_tool is capable of converting the RPU to be profile 8.1 compatible, why is that option not available and only profile 8 is shown? Can that be added?

Last edited by shodan5000; 5th December 2021 at 23:15.
shodan5000 is offline   Reply With Quote
Old 5th December 2021, 22:43   #10  |  Link
RanmaCanada
Registered User
 
Join Date: May 2009
Posts: 338
I hate to ask, but are there any plans to make a gui, even a basic one? This is fantastic work, seriously, it's just I am no longer comfortable with command lines in my "old" age haha (decades of AIX in my youth has taken it's toll). If I could, I would buy both you and quietvoid some pizza, or beer, or coffee, or chocolates/candy haha whatever you'd prefer!
RanmaCanada is offline   Reply With Quote
Old 6th December 2021, 09:22   #11  |  Link
von Suppé
Registered User
 
von Suppé's Avatar
 
Join Date: Dec 2013
Posts: 640
Eventhough I got myself accustomed to do every step with the cli of quietvoid's tools, your scripts are welcome and handy additions. Love the drag & drop support.
Thanks, -QfG-
von Suppé is offline   Reply With Quote
Old 13th December 2021, 00:38   #12  |  Link
shodan5000
Registered User
 
Join Date: Sep 2018
Posts: 33
Nothing? No follow-up at all?
shodan5000 is offline   Reply With Quote
Old 28th December 2021, 16:22   #13  |  Link
-QfG-
QfG Group Germany
 
-QfG-'s Avatar
 
Join Date: Oct 2018
Location: Germany
Posts: 247
Here my newest scripts. Credits to @quietvoid for his awesome Tools. But i still have problems with the HDR10+ to DV conversion. I'm to stupid for this.

If anyone can fix the JSON script for HDR10+ converting, please tell it me.

Whats new?

I have many trouble with FFMPEG, so for MKV files i use mkvextract to demux and for mp4 files mp4box.
You can:

DEMUXER
-Extract RPU from Profile 5,7,8 and switch to profile 8.
-Erase HDR10+ Metadata during extracting.
-Crop the target RPU.

INJECTOR
-You can inject RPU into HDR Stream.
-You can discard HDR10+ Metadata in source stream.
-You can simply Edit Frames for hybrid releases.
-You can mux the raw hevc stream into mkv container (using mkvmerge) with correct DV infos.

Known Bugs:

-HDR10+ to DV Conversion will not working (JSON Script Error)

Everyone can change and fix something on the scripts without any permissions.

Newest Scripts are here:
https://1fichier.com/?6h70dlix91tsgmzaelar

Preview Pictures:




Quote:
Also, since dovi_tool is capable of converting the RPU to be profile 8.1 compatible, why is that option not available and only profile 8 is shown? Can that be added?
If u convert the RPU in Profile 8 and inject this in an SDR Stream it is 8.2 and in an HDR Stream it is 8.1.

Last edited by -QfG-; 28th December 2021 at 16:32.
-QfG- is offline   Reply With Quote
Old 29th December 2021, 02:30   #14  |  Link
shodan5000
Registered User
 
Join Date: Sep 2018
Posts: 33
I'm just not understanding the operation here. Apologies in advance, but could you baby step the operation of this for me. I've dropped a profile 5 video onto the demuxer and it creates a folder with the newly created profile 8 RPU in it, nothing else. Now what? I have no other file except the original profile 5 video to drop onto the injector. The injector will not accept this file to operate. How exactly, in steps, do you get the new RPU injected correctly?
shodan5000 is offline   Reply With Quote
Old 29th December 2021, 08:29   #15  |  Link
-QfG-
QfG Group Germany
 
-QfG-'s Avatar
 
Join Date: Oct 2018
Location: Germany
Posts: 247
You need another HDR10 file where you can now inject the DV RPU. DV Profile 5 Videos are only DV5 without HDR Fallback.
-QfG- is offline   Reply With Quote
Old 29th December 2021, 13:54   #16  |  Link
von Suppé
Registered User
 
von Suppé's Avatar
 
Join Date: Dec 2013
Posts: 640
for the new scripts, -QfG-
von Suppé is offline   Reply With Quote
Old 29th December 2021, 18:34   #17  |  Link
shodan5000
Registered User
 
Join Date: Sep 2018
Posts: 33
Quote:
Originally Posted by -QfG- View Post
You need another HDR10 file where you can now inject the DV RPU. DV Profile 5 Videos are only DV5 without HDR Fallback.
Thank you for the response. However, I'm even more confused now lol. Is it not one of the points of this program is the ability to convert profile 5 into profile 8 and then inject that?
shodan5000 is offline   Reply With Quote
Old 1st January 2022, 20:45   #18  |  Link
Cilow
Registered User
 
Join Date: Oct 2012
Posts: 2
Yes. You need to convert the RPU File from Profile 5 to Profile 8 and then inject it back into the MKV File.
Profile 5 is DV Only, which has no Fallback to HDR10. So in case you play this File (with Profile 5) on a non-dv TV, you will have no Picture or maybe a Picture which will not shown correct.
Thats bc you need to convert it to Profile 8. Profile 8 has a Fallback to HDR and can be played on every player.
Cilow is offline   Reply With Quote
Old 2nd January 2022, 21:37   #19  |  Link
von Suppé
Registered User
 
von Suppé's Avatar
 
Join Date: Dec 2013
Posts: 640
Not having such a file myself, but I understand profile 5 is used for streaming services. It indeed has no backwards compatibility and uses DV's own IPTPQc2 color space.

Converting RPU from profile 5 to 8.1 and injecting it back, I wonder about what HDR10 baselayer it's injected into. Can this be any baselayer (recoded or not) from a different source, like UHDBD? In other words, is RPU interchangable between (a certain number of) profiles the video is deliverd in?
von Suppé is offline   Reply With Quote
Old 3rd January 2022, 19:51   #20  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,878
Quote:
Originally Posted by von Suppé View Post
Not having such a file myself, but I understand profile 5 is used for streaming services. It indeed has no backwards compatibility and uses DV's own IPTPQc2 color space.

Converting RPU from profile 5 to 8.1 and injecting it back, I wonder about what HDR10 baselayer it's injected into. Can this be any baselayer (recoded or not) from a different source, like UHDBD? In other words, is RPU interchangable between (a certain number of) profiles the video is deliverd in?
8.1 requires a HDR-10 base layer. I doubt it matters much what the source is, as long as it is high quality and frame-synced to the Profile 5 content as long as the HDR-10 is derived from the DoVi master. If it's a different grade, metadata translation wouldn't be enough.

That said, why? Profile 5 is capable of somewhat better compression efficiency than 8.1, and is a lot more compatible. The only real advantage of 8.1 is that the file is backwards-compatible to HDR-10 displays without any DoVi support.
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner 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 21:16.


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