View Full Version : [DDVT Tool] Dolby Vision RPU Demuxing / Injecting / Editing.
fkid
14th June 2022, 14:32
-v0.46
*Shows RPU/EL Layer Information in Injector (Profile, CM Version, Frames)
*Updated dovi_tool to v1.5.4.
Thank you for continued development. Still see the minor typo on line 371 of INJECTOR.cmd
if "%P4Extract%%MUXINMP4%%HDR10P_exist%"=="TRUEYESYES" set "HEADER_FILENAME=%~n1_[HDR10+ INJECTED].mp4"
should be this I think?
if "%MP4Extract%%MUXINMP4%%HDR10P_exist%"=="TRUEYESYES" set "HEADER_FILENAME=%~n1_[HDR10+ INJECTED].mp4"
SlimSwan
14th June 2022, 20:21
Delete this post, my mistake.
-QfG-
15th June 2022, 19:16
if "%MP4Extract%%MUXINMP4%%HDR10P_exist%"=="TRUEYESYES" set "HEADER_FILENAME=%~n1_[HDR10+ INJECTED].mp4"
Thank you, i will fix it in the next update.
Original time is 1 h 5 min.
I use latest script.
FPS of video go to 25 I"dont know why?
Have you set "Mux in mkv" to "yes", or have you muxed the file by yourself?
In the last case, in mkvtoolnix by Video in the middle right box set the framerate manually to 24000/1001 and check the "Also Fix Bitstream" Button.
Or simply use the "Mux in MKV" Function from the tool.
EDIT:
-v0.46 Fixed
*Bugfixes
Blue_MiSfit
15th June 2022, 21:44
The above is clearly pirated content, and the post has been removed. You must not discuss pirated content on doom9.
Bioba
21st June 2022, 12:50
Hello,
I am writing to better understand what this tool does.
I read that it extracts and injects metadata for Dolby Vision, so I could extract the metadata from an untouched video file and then inject it into the same compressed video file?
Thanks to everyone who will explain me better :-)
Rozin
21st June 2022, 18:31
How can i replace a profile 5 dolby with its profile 8.1 version. Profile 5 video plays with pink green tint. That's why I'm trying to convert the profile version. Or someone could help me to play profile 5 files without any tints on a dolby profile 5 support less device
nevcairiel
21st June 2022, 19:07
You can't really convert profile 5 to profile 8.1, since it has no compatible base layer.
-QfG-
21st June 2022, 19:58
DV Profile 5 files uses the ITP Colorange instead of BT.2020. You can't edit this.
Rozin
21st June 2022, 21:44
Ok got it.But Is there any way to play profile 5 files on pc. Like tweaking potplayer settings or using madvr. They show pink, green shaded all over. Or do i have to buy $1000 oled tv to play a profile 5?
quietvoid
21st June 2022, 22:06
Ok got it.But Is there any way to play profile 5 files on pc. Like tweaking potplayer settings or using madvr. They show pink, green shaded all over. Or do i have to buy $1000 oled tv to play a profile 5?
Use mpv with --vo=gpu-next.
Rozin
21st June 2022, 22:17
Use mpv with --vo=gpu-next.
What does this do? Passthrough profile 5 data or dropping it ? Please explain kind sir for I'm noob
Rozin
22nd June 2022, 10:13
You can't really convert profile 5 to profile 8.1, since it has no compatible base layer.
Dolby Vision, Version 1.0, dvhe.05.06, BL+RPU. This is the dolby encoded into the file . I can't do anything to convert to 8.1? BL means base layer ryt?
rwill
23rd June 2022, 07:31
Dolby Vision, Version 1.0, dvhe.05.06, BL+RPU. This is the dolby encoded into the file . I can't do anything to convert to 8.1? BL means base layer ryt?
I you manage to decode the Profile 5 to HDR10 and then convert the RPU to match that you could create a Profile 8.1 stream in theory. But chances are high that if your device does not support Profile 5 it also does not support Profile 8.1.
Bioba
23rd June 2022, 08:29
Hi,
I did a test with a film, I extracted the RPU.bin file with the demuxer, compressed the film, I put the RPU file in the correct folder.
I tried to inject the DV but I get an error and the script closes immediately.
I took a screenshot.
Rozin
23rd June 2022, 12:48
I you manage to decode the Profile 5 to HDR10 and then convert the RPU to match that you could create a Profile 8.1 stream in theory. But chances are high that if your device does not support Profile 5 it also does not support Profile 8.1.
Actually my laptop is Legion 5 pro which has dolby vision specified in the lenovo website and the lap came with dolby app preinstalled with dolby video extensions. I know the display is lcd (But 10bit) and its not the right hardware for dovi, but a license is a license. i dont understand why profile5 is not being decoded. is lenovo selling a 'pseudo' dolby vision license. ?
fkid
23rd June 2022, 18:58
Hi,
I did a test with a film, I extracted the RPU.bin file with the demuxer, compressed the film, I put the RPU file in the correct folder.
I tried to inject the DV but I get an error and the script closes immediately.
I took a screenshot.
This happens to me from time to time when file or folder has [] or () or some other characters in the path. It may be a limitation of running using explorer context menu? Any idea @-QfG-? I just temporarily rename the video file and/or folder to something short and simple, do the DEMUX/INJECT, then rename file/folder back. :)
Bioba
24th June 2022, 20:38
This happens to me from time to time when file or folder has [] or () or some other characters in the path. It may be a limitation of running using explorer context menu? Any idea @-QfG-? I just temporarily rename the video file and/or folder to something short and simple, do the DEMUX/INJECT, then rename file/folder back. :)
Thanks!:D
-QfG-
25th June 2022, 05:45
This happens to me from time to time when file or folder has [] or () or some other characters in the path. It may be a limitation of running using explorer context menu? Any idea @-QfG-? I just temporarily rename the video file and/or folder to something short and simple, do the DEMUX/INJECT, then rename file/folder back. :)
The problem by this solution is, if the tool renames anything and you close the tool during process, or there is any error during process, the tool don't renamed the folder / Files back.
EDIT:
-v0.47
*INJECTOR supports custom.json files (copy edited custom.json to video source dir).
custom json scripts processed first!
*INJECTOR New function "Match L6 Metadata".
L6 Metadata will be edited for matching HDR stream Metadata.
*INJECTOR creates now a small Logfile by muxing.
*FRAMEINFO shows more informations about the RPU.
*Updated dovi_tool to v1.5.5.
fkid
26th June 2022, 03:36
The problem by this solution is, if the tool renames anything and you close the tool during process, or there is any error during process, the tool don't renamed the folder / Files back.
EDIT:
-v0.47
*INJECTOR supports custom.json files (copy edited custom.json to video source dir).
custom json scripts processed first!
*INJECTOR New function "Match L6 Metadata".
L6 Metadata will be edited for matching HDR stream Metadata.
*INJECTOR creates now a small Logfile by muxing.
*FRAMEINFO shows more informations about the RPU.
*Updated dovi_tool to v1.5.5.
Thank you for the update! Just curious, under what scenario is the new feature used? *INJECTOR New function "Match L6 Metadata".
-QfG-
26th June 2022, 17:58
Some releases have a RPU with l6 metadata over 10.000. The tool will not mux them, because 10.000 is the max value there. If you have this problem simply set L6 Metadata to the same values how the HDR stream have.
fkid
27th June 2022, 13:51
Some releases have a RPU with l6 metadata over 10.000. The tool will not mux them, because 10.000 is the max value there. If you have this problem simply set L6 Metadata to the same values how the HDR stream have.
That's a great idea. Thanks for clarifying. :)
-QfG-
10th July 2022, 10:04
-v0.47a
*Updated hdr10plus_tool to v1.3.1.
*DEMUXER Added feature to disable validation of HDR10+ extraction.
Meow
22nd July 2022, 21:10
Firstly, thanks for the script, it's really nice how it simplifies the usage of the underlying tools.
I have a problem with some videos though.
Sometimes it works perfectly fine, but sometimes, I try to convert HDR10+ to DolbyVision but something goes wrong. I notice the brightness changing at clearly the wrong times.
Here's an example the error happened with.
Firstly I open ddvt_demuxer and continue with these settings:
https://i.imgur.com/iFo7yNX.png
I get my RPU.bin and then I run ddvt_injector. I get warnings about the video and RPU borders not being a match, I really don't know what to do about that.
I have been able to get a working end results even with those warning popping up.
I continue with the following settings:
https://i.imgur.com/HuOAT69.png
Should I do something about the borders? I wonder if the borders are saying they're a mismatch because the video has a fullscreen logo at the very start, but after that it's just the TV show with black bars.
Or maybe I should change the timings by adding/removing delay? But the tools tells to me that the video and RPU have same length (1 frame difference) so I really don't know how much I should adjust the delay then.
Any help would be appreciated, thanks.
-QfG-
28th July 2022, 00:59
You must do nothing, the tool set the video borders correctly by himself. Yo see under "VIDEO INPUT" the Borders of the HEVC Base Layer. Under "FILE OUTPUT" you see the Borders set in the RPU during muxing.
Match L6 Metadata can be turned off, this function is only necessary if you have errors during muxing (Error Message is "RPU can't mux into stream, because 10000 is the max value for ...").
Meow
28th July 2022, 11:35
You must do nothing, the tool set the video borders correctly by himself. Yo see under "VIDEO INPUT" the Borders of the HEVC Base Layer. Under "FILE OUTPUT" you see the Borders set in the RPU during muxing.
Match L6 Metadata can be turned off, this function is only necessary if you have errors during muxing (Error Message is "RPU can't mux into stream, because 10000 is the max value for ...").
Thanks for the answer. And I didn't touch the borders or the delay timing, I continued with the settings shown in the screenshots. But still, I get brightness changes at the wrong times. So I guess something else goes wrong, or could this be caused by the L6 metadata option? I'll try without the L6 metadata option when I have time and edit this post saying what happened.
-QfG-
29th July 2022, 11:21
No, the Delay you must set manually, there is no function for this. Here is a little Video from me how you can find out the delay.
https://www.youtube.com/watch?v=gVZL1vwXFAg
von Suppé
29th July 2022, 11:58
I read an interesting question somewhere about RPU and framerate.
Can RPU from a 23.976 video be used for 24 fps target video (and vice versa)? It seems RPU works with framenumbers. Or is there more to it?
quietvoid
29th July 2022, 18:39
Can RPU from a 23.976 video be used for 24 fps target video (and vice versa)? It seems RPU works with framenumbers. Or is there more to it?It only works with frame numbers.
The content frame rate doesn't matter.
von Suppé
30th July 2022, 06:45
Very nice to know. Thanks, quietvoid.
NeverExists
1st August 2022, 00:52
No, the Delay you must set manually, there is no function for this. Here is a little Video from me how you can find out the delay.
https://www.youtube.com/watch?v=gVZL1vwXFAg
is there any other tool we can use to find out the delay? This tool in your video does not work at all for me. In your video, it takes a few seconds for the file to load and the video to pop up for editing, but I wait 1 hour and it still does not pop up. I did everything exactly like your video but it counts the file size very slowly after I press Queue.
von Suppé
2nd August 2022, 12:10
Maybe it's easier to just load the two videos in another player.
For identifying same frames and determining difference in framecount, I often use two simultaneous instances of Virtualdub. Works like a charm.
Meow
2nd August 2022, 15:38
No, the Delay you must set manually, there is no function for this. Here is a little Video from me how you can find out the delay.
https://www.youtube.com/watch?v=gVZL1vwXFAg
In that video you are getting matching frames from two different video files and seeing what their different in frames is? Yes, that's easy with any video player. But I was asking about something different.
In my case I have just the one video file. It's HDR10+, I try to convert it to DV with the steps shows in my previous post, but I get brightness changes at the wrong times.
I guess I should use the tool to set a delay? But I don't know how I could get the delay right without trial and error, and well that would take forever.
Or could something else be going wrong? I could send you the video file I'm having problems converting, but I understand if you don't want to spend time testing for me.
Balling
4th August 2022, 23:53
I read an interesting question somewhere about RPU and framerate.
Can RPU from a 23.976 video be used for 24 fps target video (and vice versa)? It seems RPU works with framenumbers. Or is there more to it?
It depends on how the convertion was done. Where did you find that? All modern releases from Disney/Marvel are 24.000 going forward from Disney+. On Blu-ray in many cases 24.000 is also used. ALL production of real Hollywood is done in integer framerate anyway. 24/1.001 is a thing of old old past, many people fight to rule it out.
You would think 1 dropped frame every 41 seconds is not that important, but it accumulates. If it done with optic flow, it may be even worse.
AgentXXL
5th August 2022, 03:14
No, the Delay you must set manually, there is no function for this. Here is a little Video from me how you can find out the delay.
https://www.youtube.com/watch?v=gVZL1vwXFAg
UPDATE: I'm blind... didn't see the 'Mux in mkv stream' option in Injector... just tried one of the titles that were failing and it looks succssful! Thanks again for all the efforts you and others have put into these tools and scripts. Ignore the rest of this message, left for posterity to show my impatience and not learning to read what's on screen. :D
Thank you for these scripts! I had stumbled across dovi_tool (thanks @quietvoid!) and was doing it manually with ffmpeg and it. Alas with both the manual method or your scripts, I still am encountering a problem with around 75% of the titles I try this with.
I'm probably overlooking something obvious but I'm having lots of failed attempts to create hybrids with both HDR and DV playback. The extraction/injection seems to work perfectly, but when I try to remux the output.hevc file with audio and subtitles, they are often way out of sync.
This happens even when the source HDR and DV files have the exact same frame count and audio. After extraction and injection of the DV RPU into the HDR.HEVC, I've tried remuxing with audio and subtitles from either of the source files, or sometimes from a Blu-ray source with the same runtime.
I'm remuxing using MKVToolnix GUI and just can't seem to figure out what I'm missing. I noticed the frame delay option so took a look at your video. While that may help with videos with different frame numbering, it doesn't when both source files have the same frame numbering and count.
Suggestions? Has anyone done a guide or video walkthrough of the process? My Google-fu is weak on this topic so any pointers would be appreciated.Thanks!
von Suppé
5th August 2022, 11:59
It depends on how the convertion was done.
First off, I did not mention conversion. It's simply possible to have same program from two different framerate sources.
You would think 1 dropped frame every 41 seconds is not that important...
Even when changing 23.976 <--> 24 framerate, I don't understand why framedropping would come into play. Where would they be dropped? Just rewriting timestamps would keep native frames and same framecount.
Framedropping as I understand it, is skipping certain SMPTE timecodes to keep up with time. Since they merely refer to frames, skipping them will not skip the frames themselves.
But maybe I'm hugely misinterpreting your post and/or missing something.
von Suppé
5th August 2022, 12:35
...but when I try to remux the output.hevc file with audio and subtitles, they are often way out of sync.
This happens even when the source HDR and DV files have the exact same frame count and audio.
Other than having the same framecount, have you checked in all cases that they also have the same framerate? I don't know what exactly you're crossmuxing but audio and video from different framerate sources will go out of sync. Possibly subs too.
About MKVToolNix GUI. Should you run Windows 8.1 or lower, don't use latest version https://forum.doom9.org/showthread.php?t=184092
GodzilaAvenger
6th August 2022, 00:45
Can DDVT add FEL to a re-encoded BL?
To be more specific, I have two mkvs, one remux (DV 07.06) and another re-encoded HDR10 BL. I was wondering if I could use DDVT to grab the FEL from the remux and add it to the BL of the re-encode, or would this just produced messed-up results?
fkid
6th August 2022, 00:45
UPDATE: I'm blind... didn't see the 'Mux in mkv stream' option in Injector... just tried one of the titles that were failing and it looks succssful! Thanks again for all the efforts you and others have put into these tools and scripts. Ignore the rest of this message, left for posterity to show my impatience and not learning to read what's on screen. :D
Thank you for these scripts! I had stumbled across dovi_tool (thanks @quietvoid!) and was doing it manually with ffmpeg and it. Alas with both the manual method or your scripts, I still am encountering a problem with around 75% of the titles I try this with.
I'm probably overlooking something obvious but I'm having lots of failed attempts to create hybrids with both HDR and DV playback. The extraction/injection seems to work perfectly, but when I try to remux the output.hevc file with audio and subtitles, they are often way out of sync.
This happens even when the source HDR and DV files have the exact same frame count and audio. After extraction and injection of the DV RPU into the HDR.HEVC, I've tried remuxing with audio and subtitles from either of the source files, or sometimes from a Blu-ray source with the same runtime.
I'm remuxing using MKVToolnix GUI and just can't seem to figure out what I'm missing. I noticed the frame delay option so took a look at your video. While that may help with videos with different frame numbering, it doesn't when both source files have the same frame numbering and count.
Suggestions? Has anyone done a guide or video walkthrough of the process? My Google-fu is weak on this topic so any pointers would be appreciated.Thanks!
I also had seemingly random AV sync issues when doing manual muxing using MKVToolNix myself, even after troubleshooting, so started always using the built-in 'Mux in mkv stream' option and always works fine for me. Tricky to figure out why, but I'd say just use that. :)
von Suppé
6th August 2022, 06:56
Can DDVT add FEL to a re-encoded BL?
Adding FEL to recoded BL won't work. EL frame-types and order must exactly match those of BL. Recoding BL will destroy that.
@AgentXXL, @fkid
Don't know anymore where I've read it, but when muxing DV elementary streams with MKVToolNix GUI, I've learned to always set "Default duration/FPS" with proper value. Hope this is of any help.
GodzilaAvenger
6th August 2022, 08:49
Adding FEL to recoded BL won't work. EL frame-types and order must exactly match those of BL. Recoding BL will destroy that.
Thanks, I'm still learning about DV so could you please explain why the EL frame type and order must match the BL? My understanding is that when playing back a dual-layer track (BL+EL+RPU) separate HEVC decoders are launched for BL and EL, so if a re-encoded BL decodes to something nearly identical to what the original BL would decode to, shouldn't the new BL work with the EL? Is there any other way to re-encode the original file and keep the EL?
I saw this post (https://forum.makemkv.com/forum/viewtopic.php?p=113419#p113419) over at the MakeMKV forum and got curious about whether DDVT can be used to achieve the same result, or if a more involved process is needed.
von Suppé
6th August 2022, 10:27
Yeah, learning about DV seems endless. I can't tell you why the frametypes must match. Other than that, I also remember MakeMKV popping up a huge amount of sync errors. I don't know if the two issues are related or should be assessed separately.
Reading your link
You have to edit the FEL (has the nal unit) in the Rpu to reflect the hevc bl encode and that’s it.
sounds promisng, but I wouldn't know what's meant here. Maybe quietvoid cares to comment.
AgentXXL
6th August 2022, 23:08
Other than having the same framecount, have you checked in all cases that they also have the same framerate? I don't know what exactly you're crossmuxing but audio and video from different framerate sources will go out of sync. Possibly subs too.
About MKVToolNix GUI. Should you run Windows 8.1 or lower, don't use latest version https://forum.doom9.org/showthread.php?t=184092
So far using the 'Mux stream in mkv' option of injector has worked for every title I've tried. If the content has a Blu-ray release with DTS-HD or TrueHD, I try muxing their audio (and subtitles).
I've been successful doing that when the hybrid DV-HDR and the Blu-ray have the same runtime. If they are different runtimes, I use the delay options in MKVToolnix and have been successful so far.
I mainly use MKVToolnix from Linux, but also have it on my Win11 Pro system, the only Windows box I use. I primarily use Windows for gaming and HTPC, but occasionally for video editing when the tools/scripts are only made for it (like these scripts). It would be preferable to use scripts on Linux but converting these so they would work is beyond my skill level at the moment.
I note that injector uses MKVToolnix (mkvmerge) when asked to 'mux stream in mkv'. I'd like to learn more of the advanced functions available so I could do it manually on Linux if needed. I'll have to take a look through the injector script and see if I can decipher the mkvmerge options that it uses.
Regardless, thanks for the feedback.
GodzilaAvenger
6th August 2022, 23:57
Yeah, learning about DV seems endless. I can't tell you why the frametypes must match. Other than that, I also remember MakeMKV popping up a huge amount of sync errors. I don't know if the two issues are related or should be assessed separately.
Reading your link
sounds promisng, but I wouldn't know what's meant here. Maybe quietvoid cares to comment.
I went ahead and tried it out on one of my disks using DDVT, demuxing the FEL and injecting it into a re-encoded BL. My player apparently doesn't playback DV from a file (falls back on HDR10 which seems ok) so if anyone has a proper setup please use the sample below and let me know if this frankenstein's monster works, or if you see weird image artifacts or flashing.
Sample (https://drive.google.com/file/d/1Zw5TLEqVNgbQhePEHqWVyVYd9CsnGwCq/view?usp=sharing)
NeverExists
7th August 2022, 03:39
Maybe it's easier to just load the two videos in another player.
For identifying same frames and determining difference in framecount, I often use two simultaneous instances of Virtualdub. Works like a charm.
Also, I just realized that a lot of the movies I want to do a hybrid of have the Bluray video start a few seconds before the Web video file. I don't know how to go about merging them for a hybrid. Do I first trim the Bluray video so they match? If so how would I do that?
GodzilaAvenger
7th August 2022, 05:34
Also, I just realized that a lot of the movies I want to do a hybrid of have the Bluray video start a few seconds before the Web video file. I don't know how to go about merging them for a hybrid. Do I first trim the Bluray video so they match? If so how would I do that?
Do you want to get the RPU from a WEB-DL source and inject it into a BluRay? If that's what you want to do I'd recommend using djv, which can show a video frame-by-frame. What I do is open one file in djv, find a scene transition and note the frame number, then open the other file and find the corresponding frame number. This gives me the delay, which I then use in the DDVT injector tool.
von Suppé
7th August 2022, 10:35
@AgentXXL
Did you read & try this?
@AgentXXL, @fkid
Don't know anymore where I've read it, but when muxing DV elementary streams with MKVToolNix GUI, I've learned to always set "Default duration/FPS" with proper value. Hope this is of any help.
von Suppé
7th August 2022, 11:57
I went ahead and tried it out on one of my disks using DDVT, demuxing the FEL and injecting it into a re-encoded BL. My player apparently doesn't playback DV from a file (falls back on HDR10 which seems ok) so if anyone has a proper setup please use the sample below and let me know if this frankenstein's monster works, or if you see weird image artifacts or flashing.
Sample (https://drive.google.com/file/d/1Zw5TLEqVNgbQhePEHqWVyVYd9CsnGwCq/view?usp=sharing)
Not sure what you mean with "inject a FEL into recoded BL". I'd guess you mean interleaving BL and FEL+RPU into one videostream with dovitool's mux option (something like "dovi_tool mux --bl BL.hevc --el FEL.hevc")?
It's basically what MakeMKV does too. Please inform me if you did something else.
As for your sample, it does not trigger DV on my player either. HDR10 is all I got. No flickering though, playback is okay.
But I'm somewhat confused about the mkv. Is combining a recoded BL with native FEL+RPU all you did?
Reason I ask is I found something odd. First thing obviously is BL being cropped where native FEL is not. I doubt that cropped BL with uncropped FEL (and RPU, for that matter) would be possible for proper DV playback in the first place. Recoding BL doesn't mean you have to crop it.
Also, I demuxed your mkv into the elementary videostream, which still contains BL, FEL and RPU. With dovitool I extracted RPU.
Using dovitool, I then demuxed the demuxed elementary stream into BL and FEL. Extracted RPU from FEL. Did a hasnumbercheck on both RPU's. They don't match, where they usually do. I'm curious if/what you did with the RPU?
GodzilaAvenger
7th August 2022, 19:08
Not sure what you mean with "inject a FEL into recoded BL". I'd guess you mean interleaving BL and FEL+RPU into one videostream with dovitool's mux option (something like "dovi_tool mux --bl BL.hevc --el FEL.hevc")?
It's basically what MakeMKV does too. Please inform me if you did something else.
As for your sample, it does not trigger DV on my player either. HDR10 is all I got. No flickering though, playback is okay.
But I'm somewhat confused about the mkv. Is combining a recoded BL with native FEL+RPU all you did?
Reason I ask is I found something odd. First thing obviously is BL being cropped where native FEL is not. I doubt that cropped BL with uncropped FEL (and RPU, for that matter) would be possible for proper DV playback in the first place. Recoding BL doesn't mean you have to crop it.
Also, I demuxed your mkv into the elementary videostream, which still contains BL, FEL and RPU. With dovitool I extracted RPU.
Using dovitool, I then demuxed the demuxed elementary stream into BL and FEL. Extracted RPU from FEL. Did a hasnumbercheck on both RPU's. They don't match, where they usually do. I'm curious if/what you did with the RPU?
That's quite interesting, thanks for the feedback.
Here's what I did: I used DDVT_DEMUXER with the remux mkv, and used it to only extract the EL (option 2), but not the BL or the RPU, and I got a EL.hevc file. I then used DDVT_INJECTOR to add that EL.hevc to the re-encoded mkv, which I think is the same as what you said (interleaving BL and EL+RPU and then muxing into an mkv, for muxing the options where Standard and MakeMKV, I wasn't sure what the difference was so I went with Standard). I didn't do anything directly to the RPU, DDVT may have changed some things in the process because of the cropped BL.
I wonder if the cropped BL is the reason DV is not triggered on your player. Following @-QfG-'s directions in the next post, I took the following steps using one of my uncropped re-encodes:
1. Used DDVT_DEMUXER to extract EL.hevc (1920x1080) from the remux mkv, then put it next to BL.hevc (3840x2160).
2. Gave DDVT_INJECTOR the BL.hevc file as input, which then recognized the EL.
3. Started the injecting (interleaving of EL and RPU NALUs) process, which resulted in a BL_[BL+EL+RPU].hevc file. Finally, used MKVToolNix to create a mkv.
The file below contains a sample of both the source (remux) and re-encode files. Please let me know if either triggers DV on your player, thanks!
Source&Encode (https://drive.google.com/file/d/1qP31OaDYGo4JeMtwFyzL5ZElwX6Caxmb/view?usp=sharing)
-QfG-
7th August 2022, 19:08
Steps for Building a Profile 7 Single Layer MKV:
1. Extract with Extractor the Enhanced Layer. Copy the hevc file nearly the Base Layer File (Base Layer WITHOUT DoVi RPU or EL Stream!) and save this File as EL.hevc.
2. Open Base Layer file/Container with the Injector. If the Injector found the EL.hevc file you have a new option to mux the MEL/FEL Layer into your Base Layer Stream.
Differences between Standard and makeMKV:
--eos-before-el Write the EOS/EOB NALUs before the EL. Defaults to false.
This flag enables the same behaviour as MakeMKV and yusesope's mux script.
Enabling this therefore results in identical output using dovi_tool.
AgentXXL
7th August 2022, 20:52
@AgentXXL
Did you read & try this?
No, so far almost all titles I've tried have worked using the 'mux stream to mkv' option of Injector. I have encountered one title where the RPU.bin was extracted but Injector wouldn't recognize it. It also reported that there was a max luminance value over 10000 - when that happens I've read to try using the 'change L6 metadata to match q=with video' in Injector.
Alas that doesn't work as Injector doesn't recognize the RPU.bin file:
== RPU INPUT ===========================================================================================================
Filename = [RPU.bin]
RPU Info = [DV Profile = n.a.] [CM Version = n.a.] [Frames = n.a.]
I'll give the manual method a try using the Default duration/FPS setting at some point. Right now I'm working on a backlog of titles where I currently have both a HDR and DV copy of each title in my media folders. Trying to convert as many as possible so I can free up some storage space.
Thanks for the assistance - I'll let you know if I'm successful when I try the manual method again.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.