Dolby Vision now possible through MP4 Mux.

Please post here for issues related to UHD discs
simonhazel00
Posts: 3
Joined: Mon Nov 06, 2023 2:27 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by simonhazel00 »

RESET_9999 wrote:
Mon Nov 06, 2023 6:26 pm
thirdmoon wrote:
Mon Nov 06, 2023 3:07 pm
My previous try for SDR to HDR was too dark. After a lot of trial and error, I have come up with this.

Children of Men 2006 - 1080p to 4K HDR (First 10mins)
https://drive.google.com/drive/folders/ ... sp=sharing
Yes that's better than your sample from the other day. here's the original vs your conversion plot: https://slow.pics/c/81IGyAYq

I did this movie a while ago and IIRC, the BD SDR grade is not very good.
You'll notice that the SDR to HDR conversion works much better when the SDR grade is decent.

simonhazel00 wrote:
Mon Nov 06, 2023 3:15 pm
hello I've done some testing for dolby vision on devices for you reset.

toshiba 55UA3D63DB:

it supports profile 5, profile 8.1 in mp4 and mkv.

it playes the p7 fel st-dl and DT-Dl test clips and shows the text, brightness changes, but not the colours strobing and dolby vision isn't triggered either in ts or mp4.

the ts st-dl fel test track didn't show the brightness change, the strobing or the text and didn't show the dv logo

dune hd homatics box 4k plus:
unsure if this box has the fake TV led dolby vision issue however.

source led mode:
profile 7 fel
st-dl ts & mp4:
brightness change, strobing and text appeared correctly and triggered dv
DT-Dl ts:
brightness change, text appeared and dv triggered (no colour strobe)
DT-Dl mp4:
brightness change, colour strobing, text and dv logo

profile 8.1 works correctly in mp4 and mkv
profile 5 works correctly in mp4

player led mode:
profile 7 fel:
st-dl ts:
brightness change, colour strobing, text and dv logo
DT-Dl ts:
text and dv logo
st-dl and dt-dl mp4 :
brightness change, colour strobing, text and dv logo

profile 5 works in mp4 and 8.1 works correctly in mp4 and mkv.

unfortunately my TV doesn't have the hidden menu to look any further then that.
thanks for the tests. But wait the dune hd homatics box 4k plus supports FEL?
is that what you mean by: ''text appeared correctly''
yes the text appeared correctly.
Im actually really unsure what it's doing to be honest. the tests would indicate so, and the manufactures page says it supports fel, however the word it in a way that makes it sound like they are discarding fel and doing bl+rpu.

are your test sample definitive proof of proper fel support?

Im willing to do any testing you can think of, if you want me to dig deeper.

slightly off topic - getting dolby vision and truehd atmos working at the same time has been a pain. then there's earc flakeyness that really drives a middle finger home XD.
RESET_9999
Posts: 2090
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

LV8HD wrote:
Mon Nov 06, 2023 6:29 pm
Which preset should I be using for Dolby Vision generation?

Image
I use the 2nd one (most highlight detail) but any option is fine and its up to your preference. If you find DV too dark, try the other tuning.

From top to bottom = More tone mapping/darker to less tone mapping/brighter
RESET_9999
Posts: 2090
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

simonhazel00 wrote:
Mon Nov 06, 2023 6:47 pm
yes the text appeared correctly.
Im actually really unsure what it's doing to be honest. the tests would indicate so, and the manufactures page says it supports fel, however the word it in a way that makes it sound like they are discarding fel and doing bl+rpu.

are your test sample definitive proof of proper fel support?

Im willing to do any testing you can think of, if you want me to dig deeper.

slightly off topic - getting dolby vision and truehd atmos working at the same time has been a pain. then there's earc flakeyness that really drives a middle finger home XD.
oh I see whats going on. My 2nd version of the fel test is misleading and i took the wrong EL.
please try this one instead and look for the 2nd video in the background like this:

https://drive.google.com/file/d/1rk-quC ... drive_link

Image
simonhazel00
Posts: 3
Joined: Mon Nov 06, 2023 2:27 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by simonhazel00 »

RESET_9999 wrote:
Mon Nov 06, 2023 7:09 pm
simonhazel00 wrote:
Mon Nov 06, 2023 6:47 pm
yes the text appeared correctly.
Im actually really unsure what it's doing to be honest. the tests would indicate so, and the manufactures page says it supports fel, however the word it in a way that makes it sound like they are discarding fel and doing bl+rpu.

are your test sample definitive proof of proper fel support?

Im willing to do any testing you can think of, if you want me to dig deeper.

slightly off topic - getting dolby vision and truehd atmos working at the same time has been a pain. then there's earc flakeyness that really drives a middle finger home XD.
oh I see whats going on. My 2nd version of the fel test is misleading and i took the wrong EL.
please try this one instead and look for the 2nd video in the background like this:

https://drive.google.com/file/d/1rk-quC ... drive_link

Image
thank you, I've tested the new file on the dune hd homatics box r 4k plus.
exactly what i thought and disregards the fel so it is just bl+rpu.

it annoys me they advertise fel support and then completely ignore the fel like what is the actual point of misleading everyone.

as I can't play fel on the dune hd is it worth converting profile 7 fel to profile 5?
Amused
Posts: 29
Joined: Wed Jul 27, 2022 1:00 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Amused »

@RESET_9999 I have been using your scripts for quite some time now, but I wonder if you have an automated option for processing a BD disc Profile 7 source to Profile 7 dual-track dual-layers, because my Sony X800m2 has problems with many ST-DL m2ts files (black screen), but works fine with DT-DL files. When I detect such a problem, then I simply convert the ST-DL to DT-DL m2ts, but that implies one more step. Thanks!
UHD players: Sony X700, Zidoo Z1000 Pro
Audio system: Sony HT-A9
TV: Sony 77A80J
RESET_9999
Posts: 2090
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

this doesnt need to be scripted. Use workflow 8-3 to find out the correct playlist and then remux it directly with DoVi_Scripts\tools\tsMuxerGUI.exe
sofakng
Posts: 74
Joined: Fri Mar 19, 2010 12:51 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by sofakng »

Is there a current best player?

I've looked at RESET_9999's spreadsheet and it seems like all of them have several problems?
RESET_9999
Posts: 2090
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

sofakng wrote:
Wed Nov 08, 2023 6:59 pm
Is there a current best player?

I've looked at RESET_9999's spreadsheet and it seems like all of them have several problems?
For DV rip, the x800m2 is the best player with fewer issues.
Amused
Posts: 29
Joined: Wed Jul 27, 2022 1:00 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Amused »

RESET_9999 wrote:
Wed Nov 08, 2023 12:03 pm
this doesnt need to be scripted. Use workflow 8-3 to find out the correct playlist and then remux it directly with DoVi_Scripts\tools\tsMuxerGUI.exe
Wow, it’s as simple as that! Thanks, I thought it had to go through some processing before txMuxer!

Sony x800m2 handles DT-DL m2ts files beautifully, but struggles with many ST-DL files for some reason.
UHD players: Sony X700, Zidoo Z1000 Pro
Audio system: Sony HT-A9
TV: Sony 77A80J
Mattl0
Posts: 37
Joined: Mon Apr 26, 2021 6:57 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Mattl0 »

RESET_9999 wrote:
Mon Nov 06, 2023 7:09 pm
simonhazel00 wrote:
Mon Nov 06, 2023 6:47 pm
yes the text appeared correctly.
Im actually really unsure what it's doing to be honest. the tests would indicate so, and the manufactures page says it supports fel, however the word it in a way that makes it sound like they are discarding fel and doing bl+rpu.

are your test sample definitive proof of proper fel support?

Im willing to do any testing you can think of, if you want me to dig deeper.

slightly off topic - getting dolby vision and truehd atmos working at the same time has been a pain. then there's earc flakeyness that really drives a middle finger home XD.
oh I see whats going on. My 2nd version of the fel test is misleading and i took the wrong EL.
please try this one instead and look for the 2nd video in the background like this:

https://drive.google.com/file/d/1rk-quC ... drive_link

Image
Thanks for this. Fel is discarded on my a95k via app of default media player .Even if it is in dolby vision mode. I have tried every container (DL-ST) exept mp4.
DjObama
Posts: 10
Joined: Fri Oct 27, 2023 4:48 pm

Re: Flac in mp4 workflows

Post by DjObama »

RESET_9999 wrote:
Sun Nov 05, 2023 12:37 am
DjObama wrote:
Sat Nov 04, 2023 1:10 pm
LG B8. Flac works
Ok, try the next version.
line 69 set encode_LL=NO
choices are NO or FLAC or LPCM (default=NO)
I set line 69 to FLAC as you instructed but the worflow 4-3-1 failed with:
[flac @ 0000023f44d84300] encoding as 24 bits-per-sample
[mp4 @ 0000023f44daf880] flac in MP4 support is experimental, add '-strict -2' if you want to use it.
Could not write header for output file #0 (incorrect codec parameters ?): Experimental feature
Error initializing output stream 0:0 --
Conversion failed!
skull88
Posts: 56
Joined: Mon Mar 27, 2023 3:08 pm

Re: Flac in mp4 workflows

Post by skull88 »

DjObama wrote:
Fri Nov 10, 2023 5:15 pm
RESET_9999 wrote:
Sun Nov 05, 2023 12:37 am
DjObama wrote:
Sat Nov 04, 2023 1:10 pm
LG B8. Flac works
Ok, try the next version.
line 69 set encode_LL=NO
choices are NO or FLAC or LPCM (default=NO)
I set line 69 to FLAC as you instructed but the worflow 4-3-1 failed with:
[flac @ 0000023f44d84300] encoding as 24 bits-per-sample
[mp4 @ 0000023f44daf880] flac in MP4 support is experimental, add '-strict -2' if you want to use it.
Could not write header for output file #0 (incorrect codec parameters ?): Experimental feature
Error initializing output stream 0:0 --
Conversion failed!
Don't forget you can now make official bug reports on the github page: https://github.com/R3S3t9999/DoVi_Scripts/issues
RESET_9999
Posts: 2090
Joined: Mon Aug 05, 2019 7:12 pm

Re: Flac in mp4 workflows

Post by RESET_9999 »

DjObama wrote:
Fri Nov 10, 2023 5:15 pm
I set line 69 to FLAC as you instructed but the worflow 4-3-1 failed with:
Working fine on my end. Are you using your own ffmpeg ? if yes try with the version that comes with my tool pack.

Image

Code: Select all

General
Complete name                            : D:\P7 DTS SRT PGS 2021_DoVi.mp4
Format                                   : mp43
Codec ID                                 : mp43 (isom/mp43/dby1)
File size                                : 2.22 GiB
Duration                                 : 5 min 0 s
Overall bit rate mode                    : Variable
Overall bit rate                         : 63.5 Mb/s
Frame rate                               : 23.976 FPS
Encoded date                             : 2023-11-10 17:29:59 UTC
Tagged date                              : 2023-11-10 17:29:59 UTC
Writing application                      : GPAC-1.1.0-DEV-rev1027-g1daa0b5f-master

Video #1
ID                                       : 1
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Format profile                           : Main 10@L5.1@High
HDR format                               : SMPTE ST 2086, HDR10 compatible
Codec ID                                 : hev1
Codec ID/Info                            : High Efficiency Video Coding
Duration                                 : 5 min 0 s
Bit rate                                 : 58.0 Mb/s
Maximum bit rate                         : 100 Mb/s
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
Bits/(Pixel*Frame)                       : 0.291
Stream size                              : 2.03 GiB (91%)
Default                                  : Yes
Alternate group                          : 1
Encoded date                             : 2023-11-10 17:29:56 UTC
Tagged date                              : 2023-11-10 17:30:01 UTC
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              : 9978 cd/m2
Maximum Frame-Average Light Level        : 5364 cd/m2
Codec configuration box                  : hvcC

Video #2
ID                                       : 2
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Format profile                           : Main 10@L5.1@High
HDR format                               : Dolby Vision, Version 1.0, dvhe.07.06, EL+RPU / SMPTE ST 2086, HDR10 compatible
Codec ID                                 : dvhe
Codec ID/Info                            : High Efficiency Video Coding with Dolby Vision
Duration                                 : 5 min 0 s
Bit rate                                 : 2 091 kb/s
Width                                    : 1 920 pixels
Height                                   : 1 080 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
Bits/(Pixel*Frame)                       : 0.042
Stream size                              : 74.8 MiB (3%)
Default                                  : No
Alternate group                          : 1
Encoded date                             : 2023-11-10 17:29:56 UTC
Tagged date                              : 2023-11-10 17:30:01 UTC
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
Codec configuration box                  : hvcC+dvcC

Audio #1
ID                                       : 3
Format                                   : E-AC-3
Format/Info                              : Enhanced AC-3
Commercial name                          : Dolby Digital Plus
Codec ID                                 : ac-3
Duration                                 : 5 min 0 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                              : 55.0 MiB (2%)
Title                                    : DDP
Language                                 : English
Service kind                             : Complete Main
Encoded date                             : 2023-11-10 17:30:01 UTC
Tagged date                              : 2023-11-10 17:30:01 UTC

Audio #2
ID                                       : 4
Format                                   : FLAC
Format/Info                              : Free Lossless Audio Codec
Codec ID                                 : fLaC
Duration                                 : 5 min 0 s
Duration_LastFrame                       : -3 ms
Bit rate mode                            : Variable
Bit rate                                 : 1 923 kb/s
Maximum bit rate                         : 3 094 kb/s
Channel(s)                               : 6 channels
Channel layout                           : L R C LFE Ls Rs
Sampling rate                            : 48.0 kHz
Bit depth                                : 16 bits
Compression mode                         : Lossless
Stream size                              : 68.8 MiB (3%)
Title                                    : FLAC
Language                                 : English
Default                                  : Yes
Alternate group                          : 1
Tagged date                              : 2023-11-10 17:30:01 UTC
MD5 of the unencoded content             : C8311326E38529F50C19D1257BFE8D59

Text #1
ID                                       : 5
Format                                   : Timed Text
Codec ID                                 : tx3g
Duration                                 : 4 min 55 s
Bit rate mode                            : Variable
Bit rate                                 : 35 b/s
Frame rate                               : 0.166 FPS
Stream size                              : 1.27 KiB (0%)
Title                                    : SRT
Language                                 : English
Forced                                   : No
Encoded date                             : 2023-11-10 17:30:01 UTC
Tagged date                              : 2023-11-10 17:30:01 UTC
Count of events                          : 24

Text #2
ID                                       : 6
Format                                   : Timed Text
Codec ID                                 : tx3g
Duration                                 : 4 min 55 s
Bit rate mode                            : Variable
Bit rate                                 : 39 b/s
Frame rate                               : 0.227 FPS
Stream size                              : 1.42 KiB (0%)
Title                                    : SRT
Language                                 : English
Forced                                   : No
Encoded date                             : 2023-11-10 17:30:01 UTC
Tagged date                              : 2023-11-10 17:30:01 UTC
Count of events                          : 33

tjayz
Posts: 14
Joined: Mon Feb 13, 2023 9:29 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by tjayz »

Mattl0 wrote:
Wed Nov 08, 2023 9:37 pm
RESET_9999 wrote:
Mon Nov 06, 2023 7:09 pm
simonhazel00 wrote:
Mon Nov 06, 2023 6:47 pm
yes the text appeared correctly.
Im actually really unsure what it's doing to be honest. the tests would indicate so, and the manufactures page says it supports fel, however the word it in a way that makes it sound like they are discarding fel and doing bl+rpu.

are your test sample definitive proof of proper fel support?

Im willing to do any testing you can think of, if you want me to dig deeper.

slightly off topic - getting dolby vision and truehd atmos working at the same time has been a pain. then there's earc flakeyness that really drives a middle finger home XD.
oh I see whats going on. My 2nd version of the fel test is misleading and i took the wrong EL.
please try this one instead and look for the 2nd video in the background like this:

https://drive.google.com/file/d/1rk-quC ... drive_link

Image
Thanks for this. Fel is discarded on my a95k via app of default media player .Even if it is in dolby vision mode. I have tried every container (DL-ST) exept mp4.
Use Emby, if still have problem, I assure you is not the media player. I cast to x800 which cannot process dv in mkv so I always use ts to preserve lossless audio as well. Some DL-ST will freeze black, just keep everything DL-DT.
UBP-X800M2 / LG OLED CX / NAD M17 V2i
DjObama
Posts: 10
Joined: Fri Oct 27, 2023 4:48 pm

Re: Flac in mp4 workflows

Post by DjObama »

RESET_9999 wrote:
Fri Nov 10, 2023 5:31 pm
DjObama wrote:
Fri Nov 10, 2023 5:15 pm
I set line 69 to FLAC as you instructed but the worflow 4-3-1 failed with:
Working fine on my end. Are you using your own ffmpeg ? if yes try with the version that comes with my tool pack.
Thank you, YES! That was the case, I had old ffmpeg. I'm happy to report Flac audio works with p7 DT-DL in MP4 container :) (Edit. On my LG B8)
Compression level 0 you set for flac encode is a good choice, I compared with level 5 on 2,5h movie and the size difference was only 200 mb.

However, the dts-hd ma track got discarded upon conversion, am I missing a setting to keep the original audio track?
Post Reply