Dolby Vision now possible through MP4 Mux.

Please post here for issues related to UHD discs
chronomac
Posts: 25
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: 2410
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
Sorry for my English.
G5 / AM6B+ / Denon 7.2.4
DoVi_Scripts
DoVi Playback Devices
chronomac
Posts: 25
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: 2410
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...
Sorry for my English.
G5 / AM6B+ / Denon 7.2.4
DoVi_Scripts
DoVi Playback Devices
chronomac
Posts: 25
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: 2410
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
Sorry for my English.
G5 / AM6B+ / Denon 7.2.4
DoVi_Scripts
DoVi Playback Devices
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: 81
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. Ugoos AM6B+.
RESET_9999
Posts: 2410
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

Gatorman wrote:
Wed Aug 30, 2023 9:32 pm
Is this still your preferred method with (3-1)?
Yes, the L2 trims are removed by default in (3-1). I watched a couple of CM_analyze generated movies and it looks better than ever.
The latest Dolby algo is much better than the old one that Resolve uses and the fact that we can use HRD10plus scene cuts(or any official ones) is great. example: https://slow.pics/c/3EyCFPu9
Sorry for my English.
G5 / AM6B+ / Denon 7.2.4
DoVi_Scripts
DoVi Playback Devices
thirdmoon
Posts: 35
Joined: Mon Jul 03, 2023 6:17 am

Re: Dolby Vision now possible through MP4 Mux.

Post by thirdmoon »

RESET_9999 wrote:
Wed Aug 30, 2023 10:05 pm

Yes, the L2 trims are removed by default in (3-1). I watched a couple of CM_analyze generated movies and it looks better than ever.
The latest Dolby algo is much better than the old one that Resolve uses and the fact that we can use HRD10plus scene cuts(or any official ones) is great. example: https://slow.pics/c/3EyCFPu9
Is there any way to speed up the process of 3-1. For me it is literally 10x slower than DaVinci. (30min DaVinci, 7-8hour on 3-1)
RESET_9999
Posts: 2410
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

thirdmoon wrote:
Thu Aug 31, 2023 7:45 am
Is there any way to speed up the process of 3-1. For me it is literally 10x slower than DaVinci. (30min DaVinci, 7-8hour on 3-1)
The only way is to not touch your PC while CM is running. It takes about 1h and the speed goes from 0.050 to 0.400
If I work on my PC at the same time, it can take 6h indeed. speed goes from 0.050 to 2.5
Sorry for my English.
G5 / AM6B+ / Denon 7.2.4
DoVi_Scripts
DoVi Playback Devices
skull88
Posts: 69
Joined: Mon Mar 27, 2023 3:08 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by skull88 »

thirdmoon wrote:
Thu Aug 31, 2023 7:45 am
RESET_9999 wrote:
Wed Aug 30, 2023 10:05 pm

Yes, the L2 trims are removed by default in (3-1). I watched a couple of CM_analyze generated movies and it looks better than ever.
The latest Dolby algo is much better than the old one that Resolve uses and the fact that we can use HRD10plus scene cuts(or any official ones) is great. example: https://slow.pics/c/3EyCFPu9
Is there any way to speed up the process of 3-1. For me it is literally 10x slower than DaVinci. (30min DaVinci, 7-8hour on 3-1)
The question is how much do you care about the difference between cm_analyze vs. Resolve algorithm output in the final image, or even the (sometimes flawed/lazy/inaccurate) retail DV metadata, which is how 99.9% of the world sees the films, lol. Have you A/B tested a sample or movie yet? I find CM is best at this point, but Resolve is a close 2nd and in a blind-test, you may even end up preferring one or the other for a particular film. RESET is rightly focused on accuracy and upholding the original intent of the colourist/filmmakers as much as possible, but we're still working with approximation and no full Dolby Vision license, keep in mind. As far as the question of speed, Dolby obviously expects people to have dedicated server or workstation for running their pro tools, so your call how much time/resources you want to dedicate to this entire process, especially if you don't get much enjoyment out of the technical details/testing/troubleshooting aspect.

In the end, patience is the biggest virtue you'll have with all this, no full automation is possible without sacrificing quality control and not understanding the tools or workflows can lead to errors/issues too. Cheers! :)
jlpsvk
Posts: 50
Joined: Thu Sep 06, 2018 11:33 am

Re: Dolby Vision now possible through MP4 Mux.

Post by jlpsvk »

can't agree more.. :)

right now, only flaw is, that latest cm_analyze is buggy and on cuda it's slowing down rapidly. :( or in other words, starting to use less and less gpu power... watched it recently, started at 26% GPU usage (LAST FRAME: 0.05s), and in one third of the analysis, it was down to 12% (LAST FRAME: 0.6s). :(

GPU used was GTX 1660 SUPER
jlpsvk
Posts: 50
Joined: Thu Sep 06, 2018 11:33 am

Re: Dolby Vision now possible through MP4 Mux.

Post by jlpsvk »

regarding slowdown of cm_analyze... has anybody tried nVidia's Studio driver????
Post Reply