Dolby Vision now possible through MP4 Mux.

Please post here for issues related to UHD discs
begentle
Posts: 2
Joined: Thu May 04, 2023 7:25 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by begentle »

RESET_9999 wrote:
Fri May 05, 2023 1:12 am
begentle wrote:
Thu May 04, 2023 11:25 pm
What's the best way for me to check my own collection to see which FEL discs expand the picture brightness? What data should I be looking for?
Usually, the HDR10 base layer mastering display lum metadata will say 1000nits, and the RPU metadata will say 4000nits but the two only ways to really know is by plotting DV/HDR10 or by exporting some screenshots with the dovi baker.

E.G. Deep Impact:
https://slow.pics/c/nU0W23sh
https://slow.pics/c/SwbE119u

You can do all of this with the script in my signature.
That's really helpful - thanks!

I guess the next step for me is to learn how to get DoviBaker to combine the BL and FEL (any tips would be welcome!) so I can do some test re-encodes...
RESET_9999
Posts: 2090
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

TheEqualizer wrote:
Fri May 05, 2023 6:57 am
I redid it using the same old version that is in your tools folder, the result was the same, a strobe light, this suggests that the TV cannot correctly reproduce dvhe.08.06, BL+EL+RPU? If could, would I see a normal color scheme?
The flashes are the mapping in the RPU. When fel is used, you're supposed to see a 2nd video in the background like this:

Image
Last edited by RESET_9999 on Fri May 05, 2023 11:08 am, edited 1 time in total.
RESET_9999
Posts: 2090
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

Mithrandir wrote:
Fri May 05, 2023 7:59 am
Is there an option in your script to convert PGS to SRT?
No, because it requires manual verification to be accurate. I use subtitle edit.
https://github.com/SubtitleEdit/subtitleedit/releases

or most of the time , someone already converted them to srt: https://subscene.com
TheEqualizer
Posts: 51
Joined: Tue Feb 21, 2023 3:50 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by TheEqualizer »

RESET_9999 wrote:
Fri May 05, 2023 11:00 am
The flashes are the mapping in the RPU. When fel is used, you're supposed to see a 2nd video in the background like this:
I checked again, dvhe.08.06, BL+EL+RPU is not supported from mp4, only TS dvhe.07.06, BL+EL+RPU it is supported, I see both images.

In general, as I understand it, what was tricked out in that mkv (dvhe.08.06, BL+EL+RPU) is not correct and it is not necessary to do so?

And the last question, did you have the opportunity to check TS (dvhe.07.06, BL+EL+RPU) on LG OLED TV 2016-2017-2018-2019-2020-2021-2022-2023 or else on some other, since you wrote that this is the only universal option.
RESET_9999
Posts: 2090
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

TheEqualizer wrote:
Fri May 05, 2023 12:28 pm
In general, as I understand it, what was tricked out in that mkv (dvhe.08.06, BL+EL+RPU) is not correct and it is not necessary to do so?
Well, it could be right as long as FEL doesn't expand the brightness. Looks like the dynamic metadata is used.
But better just convert P7 to true P8(no el and remove mapping) for playback on non-fel devices but once again, as long as FEL doesn't expand the brightness
And the last question, did you have the opportunity to check TS (dvhe.07.06, BL+EL+RPU) on LG OLED TV 2016-2017-2018-2019-2020-2021-2022-2023 or else on some other, since you wrote that this is the only universal option.
2017-2019...
P7 ST-DL: TS or MP4, some files give black screen.
P7 DT-DL: Ts doesn't work but mp4 works. (some fel file may stutter)
P8/P5: TS and MP4 are fine

2020+ ...
P7 ST-DL: HDR10
P7 DT-DL: HDR10
P8/P5: TS and MP4 are fine
Mithrandir
Posts: 12
Joined: Tue May 10, 2022 5:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Mithrandir »

@RESET_9999 I've used MP4 workflow with DV P5 mkv (workflow 7 if i recall correctly).

After converting I'm getting random audio dropouts during playback on LG CX (internal player).
I'm using latest scripts (1.8.3).
Did you had similar issues?

I've used your scripts in the past (maybe a year ago) and didn't encounter similar issues.

MediaInfo of original file (shortened cause it has 25 subtitles).

Code: Select all

General
Unique ID                                : 123878627500660741924601339876164737565 (0x5D3227E3A4B0E46A0170FAEAF2239A1D)
Complete name                            : The Mandalorian - S03E03 - Chapter 19 - The Convert WEBDL-2160p.mkv
Format                                   : Matroska
Format version                           : Version 4
File size                                : 6.69 GiB
Duration                                 : 56 min 11 s
Overall bit rate                         : 17.1 Mb/s
Frame rate                               : 24.000 FPS
Writing application                      : mkvmerge v74.0.0 ('You Oughta Know') 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@High
HDR format                               : Dolby Vision, Version 1.0, dvhe.05.06, BL+RPU
Codec ID                                 : V_MPEGH/ISO/HEVC
Duration                                 : 56 min 11 s
Bit rate                                 : 16.3 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.082
Stream size                              : 6.39 GiB (95%)
Language                                 : English
Default                                  : Yes
Forced                                   : No
Color range                              : Full

Audio
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                                 : 56 min 11 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
Stream size                              : 309 MiB (5%)
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

Text #1
ID                                       : 3
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Duration                                 : 52 min 42 s
Bit rate                                 : 45 b/s
Frame rate                               : 0.175 FPS
Count of elements                        : 552
Stream size                              : 17.7 KiB (0%)
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
Duration                                 : 52 min 42 s
Bit rate                                 : 53 b/s
Frame rate                               : 0.210 FPS
Count of elements                        : 664
Stream size                              : 20.5 KiB (0%)
Title                                    : SDH
Language                                 : English
Default                                  : No
Forced                                   : No

Menu
00:00:04.000                             : en:Recap
00:01:02.083                             : en:Scene 1
00:01:02.125                             : en:Intro
00:01:26.417                             : en:Scene 2
00:19:07.583                             : en:Scene 3
00:30:18.917                             : en:Scene 4
00:38:05.333                             : en:Scene 5
00:53:14.458                             : en:Credits
Mediainfo of converted file:

Code: Select all

General
Complete name                            : The Mandalorian - S03E03 - Chapter 19 - The Convert WEBDL-2160p_DoVi.mp4
Format                                   : MPEG-4
Format profile                           : Base Media / Version 2
Codec ID                                 : mp42 (iso4/mp42/dby1)
File size                                : 6.69 GiB
Duration                                 : 56 min 11 s
Overall bit rate mode                    : Variable
Overall bit rate                         : 17.1 Mb/s
Frame rate                               : 24.000 FPS
Encoded date                             : 2023-05-04 22:31:56 UTC
Tagged date                              : 2023-05-04 22:31:56 UTC
Writing application                      : GPAC-2.1-DEV-rev321-gc68d8a53-master

Video
ID                                       : 1
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Format profile                           : Main 10@L5@High
HDR format                               : Dolby Vision, Version 1.0, dvhe.05.06, BL+RPU
Codec ID                                 : dvh1
Duration                                 : 56 min 11 s
Bit rate                                 : 16.3 Mb/s
Maximum bit rate                         : 40.3 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
Compression mode                         : Lossy
Bits/(Pixel*Frame)                       : 0.082
Stream size                              : 6.39 GiB (95%)
Encoded date                             : 2023-05-04 22:31:56 UTC
Tagged date                              : 2023-05-04 22:32:15 UTC
Color range                              : Full
mdhd_Duration                            : 3371333
Codec configuration box                  : hvcC+dvcC

Audio
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                                 : ec-3
Duration                                 : 56 min 11 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                              : 309 MiB (5%)
Title                                    : DDP
Language                                 : English
Service kind                             : Complete Main
Default                                  : Yes
Alternate group                          : 1
Encoded date                             : 2023-05-04 22:32:11 UTC
Tagged date                              : 2023-05-04 22:32:15 UTC
Complexity index                         : 16
Number of dynamic objects                : 15
Bed channel count                        : 1 channel
Bed channel configuration                : LFE

Text #1
ID                                       : 3
Format                                   : Timed Text
Codec ID                                 : tx3g
Duration                                 : 52 min 43 s
Bit rate mode                            : Variable
Bit rate                                 : 50 b/s
Frame rate                               : 0.283 FPS
Stream size                              : 19.5 KiB (0%)
Title                                    : SRT
Language                                 : English
Forced                                   : No
Encoded date                             : 2023-05-04 22:32:13 UTC
Tagged date                              : 2023-05-04 22:32:15 UTC
Count of events                          : 552

Text #2
ID                                       : 4
Format                                   : Timed Text
Codec ID                                 : tx3g
Duration                                 : 52 min 43 s
Bit rate mode                            : Variable
Bit rate                                 : 59 b/s
Frame rate                               : 0.344 FPS
Stream size                              : 22.7 KiB (0%)
Title                                    : SRT
Language                                 : English
Forced                                   : No
Encoded date                             : 2023-05-04 22:32:13 UTC
Tagged date                              : 2023-05-04 22:32:15 UTC
Count of events                          : 664
TheEqualizer
Posts: 51
Joined: Tue Feb 21, 2023 3:50 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by TheEqualizer »

Mithrandir wrote:
Fri May 05, 2023 7:47 pm

After converting I'm getting random audio dropouts during playback on LG CX (internal player).
I'm using latest scripts (1.8.3).
Did you had similar issues?
This problem is observed only on Disney+ and Netflix web-dl and only when playing over the network (NAS or DLNA PC), if run via usb, everything will work. If RESET_9999 knows the treatment method, it will be great, but as far as I know, when building mp4box, it will not be possible to make a working version, you need to build using ffmpeg
RESET_9999
Posts: 2090
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

yeah , reason number 1222131545 why I don't use the mp4 container. I have never had any issues since I'm using the TS container with external SRT.
Mithrandir
Posts: 12
Joined: Tue May 10, 2022 5:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Mithrandir »

TheEqualizer wrote:
Fri May 05, 2023 8:29 pm
This problem is observed only on Disney+ and Netflix web-dl and only when playing over the network (NAS or DLNA PC), if run via usb, everything will work. If RESET_9999 knows the treatment method, it will be great, but as far as I know, when building mp4box, it will not be possible to make a working version, you need to build using ffmpeg
I tried remuxing using ffmpeg - then I get weird blocking artifacts on 10-15 places in file, but only if subs are included.
If i remux without subs, everything works fine.

I tried via Jellyfin and DLNA (Jellyfin DLNA). I'll try the USB also.
RESET_9999 wrote:
Fri May 05, 2023 8:32 pm
yeah , reason number 1222131545 why I don't use the mp4 container. I have never had any issues since I'm using the TS container with external SRT.
Thanks, I will try with .ts and report the results.
Mithrandir
Posts: 12
Joined: Tue May 10, 2022 5:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Mithrandir »

@RESET_9999

I've tried TS workflow on LG CX
1. DLNA - native webOS player - works perfectly, 0 audio/video glitches. FF/REW is a bit slower than MP4, but that doesn't bother me
2. Jellyfin WebOS app - works perfectly. You can choose subs, but because they are PGS, they will cause an error.

I have 2 questions:
1. I have set on line 39 to export subs, but no subs were exported
2. Is there an option to mux no subs into TS stream. I've seen an option, but it only muxes all subs or just forced subs

Thanks for your great work and help RESET_9999
RESET_9999
Posts: 2090
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

1- yea that option is just for the forced subs which is only what I need but I could add an option to export also the full subs.
2- No
Mithrandir
Posts: 12
Joined: Tue May 10, 2022 5:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Mithrandir »

RESET_9999 wrote:
Sat May 06, 2023 12:03 am
1- yea that option is just for the forced subs which is only what I need but I could add an option to export also the full subs.
I get it. I thought it will export all subs which are muxed into TS stream.
valington
Posts: 41
Joined: Tue May 02, 2023 1:39 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by valington »

RESET_9999 wrote:
Thu May 04, 2023 5:24 pm
valington wrote:
Tue May 02, 2023 1:45 pm
Please give me simple steps for creating mp4 7 profile dolby vision for my oled e8
Download this and export to a folder preferably without space or special characters.(don't move any files): https://drive.google.com/file/d/1g-nQY5 ... share_link
download this beta version of the script and put it in your DoVi_Scripts folder (this contains the latest version of the DT-DL mp4 workflow: https://drive.google.com/file/d/1SYnK9M ... share_link

Then if your input is a makemkv Profile 7 rip (7-3-1):

Image


if your input is a bluray disc (7-3-2):

Image
Thank you for your help but i need more when i go through all steps which you dicribe it shows me that it could not find a way what is wrong with it ? i m using MKV7 PROFILE DOLBY VISION files and it shows when i use mkv 7 dolby vision that file must be in 7 profile dolby vision but it is 7 profile
pngreal1
Posts: 1
Joined: Sat May 06, 2023 5:28 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by pngreal1 »

The command line is a single long line and the only spacing character allowed is the space.
You can help yourself with THIS online tool for removing line breaks.
RESET_9999
Posts: 2090
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

valington wrote:
Sat May 06, 2023 11:02 am
but it is 7 profile
Are you sure about that?
the script uses mediainfo to read the profile information so maybe your file doesn't have p7 DV or it's not muxed properly.
Post Reply