Dolby Vision now possible through MP4 Mux.

Please post here for issues related to UHD discs
RESET_9999
Posts: 2093
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

chronomac wrote:
Mon Aug 21, 2023 10:07 pm
What's the maximum number you can use?
the script exports a screenshot every 2000 frames starting at frame 1000. (1000-3000-5000-7000-9000-11000 etc..)
So it depends on your input length.

you could remove a 0 in %%i000 around line 11495 and that would allow a lot more screenshots to be extracted.

Code: Select all

for /L %%i in (1,2,%frame_number%) do (
  echo LoadPlugin("%ffms2%"^) > "%TEMP%%%i.avs"
  echo FFVideoSource("%filepath%%filename%%fileext%", cachefile="%TEMP%1.ffindex"^) >> "%TEMP%%%i.avs" 
  echo scriptClip(""^"  >> "%TEMP%%%i.avs" 
  echo     subtitle("%filename%", size=14, align=7, 4, 25, text_color=$606060^) >> "%TEMP%%%i.avs" 
  echo     subtitle("Resolution: " + string(width^) + " x " + string(height^) + " @ " + string(framerate^), size=14, align=7, 4, 40, text_color=$606060^) >> "%TEMP%%%i.avs" 
  echo     subtitle("Frame: %%i000", size=14, align=7, 4, 55, text_color=$606060^) >> "%TEMP%%%i.avs" 
  echo     subtitle("Picture type: " + Chr(FFPICT_TYPE^), size=14, align=7, 4, 70, text_color=$606060^) >> "%TEMP%%%i.avs"
  echo ""^"^) >> "%TEMP%%%i.avs"
  echo trim(%%i000,%%i000^) >> "%TEMP%%%i.avs"
)
change it to

Code: Select all

for /L %%i in (1,2,%frame_number%) do (
  echo LoadPlugin("%ffms2%"^) > "%TEMP%%%i.avs"
  echo FFVideoSource("%filepath%%filename%%fileext%", cachefile="%TEMP%1.ffindex"^) >> "%TEMP%%%i.avs" 
  echo scriptClip(""^"  >> "%TEMP%%%i.avs" 
  echo     subtitle("%filename%", size=14, align=7, 4, 25, text_color=$606060^) >> "%TEMP%%%i.avs" 
  echo     subtitle("Resolution: " + string(width^) + " x " + string(height^) + " @ " + string(framerate^), size=14, align=7, 4, 40, text_color=$606060^) >> "%TEMP%%%i.avs" 
  echo     subtitle("Frame: %%i00", size=14, align=7, 4, 55, text_color=$606060^) >> "%TEMP%%%i.avs" 
  echo     subtitle("Picture type: " + Chr(FFPICT_TYPE^), size=14, align=7, 4, 70, text_color=$606060^) >> "%TEMP%%%i.avs"
  echo ""^"^) >> "%TEMP%%%i.avs"
  echo trim(%%i00,%%i00^) >> "%TEMP%%%i.avs"
)
Also line 11528 and 11626:
echo noms_images = ['%filename%_Frame_%%i00.tiff'] >> "%TEMP%gamut_map.py"

echo noms_images = ['%filename%_Frame_%%i00.tiff'] >> "%TEMP%heat_map.py"
Draco1544
Posts: 7
Joined: Sun Dec 18, 2022 12:32 am

Re: Dolby Vision now possible through MP4 Mux.

Post by Draco1544 »

How I can check if my mkv is a FEL dual layer or single layer ?
RESET_9999
Posts: 2093
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

Draco1544 wrote:
Tue Aug 22, 2023 6:40 am
How I can check if my mkv is a FEL dual layer or single layer ?
workflow (2-3)

FYI, there's a small explanation of all the workflows in the TOOLS_READ_ME.txt
quietvoid
Posts: 373
Joined: Sun Apr 19, 2020 4:15 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by quietvoid »

RESET_9999 wrote:
Sat Aug 19, 2023 12:31 pm
It seems, for some reason, the dovi_tool can't generate a rpu from a Resolve hdr10plus json directly but if you just inject the resolve json to an hevc file and then extract it to a new json file, it works.
Resolve generates HDR10+ metadata with SceneFirstFrameIndex starting at 86400, while it's currently expected to start at 0.
I guess maybe a solution is to offset the list of the first frame indices by whatever is the first frame index.

Should be fixed in next version, which is very much due.
Maybe by this weekend.
thirdmoon
Posts: 35
Joined: Mon Jul 03, 2023 6:17 am

Re: Dolby Vision now possible through MP4 Mux.

Post by thirdmoon »

@RESET_9999
How do I create screenshot comparison between HDR.mkv and HDR-DVinjected.mkv to see the difference between HDR and DV.
Thank you.
RESET_9999
Posts: 2093
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

quietvoid wrote:
Wed Aug 23, 2023 1:59 am
Resolve generates HDR10+ metadata with SceneFirstFrameIndex starting at 86400, while it's currently expected to start at 0.
I guess maybe a solution is to offset the list of the first frame indices by whatever is the first frame index.

Should be fixed in next version, which is very much due.
Maybe by this weekend.
thank you
thirdmoon wrote:
Wed Aug 23, 2023 6:49 am
@RESET_9999
How do I create screenshot comparison between HDR.mkv and HDR-DVinjected.mkv to see the difference between HDR and DV.
Thank you.
AFAIK, you can't.

The way I did the HDR/DV comparisons below is by capturing the LLDV signal of my bluray player using an HDMI capture card. And different EDIDs will produce different outcomes.
https://mega.nz/folder/1C1gFLYD#lKYXNitCf0Tzg_nf5vhN9g
chronomac
Posts: 23
Joined: Mon Dec 20, 2021 8:42 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by chronomac »

RESET_9999 wrote:
Mon Aug 21, 2023 10:26 pm
chronomac wrote:
Mon Aug 21, 2023 10:07 pm
What's the maximum number you can use?
the script exports a screenshot every 2000 frames starting at frame 1000. (1000-3000-5000-7000-9000-11000 etc..)
So it depends on your input length.

you could remove a 0 in %%i000 around line 11495 and that would allow a lot more screenshots to be extracted.

Code: Select all

for /L %%i in (1,2,%frame_number%) do (
  echo LoadPlugin("%ffms2%"^) > "%TEMP%%%i.avs"
  echo FFVideoSource("%filepath%%filename%%fileext%", cachefile="%TEMP%1.ffindex"^) >> "%TEMP%%%i.avs" 
  echo scriptClip(""^"  >> "%TEMP%%%i.avs" 
  echo     subtitle("%filename%", size=14, align=7, 4, 25, text_color=$606060^) >> "%TEMP%%%i.avs" 
  echo     subtitle("Resolution: " + string(width^) + " x " + string(height^) + " @ " + string(framerate^), size=14, align=7, 4, 40, text_color=$606060^) >> "%TEMP%%%i.avs" 
  echo     subtitle("Frame: %%i000", size=14, align=7, 4, 55, text_color=$606060^) >> "%TEMP%%%i.avs" 
  echo     subtitle("Picture type: " + Chr(FFPICT_TYPE^), size=14, align=7, 4, 70, text_color=$606060^) >> "%TEMP%%%i.avs"
  echo ""^"^) >> "%TEMP%%%i.avs"
  echo trim(%%i000,%%i000^) >> "%TEMP%%%i.avs"
)
change it to

Code: Select all

for /L %%i in (1,2,%frame_number%) do (
  echo LoadPlugin("%ffms2%"^) > "%TEMP%%%i.avs"
  echo FFVideoSource("%filepath%%filename%%fileext%", cachefile="%TEMP%1.ffindex"^) >> "%TEMP%%%i.avs" 
  echo scriptClip(""^"  >> "%TEMP%%%i.avs" 
  echo     subtitle("%filename%", size=14, align=7, 4, 25, text_color=$606060^) >> "%TEMP%%%i.avs" 
  echo     subtitle("Resolution: " + string(width^) + " x " + string(height^) + " @ " + string(framerate^), size=14, align=7, 4, 40, text_color=$606060^) >> "%TEMP%%%i.avs" 
  echo     subtitle("Frame: %%i00", size=14, align=7, 4, 55, text_color=$606060^) >> "%TEMP%%%i.avs" 
  echo     subtitle("Picture type: " + Chr(FFPICT_TYPE^), size=14, align=7, 4, 70, text_color=$606060^) >> "%TEMP%%%i.avs"
  echo ""^"^) >> "%TEMP%%%i.avs"
  echo trim(%%i00,%%i00^) >> "%TEMP%%%i.avs"
)
Also line 11528 and 11626:
echo noms_images = ['%filename%_Frame_%%i00.tiff'] >> "%TEMP%gamut_map.py"

echo noms_images = ['%filename%_Frame_%%i00.tiff'] >> "%TEMP%heat_map.py"
Thanks so much for this info.

Another question, unrelated: theoretically, would it be possible to calculate the number of pixels in a frame that extend into P3 and Rec.2020? If so, could you do that for a whole movie? The gamut visualizations are helpful for seeing extensions past Rec. 709 but it would be great to get a more objective, definable number for a movie (ie. 10% of the movie is in the WCG).
RESET_9999
Posts: 2093
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

chronomac wrote:
Thu Aug 24, 2023 4:14 pm

Thanks so much for this info.

Another question, unrelated: theoretically, would it be possible to calculate the number of pixels in a frame that extend into P3 and Rec.2020? If so, could you do that for a whole movie? The gamut visualizations are helpful for seeing extensions past Rec. 709 but it would be great to get a more objective, definable number for a movie (ie. 10% of the movie is in the WCG).
yes, it's probably possible but I didn't do that Python script so I don't know. You could ask the author @dorian in this thread:

https://forum.blu-ray.com/showthread.ph ... 42&page=35
chronomac
Posts: 23
Joined: Mon Dec 20, 2021 8:42 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by chronomac »

RESET_9999 wrote:
Thu Aug 24, 2023 7:13 pm
chronomac wrote:
Thu Aug 24, 2023 4:14 pm

Thanks so much for this info.

Another question, unrelated: theoretically, would it be possible to calculate the number of pixels in a frame that extend into P3 and Rec.2020? If so, could you do that for a whole movie? The gamut visualizations are helpful for seeing extensions past Rec. 709 but it would be great to get a more objective, definable number for a movie (ie. 10% of the movie is in the WCG).
yes, it's probably possible but I didn't do that Python script so I don't know. You could ask the author @dorian in this thread:

https://forum.blu-ray.com/showthread.ph ... 42&page=35
I'll reach out over there.

Another unrelated question, if you don't mind: I recently updated the script and now whenever I use the 4-2 path, to convert a profile 7 DV MKV to profile 8, the output is just a .hevc file. Is that normal? It used to be a fully fledged MKV. To be clear, I muxed that .hevc with the audio, chapters and subtitles of the original MKV without an issue. Plays back fine, as far as I can tell. I just didn't know if the process had changed or if I'm missing a tool for that last step.
RESET_9999
Posts: 2093
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

chronomac wrote:
Tue Aug 29, 2023 1:23 pm
Another unrelated question, if you don't mind: I recently updated the script and now whenever I use the 4-2 path, to convert a profile 7 DV MKV to profile 8, the output is just a .hevc file. Is that normal? It used to be a fully fledged MKV. To be clear, I muxed that .hevc with the audio, chapters and subtitles of the original MKV without an issue. Plays back fine, as far as I can tell. I just didn't know if the process had changed or if I'm missing a tool for that last step.
It means the muxing failed. I just tried with a sample and everything is fine on my end so I don't know and without any info about the input or the script cmd , there's not much I can do.
You could try the latest beta.

Code: Select all

  Drag and drop a P7 MKV file and press enter...
"D:\samples\P7 THD DTS SRT PGS (2021).mkv"

------------------------------------------
Input tracks info:

index=1
codec_name=truehd
channel_layout=7.1
TAG:language=eng
index=2
codec_name=dts
channel_layout=7.1
TAG:language=eng
index=3
codec_name=ac3
channel_layout=5.1(side)
TAG:language=eng
index=4
codec_name=ac3
channel_layout=5.1(side)
TAG:language=cze
index=5
codec_name=dts
channel_layout=5.1(side)
TAG:language=fre
index=6
codec_name=ac3
channel_layout=5.1(side)
TAG:language=ger
index=7
codec_name=ac3
channel_layout=5.1(side)
TAG:language=hun
index=8
codec_name=dts
channel_layout=5.1(side)
TAG:language=ita
index=9
codec_name=ac3
channel_layout=5.1(side)
TAG:language=por
index=10
codec_name=ac3
channel_layout=5.1(side)
TAG:language=spa
index=11
codec_name=dts
channel_layout=5.1(side)
TAG:language=spa
index=12
codec_name=ac3
channel_layout=5.1(side)
TAG:language=tha
------------------------------------------

Do you want to convert the audio to DDP? (y or n default=n) if input is 7.1, a 2nd window will popup, DO NOT CLOSE IT!



        **************
        * INPUT INFO *
        **************

--> L5 Left offset: 0
--> L5 Right offset: 0
--> L5 Top offset: 280
--> L5 Bottom offset: 280
--> DoVi Profile: MEL
--> L2 trims: YES (100nits)
--> DoVi source min_pq: 50 nits
--> DoVi source max_pq: 4000 nits
--> HDR10 BL input MDL: "min: 0.0050 cd/m2, max: 4000 cd/m2"


  Do you want to edit L5... y or n ? and/or press enter...

reading input tracks format/id/language...
done.
Extracting track 0 with the CodecID 'V_MPEGH/ISO/HEVC' to the file 'D:\DoVi_Scripts\TEMP_folder\HDR.hevc'. Container format: HEVC/H.265 elementary stream
Extracting track 1 with the CodecID 'A_TRUEHD' to the file 'D:\DoVi_Scripts\TEMP_folder\au.thd'. Container format: TrueHD
Extracting track 13 with the CodecID 'S_TEXT/UTF8' to the file 'D:\DoVi_Scripts\TEMP_folder\en14.srt'. Container format: SRT text subtitles
Extracting track 14 with the CodecID 'S_TEXT/UTF8' to the file 'D:\DoVi_Scripts\TEMP_folder\en15.srt'. Container format: SRT text subtitles
Extracting track 15 with the CodecID 'S_HDMV/PGS' to the file 'D:\DoVi_Scripts\TEMP_folder\en16.pgs'. Container format: SUP
Extracting track 16 with the CodecID 'S_HDMV/PGS' to the file 'D:\DoVi_Scripts\TEMP_folder\en17.pgs'. Container format: SUP
Extracting track 17 with the CodecID 'S_HDMV/PGS' to the file 'D:\DoVi_Scripts\TEMP_folder\en18.pgs'. Container format: SUP
Extracting track 18 with the CodecID 'S_HDMV/PGS' to the file 'D:\DoVi_Scripts\TEMP_folder\en19.pgs'. Container format: SUP
Progress: 100%
converting and injecting RPU...
Rewriting file with interleaved EL NALUs..
mkvmerge v79.0 ('Funeral Pyres') 64-bit
'D:\DoVi_Scripts\P7 THD DTS SRT PGS (2021)_P8.hevc': Using the demultiplexer for the format 'HEVC/H.265'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv': Using the demultiplexer for the format 'Matroska'.
'D:\DoVi_Scripts\P7 THD DTS SRT PGS (2021)_P8.hevc' track 0: Using the output module for the format 'HEVC/H.265 (unframed)'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 1: Using the output module for the format 'TrueHD'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 2: Using the output module for the format 'DTS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 3: Using the output module for the format 'AC-3'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 4: Using the output module for the format 'AC-3'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 5: Using the output module for the format 'DTS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 6: Using the output module for the format 'AC-3'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 7: Using the output module for the format 'AC-3'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 8: Using the output module for the format 'DTS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 9: Using the output module for the format 'AC-3'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 10: Using the output module for the format 'AC-3'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 11: Using the output module for the format 'DTS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 12: Using the output module for the format 'AC-3'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 13: Using the output module for the format 'text subtitles'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 14: Using the output module for the format 'text subtitles'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 15: Using the output module for the format 'HDMV PGS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 16: Using the output module for the format 'HDMV PGS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 17: Using the output module for the format 'HDMV PGS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 18: Using the output module for the format 'HDMV PGS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 19: Using the output module for the format 'HDMV PGS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 20: Using the output module for the format 'HDMV PGS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 21: Using the output module for the format 'HDMV PGS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 22: Using the output module for the format 'HDMV PGS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 23: Using the output module for the format 'HDMV PGS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 24: Using the output module for the format 'HDMV PGS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 25: Using the output module for the format 'HDMV PGS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 26: Using the output module for the format 'HDMV PGS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 27: Using the output module for the format 'HDMV PGS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 28: Using the output module for the format 'HDMV PGS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 29: Using the output module for the format 'HDMV PGS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 30: Using the output module for the format 'HDMV PGS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 31: Using the output module for the format 'HDMV PGS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 32: Using the output module for the format 'HDMV PGS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 33: Using the output module for the format 'HDMV PGS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 34: Using the output module for the format 'HDMV PGS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 35: Using the output module for the format 'HDMV PGS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 36: Using the output module for the format 'HDMV PGS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 37: Using the output module for the format 'HDMV PGS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 38: Using the output module for the format 'HDMV PGS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 39: Using the output module for the format 'HDMV PGS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 40: Using the output module for the format 'HDMV PGS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 41: Using the output module for the format 'HDMV PGS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 42: Using the output module for the format 'HDMV PGS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 43: Using the output module for the format 'HDMV PGS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 44: Using the output module for the format 'HDMV PGS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 45: Using the output module for the format 'HDMV PGS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 46: Using the output module for the format 'HDMV PGS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 47: Using the output module for the format 'HDMV PGS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 48: Using the output module for the format 'HDMV PGS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 49: Using the output module for the format 'HDMV PGS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 50: Using the output module for the format 'HDMV PGS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 51: Using the output module for the format 'HDMV PGS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 52: Using the output module for the format 'HDMV PGS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 53: Using the output module for the format 'HDMV PGS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 54: Using the output module for the format 'HDMV PGS'.
The file 'D:\DoVi_Scripts\P7 THD DTS SRT PGS (2021).DV.mkv' has been opened for writing.
'D:\DoVi_Scripts\P7 THD DTS SRT PGS (2021)_P8.hevc' track 0: Extracted the aspect ratio information from the video bitstream and set the display dimensions to 3840/2160.
The cue entries (the index) are being written...
Multiplexing took 22 seconds.
"The script has completed"
Appuyez sur une touche pour continuer...
chronomac
Posts: 23
Joined: Mon Dec 20, 2021 8:42 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by chronomac »

RESET_9999 wrote:
Tue Aug 29, 2023 2:16 pm
chronomac wrote:
Tue Aug 29, 2023 1:23 pm
Another unrelated question, if you don't mind: I recently updated the script and now whenever I use the 4-2 path, to convert a profile 7 DV MKV to profile 8, the output is just a .hevc file. Is that normal? It used to be a fully fledged MKV. To be clear, I muxed that .hevc with the audio, chapters and subtitles of the original MKV without an issue. Plays back fine, as far as I can tell. I just didn't know if the process had changed or if I'm missing a tool for that last step.
It means the muxing failed. I just tried with a sample and everything is fine on my end so I don't know and without any info about the input or the script cmd , there's not much I can do.
You could try the latest beta.

Code: Select all

  Drag and drop a P7 MKV file and press enter...
"D:\samples\P7 THD DTS SRT PGS (2021).mkv"

------------------------------------------
Input tracks info:

index=1
codec_name=truehd
channel_layout=7.1
TAG:language=eng
index=2
codec_name=dts
channel_layout=7.1
TAG:language=eng
index=3
codec_name=ac3
channel_layout=5.1(side)
TAG:language=eng
index=4
codec_name=ac3
channel_layout=5.1(side)
TAG:language=cze
index=5
codec_name=dts
channel_layout=5.1(side)
TAG:language=fre
index=6
codec_name=ac3
channel_layout=5.1(side)
TAG:language=ger
index=7
codec_name=ac3
channel_layout=5.1(side)
TAG:language=hun
index=8
codec_name=dts
channel_layout=5.1(side)
TAG:language=ita
index=9
codec_name=ac3
channel_layout=5.1(side)
TAG:language=por
index=10
codec_name=ac3
channel_layout=5.1(side)
TAG:language=spa
index=11
codec_name=dts
channel_layout=5.1(side)
TAG:language=spa
index=12
codec_name=ac3
channel_layout=5.1(side)
TAG:language=tha
------------------------------------------

Do you want to convert the audio to DDP? (y or n default=n) if input is 7.1, a 2nd window will popup, DO NOT CLOSE IT!



        **************
        * INPUT INFO *
        **************

--> L5 Left offset: 0
--> L5 Right offset: 0
--> L5 Top offset: 280
--> L5 Bottom offset: 280
--> DoVi Profile: MEL
--> L2 trims: YES (100nits)
--> DoVi source min_pq: 50 nits
--> DoVi source max_pq: 4000 nits
--> HDR10 BL input MDL: "min: 0.0050 cd/m2, max: 4000 cd/m2"


  Do you want to edit L5... y or n ? and/or press enter...

reading input tracks format/id/language...
done.
Extracting track 0 with the CodecID 'V_MPEGH/ISO/HEVC' to the file 'D:\DoVi_Scripts\TEMP_folder\HDR.hevc'. Container format: HEVC/H.265 elementary stream
Extracting track 1 with the CodecID 'A_TRUEHD' to the file 'D:\DoVi_Scripts\TEMP_folder\au.thd'. Container format: TrueHD
Extracting track 13 with the CodecID 'S_TEXT/UTF8' to the file 'D:\DoVi_Scripts\TEMP_folder\en14.srt'. Container format: SRT text subtitles
Extracting track 14 with the CodecID 'S_TEXT/UTF8' to the file 'D:\DoVi_Scripts\TEMP_folder\en15.srt'. Container format: SRT text subtitles
Extracting track 15 with the CodecID 'S_HDMV/PGS' to the file 'D:\DoVi_Scripts\TEMP_folder\en16.pgs'. Container format: SUP
Extracting track 16 with the CodecID 'S_HDMV/PGS' to the file 'D:\DoVi_Scripts\TEMP_folder\en17.pgs'. Container format: SUP
Extracting track 17 with the CodecID 'S_HDMV/PGS' to the file 'D:\DoVi_Scripts\TEMP_folder\en18.pgs'. Container format: SUP
Extracting track 18 with the CodecID 'S_HDMV/PGS' to the file 'D:\DoVi_Scripts\TEMP_folder\en19.pgs'. Container format: SUP
Progress: 100%
converting and injecting RPU...
Rewriting file with interleaved EL NALUs..
mkvmerge v79.0 ('Funeral Pyres') 64-bit
'D:\DoVi_Scripts\P7 THD DTS SRT PGS (2021)_P8.hevc': Using the demultiplexer for the format 'HEVC/H.265'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv': Using the demultiplexer for the format 'Matroska'.
'D:\DoVi_Scripts\P7 THD DTS SRT PGS (2021)_P8.hevc' track 0: Using the output module for the format 'HEVC/H.265 (unframed)'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 1: Using the output module for the format 'TrueHD'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 2: Using the output module for the format 'DTS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 3: Using the output module for the format 'AC-3'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 4: Using the output module for the format 'AC-3'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 5: Using the output module for the format 'DTS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 6: Using the output module for the format 'AC-3'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 7: Using the output module for the format 'AC-3'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 8: Using the output module for the format 'DTS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 9: Using the output module for the format 'AC-3'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 10: Using the output module for the format 'AC-3'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 11: Using the output module for the format 'DTS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 12: Using the output module for the format 'AC-3'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 13: Using the output module for the format 'text subtitles'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 14: Using the output module for the format 'text subtitles'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 15: Using the output module for the format 'HDMV PGS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 16: Using the output module for the format 'HDMV PGS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 17: Using the output module for the format 'HDMV PGS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 18: Using the output module for the format 'HDMV PGS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 19: Using the output module for the format 'HDMV PGS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 20: Using the output module for the format 'HDMV PGS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 21: Using the output module for the format 'HDMV PGS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 22: Using the output module for the format 'HDMV PGS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 23: Using the output module for the format 'HDMV PGS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 24: Using the output module for the format 'HDMV PGS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 25: Using the output module for the format 'HDMV PGS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 26: Using the output module for the format 'HDMV PGS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 27: Using the output module for the format 'HDMV PGS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 28: Using the output module for the format 'HDMV PGS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 29: Using the output module for the format 'HDMV PGS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 30: Using the output module for the format 'HDMV PGS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 31: Using the output module for the format 'HDMV PGS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 32: Using the output module for the format 'HDMV PGS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 33: Using the output module for the format 'HDMV PGS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 34: Using the output module for the format 'HDMV PGS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 35: Using the output module for the format 'HDMV PGS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 36: Using the output module for the format 'HDMV PGS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 37: Using the output module for the format 'HDMV PGS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 38: Using the output module for the format 'HDMV PGS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 39: Using the output module for the format 'HDMV PGS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 40: Using the output module for the format 'HDMV PGS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 41: Using the output module for the format 'HDMV PGS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 42: Using the output module for the format 'HDMV PGS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 43: Using the output module for the format 'HDMV PGS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 44: Using the output module for the format 'HDMV PGS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 45: Using the output module for the format 'HDMV PGS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 46: Using the output module for the format 'HDMV PGS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 47: Using the output module for the format 'HDMV PGS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 48: Using the output module for the format 'HDMV PGS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 49: Using the output module for the format 'HDMV PGS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 50: Using the output module for the format 'HDMV PGS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 51: Using the output module for the format 'HDMV PGS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 52: Using the output module for the format 'HDMV PGS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 53: Using the output module for the format 'HDMV PGS'.
'D:\samples\P7 THD DTS SRT PGS (2021).mkv' track 54: Using the output module for the format 'HDMV PGS'.
The file 'D:\DoVi_Scripts\P7 THD DTS SRT PGS (2021).DV.mkv' has been opened for writing.
'D:\DoVi_Scripts\P7 THD DTS SRT PGS (2021)_P8.hevc' track 0: Extracted the aspect ratio information from the video bitstream and set the display dimensions to 3840/2160.
The cue entries (the index) are being written...
Multiplexing took 22 seconds.
"The script has completed"
Appuyez sur une touche pour continuer...
The newest beta worked perfectly:

Code: Select all

  Drag and drop a P7 MKV file and press enter...
"C:\Users\user\Downloads\Video.mkv"

------------------------------------------
Input tracks info:

index=1
codec_name=dts
channel_layout=5.1(side)
TAG:language=eng
index=2
codec_name=dts
channel_layout=5.1(side)
TAG:language=eng
------------------------------------------

Do you want to convert the audio to DDP? (y or n default=n) if input is 7.1, a 2nd window will popup, DO NOT CLOSE IT!
n


        **************
        * INPUT INFO *
        **************

--> L5 Left offset: 0
--> L5 Right offset: 0
--> L5 Top offset: 120
--> L5 Bottom offset: 120
--> DoVi Profile: MEL
--> L2 trims: YES (100nits) (600nits) (1000nits)
--> DoVi source min_pq: 1 nits
--> DoVi source max_pq: 1000 nits
--> HDR10 BL input MDL: "min: 0.0001 cd/m2, max: 1000 cd/m2"


  Do you want to edit L5... y or n ? and/or press enter...
n
reading input tracks format/id/language...
done.
Extracting track 0 with the CodecID 'V_MPEGH/ISO/HEVC' to the file 'C:\Users\user\Desktop\DoVi_Scripts\TEMP_folder\HDR.hevc'. Container format: HEVC/H.265 elementary stream
Extracting track 1 with the CodecID 'A_DTS' to the file 'C:\Users\user\Desktop\DoVi_Scripts\TEMP_folder\au.dts'. Container format: Digital Theater System (DTS)
Extracting track 3 with the CodecID 'S_HDMV/PGS' to the file 'C:\Users\user\Desktop\DoVi_Scripts\TEMP_folder\en4.pgs'. Container format: SUP
Progress: 100%
converting and injecting RPU...
Rewriting file with interleaved EL NALUs..
mkvmerge v76.0 ('Celebration') 64-bit
'C:\Users\user\Desktop\DoVi_Scripts\Video_P8.hevc': Using the demultiplexer for the format 'HEVC/H.265'.
'C:\Users\user\Downloads\Video.mkv': Using the demultiplexer for the format 'Matroska'.
'C:\Users\user\Desktop\DoVi_Scripts\Video_P8.hevc' track 0: Using the output module for the format 'HEVC/H.265 (unframed)'.
'C:\Users\user\Downloads\Video.mkv' track 1: Using the output module for the format 'DTS'.
'C:\Users\user\Downloads\Video.mkv' track 2: Using the output module for the format 'DTS'.
'C:\Users\user\Downloads\Video.mkv' track 3: Using the output module for the format 'HDMV PGS'.
The file 'C:\Users\user\Desktop\DoVi_Scripts\Video.DV.mkv' has been opened for writing.
'C:\Users\user\Desktop\DoVi_Scripts\Video_P8.hevc' track 0: Extracted the aspect ratio information from the video bitstream and set the display dimensions to 3840/2160.
The cue entries (the index) are being written...
Multiplexing took 1 minute 12 seconds.
"The script has completed"
Press any key to continue . . .
Thanks!
fransalas
Posts: 14
Joined: Wed Jul 05, 2023 12:49 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by fransalas »

good afternoon, RESET 9999 I can't find the HDR 10 plus Injector/Extractor option, your the latest beta
RESET_9999
Posts: 2093
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

fransalas wrote:
Wed Aug 30, 2023 9:04 am
good afternoon, RESET 9999 I can't find the HDR 10 plus Injector/Extractor option, your the latest beta
I moved the workflows I use the most in the main menu so the order changed a bit but it's still there: 8-4
fransalas
Posts: 14
Joined: Wed Jul 05, 2023 12:49 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by fransalas »

Thank you very much RESET_9999, I already found it..

greetings
Gatorman
Posts: 79
Joined: Thu Feb 10, 2022 3:47 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Gatorman »

RESET_9999 wrote:
Thu Jun 22, 2023 7:19 pm

IMO, the L2 trims can only be done/edited by the colorist/director so for our Resolve generated RPU, I recommend removing or overwriting the automatic trims otherwise they can make bright content very dark and dark content brighter which might not be the intended look.
Is this still your preferred method with (3-1)?
More reasons to collect physical media. 2019 Shield TV Pro.
Post Reply