Dolby Vision now possible through MP4 Mux.

Please post here for issues related to UHD discs
Trees
Posts: 41
Joined: Sat Sep 03, 2022 8:04 am

Re: Dolby Vision now possible through MP4 Mux.

Post by Trees » Fri Nov 24, 2023 9:03 am

RESET_9999 wrote:
Thu Nov 23, 2023 11:56 am
Trees wrote:
Thu Nov 23, 2023 9:39 am
Hey all. As of recently, I'm getting the current errors for script 3-1. Worked great in the past, however, it recenty started spitting out errors:
Any ideas as to what it could be?
looks like your scene cuts file is wrong. whats the input release name?
"S01E01 - The Holy Trinity Full is SDH 2160p HDR10 Amazon WEB-DL.mkv"

No "(". Purposely removed the "(" and ")".

RESET_9999
Posts: 2085
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 » Fri Nov 24, 2023 12:15 pm

Trees wrote:
Fri Nov 24, 2023 9:03 am
"S01E01 - The Holy Trinity Full is SDH 2160p HDR10 Amazon WEB-DL.mkv"
o yeah, I forgot about the old amazon HDR10plus webdl without a profile. They need --skip-validation in order to extract the metadata/shot list.
will be fixed in the next version.

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

Re: Dolby Vision now possible through MP4 Mux.

Post by Gatorman » Fri Nov 24, 2023 2:19 pm

speeddemon wrote:
Fri Nov 24, 2023 3:52 am

The problem is that the BL is 203759 frames and the EL & RPU are both only 203758 frames. I can't do that with 2-1-1 though since it'll only effect the RPU, right? Any ideas on how to remove 1 frame just from the BL in the AVS?
What about using the Preview tab in StaxRip to ignore the final frame from the BL before encoding?
More reasons to collect physical media. 2019 Shield TV Pro.

RESET_9999
Posts: 2085
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 » Fri Nov 24, 2023 3:03 pm

Gatorman wrote:
Fri Nov 24, 2023 2:19 pm
What about using the Preview tab in StaxRip to ignore the final frame from the BL before encoding?
Preview will not work if the script can't be played in the first place.

Anyway, no reason why the trim in avisynth wouldn't work if it's just the BL that need trimming.

TheEqualizer
Posts: 50
Joined: Tue Feb 21, 2023 3:50 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by TheEqualizer » Fri Nov 24, 2023 9:28 pm

RESET_9999, Hi! When using DoVi_Scripts_MP4 (last version) point 5, if you apply an mkv with audio delay to the input, then we get a "broken" mp4 at the output. What is the problem and how can it be fixed so that everything in mp4 is identical to the mkv file?
Input file
https://ibb.co/mzsq3SP
Output file
https://ibb.co/C02ndrm

RESET_9999
Posts: 2085
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 » Fri Nov 24, 2023 10:43 pm

thanks for reporting, I'll check it out.

Trees
Posts: 41
Joined: Sat Sep 03, 2022 8:04 am

Re: Dolby Vision now possible through MP4 Mux.

Post by Trees » Fri Nov 24, 2023 10:55 pm

RESET_9999 wrote:
Fri Nov 24, 2023 12:15 pm
Trees wrote:
Fri Nov 24, 2023 9:03 am
"S01E01 - The Holy Trinity Full is SDH 2160p HDR10 Amazon WEB-DL.mkv"
o yeah, I forgot about the old amazon HDR10plus webdl without a profile. They need --skip-validation in order to extract the metadata/shot list.
will be fixed in the next version.
Thanks brother. I'll wait patiently. :)

RESET_9999
Posts: 2085
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 » Fri Nov 24, 2023 10:56 pm

Trees wrote:
Fri Nov 24, 2023 10:55 pm
Thanks brother. I'll wait patiently. :)
no need to wait, I already released a fix a couple of hours ago. :)

TheEqualizer
Posts: 50
Joined: Tue Feb 21, 2023 3:50 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by TheEqualizer » Sat Nov 25, 2023 7:40 am

RESET_9999 wrote:
Fri Nov 24, 2023 10:43 pm
thanks for reporting, I'll check it out.
And also, for interest, I ran the finished movie through the script, the script completely recoded all the sound from eac3 to ac3, spoiling it, he can't just transfer everything from the mkv container to mp4 without changes?

biet1234
Posts: 1
Joined: Sat Nov 25, 2023 10:40 am

Re: Dolby Vision now possible through MP4 Mux.

Post by biet1234 » Sat Nov 25, 2023 10:46 am

thank you for these scripts! sorry for beginner question.

I have a mkv file with 1 HDR track and 1 dts 5.1 audio track. I want to remux to mkv file with original HDR video track and the audio track converted to Dolby digital (plus). Is this currently possible with these scripts?

RESET_9999
Posts: 2085
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 » Sat Nov 25, 2023 1:36 pm

TheEqualizer wrote:
Sat Nov 25, 2023 7:40 am
And also, for interest, I ran the finished movie through the script, the script completely recoded all the sound from eac3 to ac3, spoiling it, he can't just transfer everything from the mkv container to mp4 without changes?
what? that's not possible. First, the script only has codes to encode DDP and not DD and secondly, the script will encode only lossless audio which you can disable at line 65.

As for the delay, I use delay cut and it changes the codec id but the file still play in DDP fine.
can you give me your problematic file?

original mkv with delay:

Code: Select all

General
Unique ID                                : 208454677894262685689253237183981859474 (0x9CD2E91E6B684914814CCEF6F76CB292)
Complete name                            : D:\P5 SRT EC3 FORCESDR delay.mkv
Format                                   : Matroska
Format version                           : Version 4
File size                                : 730 MiB
Duration                                 : 5 min 7 s
Overall bit rate                         : 19.9 Mb/s
Frame rate                               : 24.000 FPS
Writing application                      : mkvmerge v79.0 ('Funeral Pyres') 64-bit
Writing library                          : libebml v1.4.4 + libmatroska v1.7.1

Video
ID                                       : 1
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Format profile                           : Main 10@L5@Main
HDR format                               : Dolby Vision, Version 1.0, dvhe.05.06, BL+RPU
Codec ID                                 : V_MPEGH/ISO/HEVC
Duration                                 : 5 min 6 s
Bit rate                                 : 18.0 Mb/s
Width                                    : 3 840 pixels
Height                                   : 2 160 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 24.000 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 10 bits
Bits/(Pixel*Frame)                       : 0.091
Stream size                              : 658 MiB (90%)
Default                                  : Yes
Forced                                   : No
Color range                              : Full

Audio #1
ID                                       : 2
Format                                   : E-AC-3 JOC
Format/Info                              : Enhanced AC-3 with Joint Object Coding
Commercial name                          : Dolby Digital Plus with Dolby Atmos
Codec ID                                 : A_EAC3
Duration                                 : 5 min 6 s
Bit rate mode                            : Constant
Bit rate                                 : 768 kb/s
Channel(s)                               : 6 channels
Channel layout                           : L R C LFE Ls Rs
Sampling rate                            : 48.0 kHz
Frame rate                               : 31.250 FPS (1536 SPF)
Compression mode                         : Lossy
Delay relative to video                  : 1 s 222 ms
Stream size                              : 28.0 MiB (4%)
Language                                 : English
Service kind                             : Complete Main
Default                                  : Yes
Forced                                   : No
Complexity index                         : 16
Number of dynamic objects                : 15
Bed channel count                        : 1 channel
Bed channel configuration                : LFE

Audio #2
ID                                       : 3
Format                                   : E-AC-3
Format/Info                              : Enhanced AC-3
Commercial name                          : Dolby Digital Plus
Codec ID                                 : A_EAC3
Duration                                 : 4 min 0 s
Bit rate mode                            : Constant
Bit rate                                 : 1 536 kb/s
Channel(s)                               : 6 channels
Channel layout                           : L R C LFE Ls Rs
Sampling rate                            : 48.0 kHz
Frame rate                               : 62.500 FPS (768 SPF)
Compression mode                         : Lossy
Delay relative to video                  : 1 s 222 ms
Stream size                              : 44.1 MiB (6%)
Language                                 : English
Service kind                             : Complete Main
Default                                  : Yes
Forced                                   : No

Text #1
ID                                       : 4
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Duration                                 : 3 min 53 s
Bit rate                                 : 38 b/s
Frame rate                               : 0.150 FPS
Count of elements                        : 35
Stream size                              : 1.09 KiB (0%)
Title                                    : forced
Language                                 : English
Default                                  : Yes
Forced                                   : Yes

Text #2
ID                                       : 5
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Duration                                 : 2 min 37 s
Bit rate                                 : 44 b/s
Frame rate                               : 0.172 FPS
Count of elements                        : 27
Stream size                              : 874 Bytes (0%)
Title                                    : English
Language                                 : English
Default                                  : No
Forced                                   : No

Text #3
ID                                       : 6
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Duration                                 : 2 min 38 s
Bit rate                                 : 68 b/s
Frame rate                               : 0.183 FPS
Count of elements                        : 29
Stream size                              : 1.33 KiB (0%)
Title                                    : Bulgarian (Bulgaria)
Language                                 : Bulgarian
Default                                  : No
Forced                                   : No

Text #4
ID                                       : 7
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Duration                                 : 2 min 38 s
Bit rate                                 : 41 b/s
Frame rate                               : 0.183 FPS
Count of elements                        : 29
Stream size                              : 816 Bytes (0%)
Title                                    : Croatian (Croatia)
Language                                 : Croatian
Default                                  : No
Forced                                   : No

Text #5
ID                                       : 8
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Duration                                 : 2 min 38 s
Bit rate                                 : 38 b/s
Frame rate                               : 0.183 FPS
Count of elements                        : 29
Stream size                              : 771 Bytes (0%)
Title                                    : Czech (Czechia)
Language                                 : Czech
Default                                  : No
Forced                                   : No

the output of workflow 5 with delay fixed:

Code: Select all

General
Complete name                            : D:\P5 SRT EC3 FORCESDR delay_P5_DoVi.mp4
Format                                   : mp43
Codec ID                                 : mp43 (isom/mp43/dby1)
File size                                : 730 MiB
Duration                                 : 5 min 7 s
Overall bit rate mode                    : Variable
Overall bit rate                         : 19.9 Mb/s
Frame rate                               : 24.000 FPS
Encoded date                             : 2023-11-25 13:29:44 UTC
Tagged date                              : 2023-11-25 13:29:44 UTC
Writing application                      : GPAC-1.1.0-DEV-rev1027-g1daa0b5f-master

Video
ID                                       : 1
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Format profile                           : Main 10@L5@Main
HDR format                               : Dolby Vision, Version 1.0, dvhe.05.06, BL+RPU
Codec ID                                 : dvhe
Codec ID/Info                            : High Efficiency Video Coding with Dolby Vision
Duration                                 : 5 min 6 s
Bit rate                                 : 18.0 Mb/s
Width                                    : 3 840 pixels
Height                                   : 2 160 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 24.000 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 10 bits
Bits/(Pixel*Frame)                       : 0.091
Stream size                              : 658 MiB (90%)
Default                                  : Yes
Alternate group                          : 1
Encoded date                             : 2023-11-25 13:29:43 UTC
Tagged date                              : 2023-11-25 13:29:45 UTC
Color range                              : Full
Codec configuration box                  : hvcC+dvcC

Audio #1
ID                                       : 2
Format                                   : E-AC-3 JOC
Format/Info                              : Enhanced AC-3 with Joint Object Coding
Commercial name                          : Dolby Digital Plus with Dolby Atmos
Codec ID                                 : ac-3
Duration                                 : 5 min 7 s
Bit rate mode                            : Constant
Bit rate                                 : 768 kb/s
Maximum bit rate                         : 811 kb/s
Channel(s)                               : 6 channels
Channel layout                           : L R C LFE Ls Rs
Sampling rate                            : 48.0 kHz
Frame rate                               : 31.250 FPS (1536 SPF)
Compression mode                         : Lossy
Stream size                              : 28.2 MiB (4%)
Title                                    : DDP
Language                                 : English
Service kind                             : Complete Main
Encoded date                             : 2023-11-25 13:29:45 UTC
Tagged date                              : 2023-11-25 13:29:45 UTC
Complexity index                         : Not present / 16
Number of dynamic objects                : 15
Bed channel count                        : 1 channel
Bed channel configuration                : LFE

Audio #2
ID                                       : 3
Format                                   : E-AC-3
Format/Info                              : Enhanced AC-3
Commercial name                          : Dolby Digital Plus
Codec ID                                 : ac-3
Duration                                 : 4 min 1 s
Bit rate mode                            : Constant
Bit rate                                 : 1 536 kb/s
Maximum bit rate                         : 1 573 kb/s
Channel(s)                               : 6 channels
Channel layout                           : L R C LFE Ls Rs
Sampling rate                            : 48.0 kHz
Frame rate                               : 62.500 FPS (768 SPF)
Compression mode                         : Lossy
Stream size                              : 44.3 MiB (6%)
Title                                    : DDP
Language                                 : English
Service kind                             : Complete Main
Encoded date                             : 2023-11-25 13:29:45 UTC
Tagged date                              : 2023-11-25 13:29:45 UTC

Text #1
ID                                       : 4
Format                                   : Timed Text
Codec ID                                 : tx3g
Duration                                 : 4 min 1 s
Bit rate mode                            : Variable
Bit rate                                 : 42 b/s
Frame rate                               : 0.249 FPS
Stream size                              : 1.23 KiB (0%)
Title                                    : SRT
Language                                 : English
Forced                                   : Yes
Encoded date                             : 2023-11-25 13:29:45 UTC
Tagged date                              : 2023-11-25 13:29:45 UTC
Count of events                          : 35

Text #2
ID                                       : 5
Format                                   : Timed Text
Codec ID                                 : tx3g
Duration                                 : 4 min 1 s
Bit rate mode                            : Variable
Bit rate                                 : 34 b/s
Frame rate                               : 0.220 FPS
Stream size                              : 1 021 Bytes (0%)
Title                                    : SRT
Language                                 : English
Forced                                   : No
Encoded date                             : 2023-11-25 13:29:45 UTC
Tagged date                              : 2023-11-25 13:29:45 UTC
Count of events                          : 27

Text #3
ID                                       : 6
Format                                   : Timed Text
Codec ID                                 : tx3g
Duration                                 : 4 min 2 s
Bit rate mode                            : Variable
Bit rate                                 : 50 b/s
Frame rate                               : 0.235 FPS
Stream size                              : 1.48 KiB (0%)
Title                                    : SRT
Language                                 : Bulgarian
Forced                                   : No
Encoded date                             : 2023-11-25 13:29:45 UTC
Tagged date                              : 2023-11-25 13:29:45 UTC
Count of events                          : 29

Text #4
ID                                       : 7
Format                                   : Timed Text
Codec ID                                 : tx3g
Duration                                 : 4 min 2 s
Bit rate mode                            : Variable
Bit rate                                 : 32 b/s
Frame rate                               : 0.235 FPS
Stream size                              : 971 Bytes (0%)
Title                                    : SRT
Language                                 : Croatian
Forced                                   : No
Encoded date                             : 2023-11-25 13:29:45 UTC
Tagged date                              : 2023-11-25 13:29:45 UTC
Count of events                          : 29

Text #5
ID                                       : 8
Format                                   : Timed Text
Codec ID                                 : tx3g
Duration                                 : 4 min 2 s
Bit rate mode                            : Variable
Bit rate                                 : 31 b/s
Frame rate                               : 0.235 FPS
Stream size                              : 929 Bytes (0%)
Title                                    : SRT
Language                                 : Czech
Forced                                   : No
Encoded date                             : 2023-11-25 13:29:45 UTC
Tagged date                              : 2023-11-25 13:29:45 UTC
Count of events                          : 29

Image

TheEqualizer
Posts: 50
Joined: Tue Feb 21, 2023 3:50 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by TheEqualizer » Sat Nov 25, 2023 1:58 pm

https://drive.google.com/drive/folders/ ... sp=sharing
Another nuance is whether it is possible to somehow save all the signatures that were in mkv, otherwise the script changes the names of the tracks. In other words, you need a full copy of the entire contents of the mkv container (there is no HD sound there initially), with delays, video captions, each audio track, subtitles, and so on

RESET_9999
Posts: 2085
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 » Sat Nov 25, 2023 2:18 pm

TheEqualizer wrote:
Sat Nov 25, 2023 1:58 pm
https://drive.google.com/drive/folders/ ... sp=sharing
Another nuance is whether it is possible to somehow save all the signatures that were in mkv, otherwise the script changes the names of the tracks. In other words, you need a full copy of the entire contents of the mkv container (there is no HD sound there initially), with delays, video captions, each audio track, subtitles, and so on
your DDP tracks are bluray compliant with an AC3 core and it looks like delay-cut doesn't support this type of audio, unfortunately.
And AFAIK, mp4muxer doesn't support delay. With the latest mp4box, I can set a delay but it doesn't work with the very old mp4box needed for proper DV support in all the devices(except apple)

As for the track names, yes I could keep the original name I guess...

TheEqualizer
Posts: 50
Joined: Tue Feb 21, 2023 3:50 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by TheEqualizer » Sat Nov 25, 2023 2:28 pm

It would be great if you added the ability to completely copy everything from the mkv container.
As for mp4box, and if I don't need the old version, mp4 should only work on relatively new models from 2019 and newer, the latest version of mp4box copes with this perfectly

RESET_9999
Posts: 2085
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 » Sat Nov 25, 2023 2:39 pm

TheEqualizer wrote:
Sat Nov 25, 2023 2:28 pm
It would be great if you added the ability to completely copy everything from the mkv container.
As for mp4box, and if I don't need the old version, mp4 should only work on relatively new models from 2019 and newer, the latest version of mp4box copes with this perfectly
yes you can try the new mp4box but you will have to use a very old version of the script (when I had Apple Mp4 workflows) because the newest script uses delay cut even when it's set to use the new mp4box.

I'm not sure I care enough about MP4 and those bluray compatible DDP tracks since they are very rare on retail discs and non-existent on streaming.
I know they can be encoded from lossless but the tracks I tested so far are bad quality IMO. I can even hear it in your sample, original and custom doesn't sound the same.

Post Reply