Dolby Vision now possible through MP4 Mux.

Please post here for issues related to UHD discs
Chisum04
Posts: 17
Joined: Mon Feb 27, 2023 10:43 am

Re: Dolby Vision now possible through MP4 Mux.

Post by Chisum04 »

bbeny123 wrote:
Sat Aug 05, 2023 9:12 am

Could you please check out version 1.3.2-alpha3? It should work with Oppo (and older LG TVs) and have the codec set correctly to 'dvhe'.
Worked! Perfect.
bbeny123
Posts: 19
Joined: Tue Aug 01, 2023 6:33 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by bbeny123 »

Since the 1.3.2-alpha3 version seems to be fully stable, I released it as 1.3.2 :)
https://github.com/bbeny123/mp4muxer/releases/tag/1.3.2

Version 1.3.2 differs from 1.3.1 in that for DV profiles > 7 the codec configuration box is set to dvcC instead of dvvC (mp4box_64bits 1.0.0 also set dvcC).
This is non-compliant with Dolby's documentation, but as we can see Oppo and older LG TVs are also non-compliant (as only this setting works on them).
Last edited by bbeny123 on Sat Aug 05, 2023 2:32 pm, edited 1 time in total.
RESET_9999
Posts: 2383
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

valington wrote:
Sat Aug 05, 2023 1:39 pm
Reset your c2 is showing mp4 7 profil dolby vision with this new version mp4 muxer ?
No, LG dropped P7 support since the CX. I was talking about P8 and P5.
Sorry for my English.
G5 / AM6B+ / Denon 7.2.4
DoVi_Scripts
DoVi Playback Devices
staknhalo
Posts: 176
Joined: Sun Oct 11, 2020 12:05 am

Re: Dolby Vision now possible through MP4 Mux.

Post by staknhalo »

Is there a way to tell what resolution video an RPU came from/what resolution an RPU is intended for? Like if I have a p5 RPU but not the source p5 video, and a HDR10 Blu-ray BL to inject the RPU into - how do I know if black bars should be cropped or not (on some p5 videos the video is 16:9 with black bars in the stream, some p5 will have just the video in whatever resolution/aspect ratio with no black bars)? Like a specific line/variable to look for in the json/RPU?
RESET_9999
Posts: 2383
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

staknhalo wrote:
Sun Aug 06, 2023 1:30 am
Is there a way to tell what resolution video an RPU came from/what resolution an RPU is intended for? Like if I have a p5 RPU but not the source p5 video, and a HDR10 Blu-ray BL to inject the RPU into - how do I know if black bars should be cropped or not (on some p5 videos the video is 16:9 with black bars in the stream, some p5 will have just the video in whatever resolution/aspect ratio with no black bars)? Like a specific line/variable to look for in the json/RPU?
Everything about the rpu aspect ratio(active area) is in Level 5

If the BL is 16:9 with no black bars or if it is cropped, L5 should always be 0 regardless of the base layer resolution.
if the new BL has black bars, you measure them and edit L5 accordingly.
Sorry for my English.
G5 / AM6B+ / Denon 7.2.4
DoVi_Scripts
DoVi Playback Devices
staknhalo
Posts: 176
Joined: Sun Oct 11, 2020 12:05 am

Re: Dolby Vision now possible through MP4 Mux.

Post by staknhalo »

RESET_9999 wrote:
Sun Aug 06, 2023 2:08 am
staknhalo wrote:
Sun Aug 06, 2023 1:30 am
Is there a way to tell what resolution video an RPU came from/what resolution an RPU is intended for? Like if I have a p5 RPU but not the source p5 video, and a HDR10 Blu-ray BL to inject the RPU into - how do I know if black bars should be cropped or not (on some p5 videos the video is 16:9 with black bars in the stream, some p5 will have just the video in whatever resolution/aspect ratio with no black bars)? Like a specific line/variable to look for in the json/RPU?
Everything about the rpu aspect ratio(active area) is in Level 5

If the BL is 16:9 with no black bars or if it is cropped, L5 should always be 0 regardless of the base layer resolution.
if the new BL has black bars, you measure them and edit L5 accordingly.
Got it thanks
UNSCTrafalgar
Posts: 5
Joined: Fri Jul 14, 2023 5:17 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by UNSCTrafalgar »

So I never really figured out what was wrong with my setup that was keeping me from converting TrueHD Atmos to DD+, but I think I figured out a way to get around it.

My setup can only handle lossy 5.1 Atmos over ARC anyway, so for movies where audio like that (or even just 5.1 surround or lesser) is available, I want to make a Frankenstein .MP4 file of a profile 7 DT-DL DV stream and whatever lossy audio I find. That should play in DV on my LG E8. I know I'll need to use MP4Muxer at the end but uh, how would I do that? Specifically, should I demux the P7 DT-DL DV stream from the original file (which in this case contains a TrueHD audio stream that would break DV on my LG E8), the lossy audio from whatever other file, and mux them together with MP4Muxer? I guess my real obstacle is properly demuxing everything, and finding out what command exactly I should enter in MP4Muxer. Any guidance would be much appreciated.

In short, the file I'm imagining would be a .MP4 file containing BL+EL+RPU profile 7 DT-DL Dolby Vision, and lossy audio topping out at 5.1 DD+ Atmos.
Amateur enthusiast 8)

LG E8 55” ——-> Vizio M512A-H6
NiCE77
Posts: 86
Joined: Sat Mar 28, 2020 7:49 am

Re: Dolby Vision now possible through MP4 Mux.

Post by NiCE77 »

bbeny123 wrote:
Sat Aug 05, 2023 1:54 pm
Since the 1.3.2-alpha3 version seems to be fully stable, I released it as 1.3.2 :)
https://github.com/bbeny123/mp4muxer/releases/tag/1.3.2

Version 1.3.2 differs from 1.3.1 in that for DV profiles > 7 the codec configuration box is set to dvcC instead of dvvC (mp4box_64bits 1.0.0 also set dvcC).
This is non-compliant with Dolby's documentation, but as we can see Oppo and older LG TVs are also non-compliant (as only this setting works on them).
Thanks! But I noticed, the --dvh1flag option is not working. This would be necessary for playback on Apple TV (with tvOS 17). Can you fix it?
This solution works until: https://github.com/rixtox/mp4dovi
bbeny123
Posts: 19
Joined: Tue Aug 01, 2023 6:33 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by bbeny123 »

NiCE77 wrote:
Sun Aug 06, 2023 8:44 am
Thanks! But I noticed, the --dvh1flag option is not working. This would be necessary for playback on Apple TV (with tvOS 17). Can you fix it?
This solution works until: https://github.com/rixtox/mp4dovi
Since its introduction, the '--dvh1flag {trackId}' flag has only worked with DV profiles: 1, 3 or 5. I have lifted this restriction.
Version 1.3.3: https://github.com/bbeny123/mp4muxer/releases/tag/1.3.3
Last edited by bbeny123 on Sun Aug 06, 2023 12:35 pm, edited 1 time in total.
RESET_9999
Posts: 2383
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

NiCE77 wrote:
Sun Aug 06, 2023 8:44 am

Thanks! But I noticed, the --dvh1flag option is not working. This would be necessary for playback on Apple TV (with tvOS 17). Can you fix it?
This solution works until: https://github.com/rixtox/mp4dovi
but why use the mp4muxer at all for ATV or new TV (2019+) when mp4box can mux directly lossless audio + subs + chapter?
Sorry for my English.
G5 / AM6B+ / Denon 7.2.4
DoVi_Scripts
DoVi Playback Devices
Lapihin_A
Posts: 12
Joined: Fri Jul 23, 2021 8:44 am

Re: Dolby Vision now possible through MP4 Mux.

Post by Lapihin_A »

Please share the file "SDR_heatmap.cube".
Lapihin_A
Posts: 12
Joined: Fri Jul 23, 2021 8:44 am

Re: Dolby Vision now possible through MP4 Mux.

Post by Lapihin_A »

Hi @RESET_9999! When using the 6-8-3 option with video 1 (HDR10) and video 2 (DV-P5) we get these screenshots, you can see that tonemapping is applied to video 2 (DV-P5).
RESET_9999
Posts: 2383
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

Lapihin_A wrote:
Sun Aug 06, 2023 4:42 pm
Hi @RESET_9999! When using the 6-8-3 option with video 1 (HDR10) and video 2 (DV-P5) we get these screenshots, you can see that tonemapping is applied to video 2 (DV-P5).
unless you're using an older version of the script, the latest ones no longer tonemap to SDR for 6-8-3.
if you're using the latest beta, are you sure it's not just your two sources that are different?
I know some BCORE webdl are incorrectly flagged as a ''full range'' which messes up the black levels.
Lapihin_A wrote:
Sun Aug 06, 2023 3:22 pm
Please share the file "SDR_heatmap.cube".
https://drive.google.com/file/d/1Ix3JT6 ... drive_link
Sorry for my English.
G5 / AM6B+ / Denon 7.2.4
DoVi_Scripts
DoVi Playback Devices
Lapihin_A
Posts: 12
Joined: Fri Jul 23, 2021 8:44 am

Re: Dolby Vision now possible through MP4 Mux.

Post by Lapihin_A »

RESET_9999 wrote:
Sun Aug 06, 2023 5:00 pm
Lapihin_A wrote:
Sun Aug 06, 2023 4:42 pm
Hi @RESET_9999! When using the 6-8-3 option with video 1 (HDR10) and video 2 (DV-P5) we get these screenshots, you can see that tonemapping is applied to video 2 (DV-P5).
unless you're using an older version of the script, the latest ones no longer tonemap to SDR for 6-8-3.
if you're using the latest beta, are you sure it's not just your two sources that are different?
I know some BCORE webdl are incorrectly flagged as a ''full range'' which messes up the black levels.
I used your script of the latest version of "DoVi_Scripts_1.9.0.2.beta_MKV" at the moment.
SiC's BCORE video was used, which has no contrast problem unlike ROCCaT's BCORE.

Code: Select all

General
Unique ID                                : 83590475605974953443278668065443810502 (0x3EE2F0A411F5477A6A2AAA890CB20CC6)
Complete name                            : Escape.Room.2019.2160p.BCORE.WEB-DL.DTS-HD.MA.5.1.HDR.HEVC-SiC.mkv
Format                                   : Matroska
Format version                           : Version 4
File size                                : 57.2 GiB
Duration                                 : 1 h 39 min
Overall bit rate mode                    : Variable
Overall bit rate                         : 82.2 Mb/s
Frame rate                               : 23.976 FPS
Writing application                      : mkvmerge v13.0.0 ('Sharing is Caring') 64-bit
Writing library                          : libebml v1.0.0 + libmatroska v1.1.1

Video
ID                                       : 1
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Format profile                           : Main 10@L5.2@High
HDR format                               : SMPTE ST 2086, HDR10 compatible
Codec ID                                 : V_MPEGH/ISO/HEVC
Duration                                 : 1 h 39 min
Width                                    : 3 840 pixels
Height                                   : 2 160 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 23.976 (24000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0 (Type 2)
Bit depth                                : 10 bits
Default                                  : Yes
Forced                                   : No
Color range                              : Limited
Color primaries                          : BT.2020
Transfer characteristics                 : PQ
Matrix coefficients                      : BT.2020 non-constant
Mastering display color primaries        : Display P3
Mastering display luminance              : min: 0.0050 cd/m2, max: 4000 cd/m2
Maximum Content Light Level              : 3876 cd/m2
Maximum Frame-Average Light Level        : 852 cd/m2

Audio
ID                                       : 2
Format                                   : DTS XLL
Format/Info                              : Digital Theater Systems
Commercial name                          : DTS-HD Master Audio
Codec ID                                 : A_DTS
Duration                                 : 1 h 39 min
Bit rate mode                            : Variable
Channel(s)                               : 6 channels
Channel layout                           : C L R Ls Rs LFE
Sampling rate                            : 48.0 kHz
Frame rate                               : 93.750 FPS (512 SPF)
Bit depth                                : 16 bits
Compression mode                         : Lossless
Delay relative to video                  : 2 ms
Language                                 : English
Default                                  : Yes
Forced                                   : No

Text #1
ID                                       : 3
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Language                                 : English
Default                                  : No
Forced                                   : No

Text #2
ID                                       : 4
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Title                                    : SDH
Language                                 : English
Default                                  : No
Forced                                   : No

Text #3
ID                                       : 5
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Language                                 : Arabic
Default                                  : No
Forced                                   : No

Text #4
ID                                       : 6
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Language                                 : Cantonese
Default                                  : No
Forced                                   : No

Text #5
ID                                       : 7
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Title                                    : Simplified
Language                                 : Chinese-cmn-simple
Default                                  : No
Forced                                   : No

Text #6
ID                                       : 8
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Title                                    : Traditional
Language                                 : Mandarin
Default                                  : No
Forced                                   : No

Text #7
ID                                       : 9
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Language                                 : Croatian
Default                                  : No
Forced                                   : No

Text #8
ID                                       : 10
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Language                                 : Czech
Default                                  : No
Forced                                   : No

Text #9
ID                                       : 11
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Language                                 : Danish
Default                                  : No
Forced                                   : No

Text #10
ID                                       : 12
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Language                                 : Dutch
Default                                  : No
Forced                                   : No

Text #11
ID                                       : 13
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Language                                 : Finnish
Default                                  : No
Forced                                   : No

Text #12
ID                                       : 14
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Language                                 : French
Default                                  : No
Forced                                   : No

Text #13
ID                                       : 15
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Language                                 : German
Default                                  : No
Forced                                   : No

Text #14
ID                                       : 16
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Language                                 : Greek
Default                                  : No
Forced                                   : No

Text #15
ID                                       : 17
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Language                                 : Hebrew
Default                                  : No
Forced                                   : No

Text #16
ID                                       : 18
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Language                                 : Hungarian
Default                                  : No
Forced                                   : No

Text #17
ID                                       : 19
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Language                                 : Icelandic
Default                                  : No
Forced                                   : No

Text #18
ID                                       : 20
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Language                                 : Indonesian
Default                                  : No
Forced                                   : No

Text #19
ID                                       : 21
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Language                                 : Italian
Default                                  : No
Forced                                   : No

Text #20
ID                                       : 22
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Language                                 : Korean
Default                                  : No
Forced                                   : No

Text #21
ID                                       : 23
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Language                                 : Norwegian
Default                                  : No
Forced                                   : No

Text #22
ID                                       : 24
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Language                                 : Polish
Default                                  : No
Forced                                   : No

Text #23
ID                                       : 25
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Title                                    : Brazilian
Language                                 : Portuguese (BR)
Default                                  : No
Forced                                   : No

Text #24
ID                                       : 26
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Title                                    : Iberian
Language                                 : Portuguese (PT)
Default                                  : No
Forced                                   : No

Text #25
ID                                       : 27
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Language                                 : Romanian
Default                                  : No
Forced                                   : No

Text #26
ID                                       : 28
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Language                                 : Russian
Default                                  : No
Forced                                   : No

Text #27
ID                                       : 29
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Title                                    : Castilian
Language                                 : Spanish (ES)
Default                                  : No
Forced                                   : No

Text #28
ID                                       : 30
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Language                                 : Swedish
Default                                  : No
Forced                                   : No

Text #29
ID                                       : 31
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Language                                 : Thai
Default                                  : No
Forced                                   : No

Text #30
ID                                       : 32
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Language                                 : Ukrainian
Default                                  : No
Forced                                   : No

Text #31
ID                                       : 33
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Language                                 : Vietnamese
Default                                  : No
Forced                                   : No

Menu
00:00:00.000                             : en:Chapter 1
00:04:35.025                             : en:Chapter 2
00:09:24.647                             : en:Chapter 3
00:14:07.764                             : en:Chapter 4
00:19:45.101                             : en:Chapter 5
00:25:54.219                             : en:Chapter 6
00:33:07.944                             : en:Chapter 7
00:37:26.161                             : en:Chapter 8
00:43:04.081                             : en:Chapter 9
00:50:05.169                             : en:Chapter 10
00:53:57.568                             : en:Chapter 11
01:03:14.290                             : en:Chapter 12
01:09:06.893                             : en:Chapter 13
01:16:13.694                             : en:Chapter 14
01:22:47.754                             : en:Chapter 15
01:30:26.880                             : en:Chapter 16
Lapihin_A
Posts: 12
Joined: Fri Jul 23, 2021 8:44 am

Re: Dolby Vision now possible through MP4 Mux.

Post by Lapihin_A »

Also, when using the 6-6-2 option, an error appears.

Code: Select all

D:\Movies_Soft\DoVi_Scripts>TITLE DoVi_Scripts_1.9.0.2.beta

D:\Movies_Soft\DoVi_Scripts>set output_path=D:\Movies_Soft\DoVi_Scripts\

D:\Movies_Soft\DoVi_Scripts>for %i in (D:\Movies_Soft\DoVi_Scripts\) do set letterpath=%~di

D:\Movies_Soft\DoVi_Scripts>set letterpath=D:

D:\Movies_Soft\DoVi_Scripts>cd /d "D:\Movies_Soft\DoVi_Scripts\"

D:\Movies_Soft\DoVi_Scripts>set temp_folder=D:\Movies_Soft\DoVi_Scripts\TEMP_folder

D:\Movies_Soft\DoVi_Scripts>set container=MKV

D:\Movies_Soft\DoVi_Scripts>set MUX=YES

D:\Movies_Soft\DoVi_Scripts>set mp4_version=NEW

D:\Movies_Soft\DoVi_Scripts>set mux_all_audio=YES

D:\Movies_Soft\DoVi_Scripts>set mux_all_sub=YES

D:\Movies_Soft\DoVi_Scripts>set encode_DDP=YES

D:\Movies_Soft\DoVi_Scripts>set encode_7.1=YES

D:\Movies_Soft\DoVi_Scripts>set encode_LPCM=NO

D:\Movies_Soft\DoVi_Scripts>set keep_lossless=YES

D:\Movies_Soft\DoVi_Scripts>set keep_rpu=NO

D:\Movies_Soft\DoVi_Scripts>set keep_EL=NO

D:\Movies_Soft\DoVi_Scripts>set export.subs=NO

D:\Movies_Soft\DoVi_Scripts>set drop.HDR10plus=NO

D:\Movies_Soft\DoVi_Scripts>set auto.crop=YES

D:\Movies_Soft\DoVi_Scripts>set overwrite.L2=YES

D:\Movies_Soft\DoVi_Scripts>set remove_100=NO

D:\Movies_Soft\DoVi_Scripts>set remove_600=NO

D:\Movies_Soft\DoVi_Scripts>set remove_1000=NO

D:\Movies_Soft\DoVi_Scripts>set validate_metadata=NO

D:\Movies_Soft\DoVi_Scripts>set rem_cmv4=NO

D:\Movies_Soft\DoVi_Scripts>set scene_detect_type=detect-adaptive

D:\Movies_Soft\DoVi_Scripts>set L1_Tuning=1

D:\Movies_Soft\DoVi_Scripts>set upscale=YES

D:\Movies_Soft\DoVi_Scripts>set input.delay=NO

D:\Movies_Soft\DoVi_Scripts>set plot_100=NO

D:\Movies_Soft\DoVi_Scripts>set auto_scale_plot=NO

D:\Movies_Soft\DoVi_Scripts>set timestamp=00:00:00-00:05:00

D:\Movies_Soft\DoVi_Scripts>set frame_number=50

D:\Movies_Soft\DoVi_Scripts>set qscale=6

D:\Movies_Soft\DoVi_Scripts>set keep_prores=NO

D:\Movies_Soft\DoVi_Scripts>set english=YES

D:\Movies_Soft\DoVi_Scripts>set french=NO

D:\Movies_Soft\DoVi_Scripts>set spanish=NO

D:\Movies_Soft\DoVi_Scripts>set german=NO

D:\Movies_Soft\DoVi_Scripts>set italian=NO

D:\Movies_Soft\DoVi_Scripts>set chinese=NO

D:\Movies_Soft\DoVi_Scripts>set dutch=NO

D:\Movies_Soft\DoVi_Scripts>set finish=NO

D:\Movies_Soft\DoVi_Scripts>set russian=NO

D:\Movies_Soft\DoVi_Scripts>set polish=NO

D:\Movies_Soft\DoVi_Scripts>set japenese=NO

D:\Movies_Soft\DoVi_Scripts>set portuguese=NO

D:\Movies_Soft\DoVi_Scripts>if "YES" == "YES" set lang=English  & set langDG=eng  & set lmp4=en-EN  & set lmkv=en

D:\Movies_Soft\DoVi_Scripts>if "NO" == "YES" set lang=French  & set langDG=fra  & set lmp4=fr-FR  & set lmkv=fr

D:\Movies_Soft\DoVi_Scripts>if "NO" == "YES" set lang=Spanish  & set langDG=spa  & set lmp4=es-ES  & set lmkv=es

D:\Movies_Soft\DoVi_Scripts>if "NO" == "YES" set lang=German  & set langDG=deu  & set lmp4=de  & set lmkv=de

D:\Movies_Soft\DoVi_Scripts>if "NO" == "YES" set lang=Italian  & set langDG=ita  & set lmp4=it  & set lmkv=it

D:\Movies_Soft\DoVi_Scripts>if "NO" == "YES" set lang=Chinese  & set langDG=zho  & set lmp4=zh  & set lmkv=zh

D:\Movies_Soft\DoVi_Scripts>if "NO" == "YES" set lang=Dutch  & set langDG=nld  & set lmp4=nl  & set lmkv=nl

D:\Movies_Soft\DoVi_Scripts>if "NO" == "YES" set lang=Finish  & set langDG=fin  & set lmp4=fi  & set lmkv=fi

D:\Movies_Soft\DoVi_Scripts>if "NO" == "YES" set lang=Russian  & set langDG=rus  & set lmp4=ru  & set lmkv=ru

D:\Movies_Soft\DoVi_Scripts>if "NO" == "YES" set lang=Polish  & set langDG=pol  & set lmp4=po  & set lmkv=po

D:\Movies_Soft\DoVi_Scripts>if "NO" == "YES" set lang=Japenese  & set langDG=jpn  & set lmp4=jp  & set lmkv=jp

D:\Movies_Soft\DoVi_Scripts>if "NO" == "YES" set lang=Portuguese  & set langDG=por  & set lmp4=po  & set lmkv=po

D:\Movies_Soft\DoVi_Scripts>if "en" == "" set lmkv=und

D:\Movies_Soft\DoVi_Scripts>if "en-EN" == "" set lmp4=und

D:\Movies_Soft\DoVi_Scripts>if "eng" == "" set langDG=und

D:\Movies_Soft\DoVi_Scripts>if "English" == "" set lang=undetermined

D:\Movies_Soft\DoVi_Scripts>set dovi_tool_path=D:\Movies_Soft\Program_Files\HDR10plus_DV_Metadata\dovi_tool\dovi_tool.exe

D:\Movies_Soft\DoVi_Scripts>set dovi_tool_FIX_path=D:\Movies_Soft\Program_Files\HDR10plus_DV_Metadata\dovi_tool\dovi_tool.fix.exe

D:\Movies_Soft\DoVi_Scripts>set hdr10plus_parser_path=D:\Movies_Soft\Program_Files\HDR10plus_DV_Metadata\hdr10plus_tool\hdr10plus_tool.exe

D:\Movies_Soft\DoVi_Scripts>set tsmuxer_path=D:\Movies_Soft\Program_Files\tsMuxeR\tsMuxeR.exe

D:\Movies_Soft\DoVi_Scripts>set tsmuxer.GUI_path=D:\Movies_Soft\Program_Files\tsMuxeR\tsMuxeRGUI.exe

D:\Movies_Soft\DoVi_Scripts>set ffmpeg_path=D:\Movies_Soft\Program_Files\ffmpeg\bin\ffmpeg.exe

D:\Movies_Soft\DoVi_Scripts>set ffprobe_path=D:\Movies_Soft\Program_Files\ffmpeg\bin\ffprobe.exe

D:\Movies_Soft\DoVi_Scripts>set mkvmerge_path=D:\Movies_Soft\Program_Files\MKVToolNix\mkvmerge.exe

D:\Movies_Soft\DoVi_Scripts>set mkvtoolnix_path=D:\Movies_Soft\Program_Files\MKVToolNix\mkvtoolnix-gui.exe

D:\Movies_Soft\DoVi_Scripts>set mkvextract_path=D:\Movies_Soft\Program_Files\MKVToolNix\mkvextract.exe

D:\Movies_Soft\DoVi_Scripts>set madvr_path=D:\Movies_Soft\Program_Files\madVR\madMeasureHDR.exe

D:\Movies_Soft\DoVi_Scripts>set AC3.64kbps_path=D:\Movies_Soft\DoVi_Scripts\tools\64kbps.Silent.AC3.Track.ac3

D:\Movies_Soft\DoVi_Scripts>set thdmerge_path=D:\Movies_Soft\DoVi_Scripts\tools\thdmerge.exe

D:\Movies_Soft\DoVi_Scripts>set mp4muxer_path=D:\Movies_Soft\DoVi_Scripts\tools\mp4muxer.exe

D:\Movies_Soft\DoVi_Scripts>set mp4muxerNEW_path=D:\Movies_Soft\DoVi_Scripts\tools\mp4muxerNEW.exe

D:\Movies_Soft\DoVi_Scripts>set mp4demuxer_path=D:\Movies_Soft\DoVi_Scripts\tools\mp4demuxer.exe

D:\Movies_Soft\DoVi_Scripts>set mp4box_path=D:\Movies_Soft\DoVi_Scripts\tools\GPAC\mp4box.exe

D:\Movies_Soft\DoVi_Scripts>set mp4box2_path=D:\Movies_Soft\DoVi_Scripts\tools\GPAC2.0\mp4box.exe

D:\Movies_Soft\DoVi_Scripts>set DVH1=D:\Movies_Soft\DoVi_Scripts\tools\DoVi_mp4_DVH1.exe

D:\Movies_Soft\DoVi_Scripts>set detectborders_path=D:\Movies_Soft\DoVi_Scripts\tools\DetectBorders.exe

D:\Movies_Soft\DoVi_Scripts>set mediainfo_path=D:\Movies_Soft\Program_Files\MediaInfo_CLI_23.07_Windows_x64\mediainfo.exe

D:\Movies_Soft\DoVi_Scripts>set delaycut=D:\Movies_Soft\DoVi_Scripts\tools\delaycut.exe

D:\Movies_Soft\DoVi_Scripts>set DGDemux_path=D:\Movies_Soft\Program_Files\DGDemux\DGDemux.exe

D:\Movies_Soft\DoVi_Scripts>set eac3to_path=D:\Movies_Soft\Program_Files\UsEac3to\eac3to.exe

D:\Movies_Soft\DoVi_Scripts>set JQ_path=D:\Movies_Soft\Program_Files\JQ\jq-win64.exe

D:\Movies_Soft\DoVi_Scripts>set MPV_path=D:\Movies_Soft\Program_Files\mpv\mpv.com

D:\Movies_Soft\DoVi_Scripts>set plotbitrate_path=D:\Movies_Soft\Program_Files\plotbitrate-main\plotbitrate.py

D:\Movies_Soft\DoVi_Scripts>set EAE_path=D:\Movies_Soft\DoVi_Scripts\tools\EAE

D:\Movies_Soft\DoVi_Scripts>set EAE=D:\Movies_Soft\DoVi_Scripts\tools\EAE\EasyAudioEncoder.exe

D:\Movies_Soft\DoVi_Scripts>set wave=D:\Movies_Soft\DoVi_Scripts\tools\audiowaveform.exe

D:\Movies_Soft\DoVi_Scripts>set PLEX=D:\Movies_Soft\DoVi_Scripts\tools\EAE\PlexTranscoder.exe

D:\Movies_Soft\DoVi_Scripts>set supfoe=D:\Movies_Soft\DoVi_Scripts\tools\SUPfoe.exe

D:\Movies_Soft\DoVi_Scripts>set languages=D:\Movies_Soft\DoVi_Scripts\tools\languages.bat

D:\Movies_Soft\DoVi_Scripts>set imagemagick=D:\Movies_Soft\Program_Files\ImageMagick-7.1.1-Q16-HDRI\magick.exe

D:\Movies_Soft\DoVi_Scripts>set RPU.to.XML=D:\Movies_Soft\Program_Files\HDR10plus_DV_Metadata\RPU.to.XML\dovi_meta.exe

D:\Movies_Soft\DoVi_Scripts>set scenedetect_path=D:\Movies_Soft\Program_Files\PySceneDetect-0.6.1\scenedetect.exe

D:\Movies_Soft\DoVi_Scripts>set gnuplot=D:\Movies_Soft\Program_Files\gnuplot\bin\gnuplot.exe

D:\Movies_Soft\DoVi_Scripts>set AvsPmod_path=D:\Movies_Soft\Program_Files\AvsPmod\AvsPmod.exe

D:\Movies_Soft\DoVi_Scripts>set DGIndexNV_path=D:\Movies_Soft\Program_Files\DGDecNV\DGIndexNV.exe

D:\Movies_Soft\DoVi_Scripts>set DGDecodeNV.dll=D:\Movies_Soft\Program_Files\DGDecNV\DGDecodeNV.dll

D:\Movies_Soft\DoVi_Scripts>set DoViBaker=D:\Movies_Soft\Program_Files\HDR10plus_DV_Metadata\DoViBaker\DoViBaker_x64.dll

D:\Movies_Soft\DoVi_Scripts>set ffms2=D:\Movies_Soft\Program_Files\ffms2\x64\ffms2.dll

D:\Movies_Soft\DoVi_Scripts>set ffmsindex=D:\Movies_Soft\Program_Files\ffms2\x64\ffmsindex.exe

D:\Movies_Soft\DoVi_Scripts>set heat_map=D:\Movies_Soft\Program_Files\heatmap\

D:\Movies_Soft\DoVi_Scripts>set metafier_path=D:\Movies_Soft\Program_Files\HDR10plus_DV_Metadata\Dolby_Vision_Professional_Tools_v5.4.0\metafier.exe

D:\Movies_Soft\DoVi_Scripts>set cm_analyzer_path=D:\Movies_Soft\Program_Files\HDR10plus_DV_Metadata\Dolby_Vision_Professional_Tools_v5.4.0\cm_analyze.exe

D:\Movies_Soft\DoVi_Scripts>set DEE_path=D:\other\DEE\dee.exe

D:\Movies_Soft\DoVi_Scripts>set frame.to.read_path=100

D:\Movies_Soft\DoVi_Scripts>if "D:" == "C:" (
echo WARNING!
 echo OS drive output path(C:\) detected, some function are now restricted and some workflow might not work properly... 
 echo Put the script folder on a non-OS drive...   & set MUX=NO  & set encode_DDP=NO
)

D:\Movies_Soft\DoVi_Scripts>echo.


D:\Movies_Soft\DoVi_Scripts>echo                         _____    __      ___       _____           _       _
                        _____    __      ___       _____           _       _

D:\Movies_Soft\DoVi_Scripts>echo                        |  __ \   \ \    / (_)     / ____|         (_)     | |
                       |  __ \   \ \    / (_)     / ____|         (_)     | |

D:\Movies_Soft\DoVi_Scripts>echo                        | |  | | __\ \  / / _     | (___   ___ _ __ _ _ __ | |_ ___
                       | |  | | __\ \  / / _     | (___   ___ _ __ _ _ __ | |_ ___

D:\Movies_Soft\DoVi_Scripts>echo                        | |  | |/ _ \ \/ / | |     \___ \ / __| '__| | '_ \| __/ __|
                       | |  | |/ _ \ \/ / | |     \___ \ / __| '__| | '_ \| __/ __|

D:\Movies_Soft\DoVi_Scripts>echo                        | |__| | (_) \  /  | |     ____) | (__| |  | | |_) | |_\__ \
                       | |__| | (_) \  /  | |     ____) | (__| |  | | |_) | |_\__ \

D:\Movies_Soft\DoVi_Scripts>echo                        |_____/ \___/ \/   |_|    |_____/ \___|_|  |_| .__/ \__|___/
                       |_____/ \___/ \/   |_|    |_____/ \___|_|  |_| .__/ \__|___/

D:\Movies_Soft\DoVi_Scripts>echo                        -@RESET_9999---------------------------------|__|-----------    
                       -@RESET_9999---------------------------------|__|-----------

D:\Movies_Soft\DoVi_Scripts>echo.


D:\Movies_Soft\DoVi_Scripts>echo.


D:\Movies_Soft\DoVi_Scripts>echo.


D:\Movies_Soft\DoVi_Scripts>echo  Choose a mode...
 Choose a mode...

D:\Movies_Soft\DoVi_Scripts>echo.


D:\Movies_Soft\DoVi_Scripts>echo 1) MODE.I=  DoVi Inject/Convert/Edit/Re-sync TWO INPUTS (P8 Hybrid maker/Injector)
1) MODE.I=  DoVi Inject/Convert/Edit/Re-sync TWO INPUTS (P8 Hybrid maker/Injector)

D:\Movies_Soft\DoVi_Scripts>echo 2) MODE.F=  DoVi Fix/Edit/Extract/Verify/Info ONE INPUT
2) MODE.F=  DoVi Fix/Edit/Extract/Verify/Info ONE INPUT

D:\Movies_Soft\DoVi_Scripts>echo 3) MODE.H=  DoVi Maker from HDR10 (Dolby Algo or madVR or HDR10plus)
3) MODE.H=  DoVi Maker from HDR10 (Dolby Algo or madVR or HDR10plus)

D:\Movies_Soft\DoVi_Scripts>echo 4) MODE.P=  DoVi Profile 7 Input (MKV/BDMV)
4) MODE.P=  DoVi Profile 7 Input (MKV/BDMV)

D:\Movies_Soft\DoVi_Scripts>echo 5) MODE.B=  Dovi Batch Muxer
5) MODE.B=  Dovi Batch Muxer

D:\Movies_Soft\DoVi_Scripts>echo 6) MODE.M=  MIXED: Plot/Audio/Screenshots/Remove/Player/Encoder and more...
6) MODE.M=  MIXED: Plot/Audio/Screenshots/Remove/Player/Encoder and more...

D:\Movies_Soft\DoVi_Scripts>echo 7) MODE.M4= MP4 Workflows
7) MODE.M4= MP4 Workflows

D:\Movies_Soft\DoVi_Scripts>echo 8) Exit
8) Exit

D:\Movies_Soft\DoVi_Scripts>echo.


D:\Movies_Soft\DoVi_Scripts>choice /C:12345678 /M Choice?
Choice? [1,2,3,4,5,6,7,8]?6

D:\Movies_Soft\DoVi_Scripts>if ERRORLEVEL 8 (Exit)

D:\Movies_Soft\DoVi_Scripts>if ERRORLEVEL 7 (goto :MODE.M4 )

D:\Movies_Soft\DoVi_Scripts>if ERRORLEVEL 6 (goto :MODE.M )

D:\Movies_Soft\DoVi_Scripts>echo                                            *****************
                                           *****************

D:\Movies_Soft\DoVi_Scripts>echo                                            * CHOOSE A MODE *
                                           * CHOOSE A MODE *

D:\Movies_Soft\DoVi_Scripts>echo                                            *****************
                                           *****************

D:\Movies_Soft\DoVi_Scripts>echo.


D:\Movies_Soft\DoVi_Scripts>echo 1) MODE.1= DV/HDR10+ REMOVER
1) MODE.1= DV/HDR10+ REMOVER

D:\Movies_Soft\DoVi_Scripts>echo 2) MODE.2= Measurer
2) MODE.2= Measurer

D:\Movies_Soft\DoVi_Scripts>echo 3) MODE.3= AUDIO encoding
3) MODE.3= AUDIO encoding

D:\Movies_Soft\DoVi_Scripts>echo 4) MODE.4= Find main movie playlist (BD MPLS)
4) MODE.4= Find main movie playlist (BD MPLS)

D:\Movies_Soft\DoVi_Scripts>echo 5) MODE.5= HDR10plus INJECTOR/EXTRACTOR
5) MODE.5= HDR10plus INJECTOR/EXTRACTOR

D:\Movies_Soft\DoVi_Scripts>echo 6) MODE.6= MPV DV-P5/HDR10 player
6) MODE.6= MPV DV-P5/HDR10 player

D:\Movies_Soft\DoVi_Scripts>echo 7) MODE.7= Sample maker (creates 5min chunk)
7) MODE.7= Sample maker (creates 5min chunk)

D:\Movies_Soft\DoVi_Scripts>echo 8) MODE.8= Screenshot comparisons maker (DoVi_baker, Libplacebo, Heat/gamut map)
8) MODE.8= Screenshot comparisons maker (DoVi_baker, Libplacebo, Heat/gamut map)

D:\Movies_Soft\DoVi_Scripts>echo 9) MODE.9= Encode P5/p7 FEL DV to HDR10 or SDR
9) MODE.9= Encode P5/p7 FEL DV to HDR10 or SDR

D:\Movies_Soft\DoVi_Scripts>echo.


D:\Movies_Soft\DoVi_Scripts>choice /C:123456789 /M Choice?
Choice? [1,2,3,4,5,6,7,8,9]?6

D:\Movies_Soft\DoVi_Scripts>if ERRORLEVEL 9 (goto :MODE.9 )

D:\Movies_Soft\DoVi_Scripts>if ERRORLEVEL 8 (goto :MODE.8 )

D:\Movies_Soft\DoVi_Scripts>if ERRORLEVEL 7 (goto :MODE.7 )

D:\Movies_Soft\DoVi_Scripts>if ERRORLEVEL 6 (goto :MODE.6 )

D:\Movies_Soft\DoVi_Scripts>echo                                            *****************
                                           *****************

D:\Movies_Soft\DoVi_Scripts>echo                                            * CHOOSE A MODE *
                                           * CHOOSE A MODE *

D:\Movies_Soft\DoVi_Scripts>echo                                            *****************
                                           *****************

D:\Movies_Soft\DoVi_Scripts>echo -----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------

D:\Movies_Soft\DoVi_Scripts>echo -- These modes can play P5-DV / HDR10 / HLG  in PQ or SDR
-- These modes can play P5-DV / HDR10 / HLG  in PQ or SDR

D:\Movies_Soft\DoVi_Scripts>echo -- Press "s" to export lossless screenshots. PNG will be in Dolby-Vision-Tools\tools\MPV
-- Press "s" to export lossless screenshots. PNG will be in Dolby-Vision-Tools\tools\MPV

D:\Movies_Soft\DoVi_Scripts>echo -- I'm not sure if this will work if your pc doesnt have a GPU
-- I'm not sure if this will work if your pc doesnt have a GPU

D:\Movies_Soft\DoVi_Scripts>echo -----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------

D:\Movies_Soft\DoVi_Scripts>echo 1) MODE.PQ= MPV Play HDR10/DV/HLG in PQ (HDR10)
1) MODE.PQ= MPV Play HDR10/DV/HLG in PQ (HDR10)

D:\Movies_Soft\DoVi_Scripts>echo 2) MODE.AUTO= MPV Play HDR10/DV/HLG in SDR
2) MODE.AUTO= MPV Play HDR10/DV/HLG in SDR

D:\Movies_Soft\DoVi_Scripts>echo 3) MODE.3= Back to main menu
3) MODE.3= Back to main menu

D:\Movies_Soft\DoVi_Scripts>echo.


D:\Movies_Soft\DoVi_Scripts>choice /C:123 /M Choice?
Choice? [1,2,3]?2

D:\Movies_Soft\DoVi_Scripts>if ERRORLEVEL 3 (goto :Main.Menu )

D:\Movies_Soft\DoVi_Scripts>if ERRORLEVEL 2 (goto :MODE.AUTO )

D:\Movies_Soft\DoVi_Scripts>echo   Drag and drop a video file and press enter...  & set /p input=
  Drag and drop a video file and press enter...
W:\_Work\Escape.Room.2019\Escape.Room.2019.2160p.DolbyVision.WEB-DL.DTS-HD.MA.5.1.H.265-BLUTONiUM\Escape.Room.2019.DolbyVision.mkv

D:\Movies_Soft\DoVi_Scripts>Setlocal EnableDelayedExpansion

D:\Movies_Soft\DoVi_Scripts>for %i in (!input!) do set filename=%~ni

D:\Movies_Soft\DoVi_Scripts>set filename=Escape.Room.2019.DolbyVision

D:\Movies_Soft\DoVi_Scripts>Setlocal DisableDelayedExpansion

D:\Movies_Soft\DoVi_Scripts>D:\Movies_Soft\Program_Files\mpv\mpv.com --target-trc=auto --target-prim=auto --vo=gpu-next --gpu-context=d3d11 --screenshot-format=png --screenshot-png-compression=1 --screenshot-directory=D:\Movies_Soft\DoVi_Scripts\ --screenshot-template="Escape.Room.2019.DolbyVision" "Escape.Room.2019.DolbyVision"
[file] Cannot open file 'Escape.Room.2019.DolbyVision': No such file or directory
Failed to open Escape.Room.2019.DolbyVision.

Exiting... (Errors when loading file)

D:\Movies_Soft\DoVi_Scripts>goto :againqqq

D:\Movies_Soft\DoVi_Scripts>echo   Drag and drop a video file and press enter...  & set /p input=
  Drag and drop a video file and press enter...
Post Reply