View Full Version : [DDVT Tool] Dolby Vision RPU Demuxing / Injecting / Editing.
zomorf
20th March 2024, 02:49
Also make sure you select the video file first when you're loading it in the program cause if you click on the rpu file first, it won't recognize it.
I'm dragging an mkv file with HDR onto the Hybrid script. So I dont have the RPU file of the old extract and inject method.
I'll try a few more things later today when I get to the PC.
Once again thanks.
zomorf
20th March 2024, 11:40
OK solved... I'm sure before you could drag a file onto the SCRIPT name before and it would load... I was doing this... in versions 0.53 ???
NOW loading/running the HYBRID script and then dragging the file into the window solved the problem...
Sorry for the frustration but finally got it sorted... just when I was dragging the file onto the HYBRID script in file explorer etc it loaded the filename and I pressed enter presuming it knew the filename...
Dumb questions over and out :) Happily making Hybrids again...
cool advertise
24th March 2024, 17:25
to -QfG-
I would like to point out, that the DDVT_MKVTOMP4.cmd script of your tool, when converting an mkv file that has chapters, to mp4, loses the chapters (discard chapters) in the conversion...
I had reported it on 6th February 2024, but received no reply.
Can you fix it?
AgentXXL
31st March 2024, 20:23
Version 2.1.1 of dovi_tool was released last week and it looks like it supports the AV1 codec. I personally don't use AV1 widely yet, but would be nice to do some comparisons with DV/HDR10+ injected HEVC. I might just try dropping the new version into the DDVT tools folder but not sure if it needs further refinement of the DDVT scripts.
guest
2nd April 2024, 05:05
Version 2.1.1 of dovi_tool was released last week and it looks like it supports the AV1 codec. I personally don't use AV1 widely yet, but would be nice to do some comparisons with DV/HDR10+ injected HEVC. I might just try dropping the new version into the DDVT tools folder but not sure if it needs further refinement of the DDVT scripts.
Maybe not...
https://forum.doom9.org/showthread.php?p=1999834#post1999834
anta777
27th April 2024, 09:32
It is possible to find out, having a release in the 8th profile, whether the rpu in it is real or obtained by converting these utilities from the 5th profile
Atlantis
30th April 2024, 17:49
I just used version 0.63.1. You have removed the ability to output mkv in the Injector?
AgentXXL
1st May 2024, 17:31
I just used version 0.63.1. You have removed the ability to output mkv in the Injector?
You have to edit the script and set the options as per this post:
https://forum.doom9.org/showthread.php?p=1997844#post1997844
I was still doing it manually as well, but the new Hybrid script with drag and drop is working extremely well so I never use the manual method anymore.
frandan
13th May 2024, 09:51
Good morning,
i began to use DDVT Tool for dovi rip a few months ago, but for the first time i saw in mediainfo report the voice "no metadata compression" as you can see in the following text
"HDR format : Dolby Vision, Version 1.0, Profile 8.1, dvhe.08.06, BL+RPU, no metadata compression, HDR10 compatible / SMPTE ST 2086, Version HDR10, HDR10 compatible"
What does it mean? Did i make some mistake?
Thanks in advance for your answer
von Suppé
13th May 2024, 18:05
No, I don't think you made a mistake. This seems a default note stating that the RPU binaries in the SEI messaging aren't further compressed.
I don't think I've ever seen otherwise. Just ignore it, things are OK.
matey
21st May 2024, 22:44
The other not-so-official way to change the Codec ID is to use HxD to edit the converted mp4.
Open the mp4 in HxD, use the Find (Ctrl+F) function and search for hev1 as a Text-string, then simply write dvhe over hev1 and Save the file.
hi @Fuso
have you figured out a way to convert mkv DV files so they work on older & newer LG tv's? I have a C8 & a A2. currently I am converting to m2ts using tsmuxer but that only works for the C8. I am not able to use dovi tools as my pc is a linux ubuntu arm64 so I haven't found a way to convert to a format compatible with both tvs.
guest
22nd May 2024, 06:18
hi @Fuso
have you figured out a way to convert mkv DV files so they work on older & newer LG tv's? I have a C8 & a A2. currently I am converting to m2ts using tsmuxer but that only works for the C8. I am not able to use dovi tools as my pc is a linux ubuntu arm64 so I haven't found a way to convert to a format compatible with both tvs.
I have an older LG TV, and the only way I could play a DV was to convert with tsmuxer, but the "seeking" during playback was horrible.
But then I found an app that was my "Saviour", and it's not DDVT.
The DV's also have to .mp4 to play on an LG TV, or some other device would be needed.
But most of these apps are Windows based, so I think you might have maybe dual boot your PC, so you can keep your Linux, and have Windows to do this stuff.
Or get a 2nd PC.
matey
22nd May 2024, 11:25
I have an older LG TV, and the only way I could play a DV was to convert with tsmuxer, but the "seeking" during playback was horrible.
But then I found an app that was my "Saviour", and it's not DDVT.
The DV's also have to .mp4 to play on an LG TV, or some other device would be needed.
But most of these apps are Windows based, so I think you might have maybe dual boot your PC, so you can keep your Linux, and have Windows to do this stuff.
Or get a 2nd PC.
hi @TDS
I have a windows pc too. can you please let me know which app you are referring to? is this for converting or playback? does it work for old & new LG tv's?
guest
22nd May 2024, 11:29
hi @TDS
I have a windows pc too. can you please let me know which app you are referring to? is this for converting or playback? does it work for old & new LG tv's?
Happy to help...
I will send you a PM shortly.
hi @Fuso
have you figured out a way to convert mkv DV files so they work on older & newer LG tv's? I have a C8 & a A2. currently I am converting to m2ts using tsmuxer but that only works for the C8. I am not able to use dovi tools as my pc is a linux ubuntu arm64 so I haven't found a way to convert to a format compatible with both tvs.
I'm currently mux them to Profile 5 with Base HDR/HDR10+, with Codec ID hev1. For many people is not "the way", but for me it does the job for my tv sets.
But I think I've found a universal format for playing on a non-DV TVs, older LGs, newer LGs - the so called fake Profile 5
HDR format : Dolby Vision, Version 1.0, dvhe.05.06, BL+RPU / SMPTE ST 2086, HDR10 compatible
Codec ID : hev1
Container is mp4.
This file plays in HDR on a Samsung JS8000 (2015), AU9072 (2021), in Dolby Vision on LG B8 and C2.
vitaloque
14th June 2024, 07:30
Hi,
Small feature request. Add an option 'Use DV border' option to Hybrid script. It is often detetmined small border difference HDR vs DV RPU, and I have to manullay correct active area to match RPU. And for TV series it surely takes too much time.
So I'd like to press some number and output borders are automatically set to the one from RPU.
Thanks in advance.
Titounet1965
18th June 2024, 18:31
Hi there
little bug repport
the scrpits fails if the filename contains the letter &
NeverExists
22nd June 2024, 06:24
Hi, has this been abandoned? no new release for 5 months. seems like it is..
-QfG-
25th June 2024, 16:22
Nothing to change (no bugs kwown).
the scrpits fails if the filename contains the letter &
the letter "&" is a command in batch. you must rename this file.
NeverExists
30th June 2024, 05:33
Nothing to change (no bugs kwown).
the letter "&" is a command in batch. you must rename this file.
How exactly can I set it to mux into an mkv stream? I usually take the Dolby Vision rpu from the web release and combine it with the video from the 4k Blu-ray, but now everything has changed. do I still use demuxer to get the rpu? do I still use the injector to make my mkv? or do I use hybrid? and where the hell is the mux into mkv option?
wow! Nobody can answer this??
AgentXXL
10th July 2024, 19:00
How exactly can I set it to mux into an mkv stream? I usually take the Dolby Vision rpu from the web release and combine it with the video from the 4k Blu-ray, but now everything has changed. do I still use demuxer to get the rpu? do I still use the injector to make my mkv? or do I use hybrid? and where the hell is the mux into mkv option?
wow! Nobody can answer this??
Most of us now use the hybrid script with its drag'n'drop method. You can still do it manually via the demuxer. For the mux into mkv option, you need to edit the injector script and set the variable MUXINMKV to YES.
Explained here: https://forum.doom9.org/showthread.php?p=1997844#post1997844
NeverExists
11th July 2024, 00:26
Most of us now use the hybrid script with its drag'n'drop method. You can still do it manually via the demuxer. For the mux into mkv option, you need to edit the injector script and set the variable MUXINMKV to YES.
Explained here: https://forum.doom9.org/showthread.php?p=1997844#post1997844
I still don't know where or how to edit the injector script. What is the script file called exactly? I looked and I don't see anything named injector.
AgentXXL
12th July 2024, 18:40
I still don't know where or how to edit the injector script. What is the script file called exactly? I looked and I don't see anything named injector.
The file you need to edit is called DDVT_INJECTOR.cmd which will reside wherever you extracted the DDVT rar file to. You can edit it in Notepad on Windows.
thegrunge
15th July 2024, 20:19
Hello I'm not sure I understand how it works, when I run the cmd it doesn't find any files.
https://ibb.co/M6zWGY7
thegrunge
15th July 2024, 21:34
Hello I'm not sure I understand how it works, when I run the cmd it doesn't find any files.
https://ibb.co/M6zWGY7
Ok I understood that you have to drag the file onto the cmd. but how to remove the hdr10 now? It's juste remove DV.
It's not that I don't like HDR10, but even with compatible devices the image remains darker than without HDR10 for tha same movie
Atlantis
17th July 2024, 01:53
Sorry, I can't read every page. What is the situation with AV1? I just tried to inject RPU into an AV1 file and it didn't work. Gives a 0 size file.
Boulder
17th July 2024, 10:37
Sorry, I can't read every page. What is the situation with AV1? I just tried to inject RPU into an AV1 file and it didn't work. Gives a 0 size file.
Dovi_tool cannot be used with AV1, so you can inject the RPU only during the encoding phase (with svt-av1-psy).
Atlantis
17th July 2024, 10:49
Thank you.
AgentXXL
18th July 2024, 16:56
Ok I understood that you have to drag the file onto the cmd. but how to remove the hdr10 now? It's juste remove DV.
It's not that I don't like HDR10, but even with compatible devices the image remains darker than without HDR10 for tha same movie
You can't remove HDR if you want to keep DV - DV is additional metadata that is applied to the base HDR10 layer. If you're seeing image issues, it's likely your display is not calibrated for DV content.
Wolfy59
11th August 2024, 11:30
Hi, first of all I'd like to thank you for all the work you've done here, which makes our day-to-day work so much easier. I'd like to know if there's a reason why the P5 profile is no longer supported?
Thank you
ReciprocalUniverse
12th August 2024, 19:48
OUTSTANDING! Just Bravo!!! Thank you so much for these great tools!!
Tom Roper
AngelGraves13
18th August 2024, 08:19
If I'm injecting a DV layer from a web-dl into a remux and the lengths don't match, do I apply a negative offset if the RPU is shorter by 22 frames? I also don't really have a way to verify the DV stream after as I can't actually play the DV layer, so how would I know if something is out of sync?
GodzilaAvenger
18th August 2024, 21:58
You have to compare the web-dl source video with the remux to figure out the frame sync. If the web-dl is e.g. 10 frames ahead then set the delay in DDVT to -10, if it's 10 frames behind set it to 10.
Arkana
20th August 2024, 15:38
https://i.postimg.cc/Wqj5B881/screenshot-780.png (https://postimg.cc/Wqj5B881)
why it happening? How to fix it?
AngelGraves13
20th August 2024, 22:10
You have to compare the web-dl source video with the remux to figure out the frame sync. If the web-dl is e.g. 10 frames ahead then set the delay in DDVT to -10, if it's 10 frames behind set it to 10.
Is there anyway to know if the hybrid remux I made is incorrect? Like would the colors be off or something if I did it wrong?
Ok, so my UHD Remux of The Nun (2018) is 138932 frames and the Web-DL DV is 138910 so I would delay "+22" frames by my understanding and everything will line up correctly? Is that all there is to it? I wish the frame mismatch would be automatically adjusted if that's the case.
What about "matchL6 metadata"?? What's that for exactly and when would one need enable it?
AngelGraves13
20th August 2024, 22:12
https://i.postimg.cc/Wqj5B881/screenshot-780.png (https://postimg.cc/Wqj5B881)
why it happening? How to fix it?
Looks like two different masterings if I'm not mistaken so you can't make a hybrid of the two.
Hellboy.
21st August 2024, 18:21
Is there anyway to know if the hybrid remux I made is incorrect? Like would the colors be off or something if I did it wrong?
Ok, so my UHD Remux of The Nun (2018) is 138932 frames and the Web-DL DV is 138910 so I would delay "+22" frames by my understanding and everything will line up correctly? Is that all there is to it? I wish the frame mismatch would be automatically adjusted if that's the case.
What about "matchL6 metadata"?? What's that for exactly and when would one need enable it?
There could be different frames at the end of the video.
GodzilaAvenger
21st August 2024, 22:19
Is there anyway to know if the hybrid remux I made is incorrect? Like would the colors be off or something if I did it wrong?
Ok, so my UHD Remux of The Nun (2018) is 138932 frames and the Web-DL DV is 138910 so I would delay "+22" frames by my understanding and everything will line up correctly? Is that all there is to it? I wish the frame mismatch would be automatically adjusted if that's the case.
What about "matchL6 metadata"?? What's that for exactly and when would one need enable it?
Looking at the number of frames is not enough to figure out the sync, the web-dl may have a few additional frames of a logo or something at the beginning, while also having cut out a few seconds at the end. In your case the remux may only have extra frames at the end which means you should leave the delay at 0. This is very often the case which is why the mismatch is not automatically adjusted
The main thing DV does is dynamically adjust scene brightness, so if your RPU is out of sync with the base video layer you may see weird brightness changes slightly before or after scene cuts, depending on the scene of course.
One way to check your remux is to extract the RPU from it using the Demuxer script, and then using the Fileinfo script on it. This gives you all the scene cut frames in the RPU, which you can then use to check if they match the actual video.
I don't think the L6 data matters, if I remember correcrly that's what quietvoid said a while back in this thread.
AngelGraves13
31st August 2024, 08:21
Well that's confusing.
Ok...let's say I downloaded a DV Hybrid of a x265 rip and want to only save the DV layer that's already synced to a 4K UHD rip and inject it into a 4K UHD Remux. If the video is cropped but mine is standard 2160p, do I have to enable anything when saving the DV layer? It seems no matter what I select for Convert, or crop rpu it always says the RPU and Video don't match because of the video borders, but the file output says "match with video"
Filename = [Red Sparrow 4K (2018).mkv]
Video Info = [Resolution = 3840x2160] [Codec = HEVC-10Bit-YUV-4:2:0] [Frames = 201740] [FPS = 23.976]
HDR Info = [HDR]
Borders = [LEFT=0 px], [TOP=280 px], [RIGHT=0 px], [BOTTOM=280 px] [NOT MATCH WITH RPU]
== RPU INPUT ===========================================================================================================
Filename = [RPU.bin]
RPU Info = [DV Profile = 8] [CM Version = 2.9] [Frames = 201740]
Borders = [LEFT=0 px], [TOP=0 px], [RIGHT=0 px], [BOTTOM=0 px] [NOT MATCH WITH VIDEO]
== FILE OUTPUT =========================================================================================================
Filename = [Red Sparrow 4K (2018)_[BL+RPU].hevc]
RPU Info = [DV Profile = 8] [CM Version = 2.9] [Frames = 201740]
Borders = [LEFT=0 px], [TOP=280 px], [RIGHT=0 px], [BOTTOM=280 px] [MATCH WITH VIDEO]
Delay = [0 FRAMES]
So for the demuxer...just leaving everything untouched is fine?
1. SAVE HDR BL : [NO]
2. SAVE RPU : [YES]
3. CONVERT RPU : [LEAVE UNTOUCHED]
4. CROP RPU* : [NO] *Whenever the final result doesn't have letterboxed bars set to [YES].
GodzilaAvenger
31st August 2024, 09:29
The RPU contains border information for each frame, what's called L5 data. It doesn't matter if you change it when you are saving it using the demuxer or when injecting it using the injector. At the end of the day the L5 data of the injected RPU should match the borders of the video it's injected into.
In your example above, DDVT is telling you that the borders on the RPU (0) don't match the borders on the video (280), so it will rewrite the L5 data before injecting the RPU so that it matches the video. I generally save the RPU as is and apply necessary changes when injecting it.
I suggest looking at dovi_tool's documentation, which is what DDVT uses. Hopefully that can clear things up.
AngelGraves13
1st September 2024, 04:23
Thanks!
Keemy
3rd September 2024, 10:10
Is there a version of this script for Macos or any equivalents?
-QfG-
9th September 2024, 21:32
Filename = [Red Sparrow 4K (2018).mkv]
Video Info = [Resolution = 3840x2160] [Codec = HEVC-10Bit-YUV-4:2:0] [Frames = 201740] [FPS = 23.976]
HDR Info = [HDR]
Borders = [LEFT=0 px], [TOP=280 px], [RIGHT=0 px], [NOT MATCH WITH RPU]
[B]NOT MATCH WITH RPU tells you, that the border entries in the RPU are incorrect.
== RPU INPUT ===========================================================================================================
Filename = [RPU.bin]
RPU Info = [DV Profile = 8] [CM Version = 2.9] [Frames = 201740]
Borders = [LEFT=0 px], [TOP=0 px], [RIGHT=0 px], [NOT MATCH WITH VIDEO]
[B]NOT MATCH WITH VIDEO tells you, that the border entries in the RPU are incorrect.
== FILE OUTPUT =========================================================================================================
Filename = [Red Sparrow 4K (2018)_[BL+RPU].hevc]
RPU Info = [DV Profile = 8] [CM Version = 2.9] [Frames = 201740]
Borders = [LEFT=0 px], [TOP=280 px], [RIGHT=0 px], [BOTTOM=280 px] [MATCH WITH VIDEO]
Delay = [0 FRAMES]
Blue: This is your BL Layer (HDR Stream) and the discovered borders.
Red: This is the section from your RPU with the discovered borders.
Green: Your final settings for injecting with corrected borders in the RPU to match the HDR Stream
lemaireus
21st September 2024, 11:53
I cannot work with a command prompt interface, but wish to use DDVT tools to extract and later inject the Dolby Vision metadata in my x265 encodes of 4k blu-rays. However, each time I start DDVT_DEMUXER.cmd, the cmd window flashes "waiting for 30 seconds, press a key to continue . . .". Thereafter, when I drag and drop the MKV file onto the DDVT_DEMUXER.cmd window, the cmd window instantly disappears. In fact, all the DDVT_XXX.cmd files, with the exception of DDVT_HYBRID.cmd and DDVT_OPTIONS.cmd, perform the same disappearing act after 30 seconds, or the moment when I drag and drop an MKV file onto the cmd window. Here's how the cmd window looks before disappearing:
https://i.postimg.cc/3wSVzGBD/DDVT-Tool-Error.jpg
I am unable to figure out exactly what it is that I might be doing wrong. Any help would be much appreciated. Thank you.
lemaireus
21st September 2024, 13:58
Elementary, dear Watson, elementary. Some wonderful, generous, and precisely articulated help in PMs provided the correct diagnosis. I should have dragged the mkv file over the DDVT_DEMUXER.cmd script. Instead, I was double clicking DDVT_DEMUXER.cmd and dragging the file on the cmd window that opened thereafter. That is the first step out of the way; now to the next. Many thanks for helping out.
lemaireus
22nd September 2024, 08:21
I succeeded in getting my first Ripbot encode with Dolby Vision metadata, all thanks to the wonderfully generous forum members walking me through in PMs and, in the Ripbot forum, thanks to Ryushin. Once my elementary but fundamental mistake became clear, the rest was a cakewalk.
Ryushin and my PM-ing friends, much, much gratitude.
sk2316
27th September 2024, 05:20
i'm newbie for ddvt tool
i would like to try this tool
1.sdr file with sharp picture
2.hdr10 file with worse picture
can i extract hdr10 meta and inject to sdr file?
GodzilaAvenger
27th September 2024, 09:08
DDVT is for working with Dolby Vision metadata and adding it to HDR10 or extracting it. It can't do what you want. I'm not sure if anything can. HDR10 uses the 10-bit BT.2020 colorspace whereas SDR uses the BT.709 colorspace.
lemaireus
28th September 2024, 06:47
Now that I have had the time to work with DDVT tools, I cannot be thankful enough: these scripts are exactly what so many of us had been missing since the introduction of Dolby Vision. Thank you so very much -QfG- and quietvoid (and that is a lovely nick!). You guys have done such awesome work that even an old dog like me, who has the will but no longer the energy to learn new tricks, can work effortlessly in extracting and injecting Dolby Vision into my encodes. Much, much gratitude for these incredibly useful and awesomely user-friendly batch scripts.
sk2316
28th September 2024, 10:57
DDVT is for working with Dolby Vision metadata and adding it to HDR10 or extracting it. It can't do what you want. I'm not sure if anything can. HDR10 uses the 10-bit BT.2020 colorspace whereas SDR uses the BT.709 colorspace.
thank for quick reply
hdr10(not hdr10+) is not metadata? it's just have 10-bit BT.2020 colorspace
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.