Dolby Vision now possible through MP4 Mux.

Please post here for issues related to UHD discs
Mithrandir
Posts: 12
Joined: Tue May 10, 2022 5:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Mithrandir »

afarvvik wrote:
Wed May 03, 2023 8:00 pm
thanks for the reply. can you please let me know what version of jellyfin you did this in? is FF/REW working for you with m2ts files in jellyfin? I had to move to Emby because FF/REW was not working for me with m2ts files in jellyfin and I can not use plex because it transcodes when SRT is enabled.
Latest Jellyfin Version: 10.8.10.

I didn't see you are using m2ts files.
I'm using MKV and MP4 files and FF/REW works completely fine.

I used ts few times but can't remember if FF/REW worked.
I never used m2ts.

Isn't m2ts designed to work only in disc players?
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:
Thu May 04, 2023 5:25 pm
P8 with EL is not standard and there's no need to use it since your TV support dual track dual layer Profile 7 FEL. See my reply to @valington
Yes, I know that my TV 2019 supports 7 FEL, but not since 2020, and I need a universal option for tv 2019 and newer, up to this point I have used P8 BL+RPU, but I saw this non-standard option and it confused me. I am also aware that dvi.08.06 BL+EL+RU is not a DV standard, but still the question was, why does TV reproduce this option correctly, does it ignore el or somehow reproduces it as in cases with a two-layer 7 profile? And how did manage to get such an option dvh.08.06 BL+EL+RU?
RESET_9999
Posts: 2406
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

TheEqualizer wrote:
Thu May 04, 2023 9:33 pm
Yes, I know that my TV 2019 supports 7 FEL, but not since 2020, and I need a universal option for tv 2019 and newer,
Surprised that HEV1 works on the B9 since it doesn't work on the C8.
The only universal solution that works EVERYWHERE is the TS/M2TS container in P8.
why does TV reproduce this option correctly, does it ignore el or somehow reproduces it as in cases with a two-layer 7 profile?
I don't know but you can try to use this P7 file and remux it to P8 without removing the EL and see if FEL is used:
https://drive.google.com/file/d/1J5QnjW ... share_link
you can force P8 with the mp4muxer:

Code: Select all

"%mp4muxer_path%" --dv-profile 8 --input-file ST-DL.hevc --output-file "output.mp4"
Sorry for my English.
G5 / AM6B+ / Denon 7.2.4
DoVi_Scripts
DoVi Playback Devices
TheEqualizer
Posts: 51
Joined: Tue Feb 21, 2023 3:50 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by TheEqualizer »

I tested your video, extracted hevc from the TS container and got mp4, although the command that you gave lacks the -compatible-id parameter, it gave an error without it, I made all three options with -compatible-id 1 (2) (4) for full confidence. All three videos are strobed by the built-in player LG B9. I don't know why this doesn't happen on a particular movie...
RESET_9999 wrote:
Thu May 04, 2023 10:10 pm
The only universal solution that works EVERYWHERE is the TS/M2TS container in P8.
Which specific version of tsMuxer do you recommend using?
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:
Mon Apr 10, 2023 9:44 pm
spl147 wrote:
Mon Apr 10, 2023 9:23 pm
So much info in the thread, so what i gather is by converting a DV mkv with FEL to profile 8.1 we loose FEL?

So it’s the same a playing a DV MKV on a zidoo or dune? FEL is discarded and only the rpu is used?
yes FEL is discarded but know that not every FEL movie can be converted to P8 (or played on non-fel devices) because some of them are expanding the picture brightness when BL and FEL are decoded by the player.
So the DV metadata in the RPU is meant to be played with the FEL brightness ONLY. Playing these FEL movies on a non-fel device will result in an image darker than the intended look.

Here's a list of FEL movies that expand brightness (still looking into my library to find more):
https://docs.google.com/spreadsheets/d/ ... sp=sharing
This is really interesting - and I'm extremely grateful for all the info you've gathered here.

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?
RESET_9999
Posts: 2406
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

TheEqualizer wrote:
Thu May 04, 2023 10:17 pm
although the command that you gave lacks the -compatible-id parameter, it gave an error without it,
Because I use the old mp4muxer that works on all the LG TVs and this parameter was implemented in the later versions of the mp4muxer.
All three videos are strobed by the built-in player LG B9
the homemade FEL test file can indeed be buggy on some players.
Which specific version of tsMuxer do you recommend using?
The latest one should be fine.
https://github.com/justdan96/tsMuxer/releases

The only downside of using TS on LG TVs is that you have to use external SRT subs. Some comments here recently said that ext srt doesn't work but on my end (PLEX C2), it still works.
Sorry for my English.
G5 / AM6B+ / Denon 7.2.4
DoVi_Scripts
DoVi Playback Devices
RESET_9999
Posts: 2406
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

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.
Sorry for my English.
G5 / AM6B+ / Denon 7.2.4
DoVi_Scripts
DoVi Playback Devices
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 12:01 am
Because I use the old mp4muxer that works on all the LG TVs and this parameter was implemented in the later versions of the mp4muxer.
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?
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:
Fri May 05, 2023 12:01 am
The only downside of using TS on LG TVs is that you have to use external SRT subs. Some comments here recently said that ext srt doesn't work but on my end (PLEX C2), it still works.
I think it works with Plex/Jellyfin, but it doesn't work with built-in WebOS player (if you trigger the file via DLNA).

Also, internal webOS doesn't support PGS subtitles (which are usually present in Bluray remuxes).
Is there an option in your script to convert PGS to SRT?
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: 2406
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.
Sorry for my English.
G5 / AM6B+ / Denon 7.2.4
DoVi_Scripts
DoVi Playback Devices
RESET_9999
Posts: 2406
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
Sorry for my English.
G5 / AM6B+ / Denon 7.2.4
DoVi_Scripts
DoVi Playback Devices
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: 2406
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
Sorry for my English.
G5 / AM6B+ / Denon 7.2.4
DoVi_Scripts
DoVi Playback Devices
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
Post Reply