Dolby Vision now possible through MP4 Mux.

Please post here for issues related to UHD discs
ragico
Posts: 265
Joined: Fri Feb 15, 2019 1:09 am

Re: Dolby Vision now possible through MP4 Mux.

Post by ragico »

JoseTheBae wrote:
Tue Jul 05, 2022 2:32 pm
ragico wrote:
Fri Feb 26, 2021 12:45 am
With Ugoos AM6 plus/Kodi Matrix DV edition (thanks @Fandangos and @quietvoid) Saving Private Ryan (MKV DV) no flicKering like the m2ts on Sony X700.
This is the first time that a device (except Sony X700) does not flickers on this film.
I tried Firestick 4K, Shield 2019 and Google Chromecast with Google TV.
In Ugoos (latest firmware 0.40) also HD audio (True HD Atmos and DTS X) works in passtrough in Kodi.
My soundbar confirms.
Can you please share a link to that specific Kodi build that did not produce flickering for the opening of Saving Private Ryan? For some reason, I get flickering on my Ugoos AM6B Plus in Kodinerds, but not in Plex.
Here: https://forum.kodi.tv/showthread.php?tid=360018
Sorry, I no longer own the Ugoos. It was quite unstable.
JoseTheBae
Posts: 10
Joined: Mon Jul 04, 2022 11:59 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by JoseTheBae »

ragico wrote:
Tue Jul 05, 2022 9:28 pm
JoseTheBae wrote:
Tue Jul 05, 2022 2:32 pm
ragico wrote:
Fri Feb 26, 2021 12:45 am
With Ugoos AM6 plus/Kodi Matrix DV edition (thanks @Fandangos and @quietvoid) Saving Private Ryan (MKV DV) no flicKering like the m2ts on Sony X700.
This is the first time that a device (except Sony X700) does not flickers on this film.
I tried Firestick 4K, Shield 2019 and Google Chromecast with Google TV.
In Ugoos (latest firmware 0.40) also HD audio (True HD Atmos and DTS X) works in passtrough in Kodi.
My soundbar confirms.
Can you please share a link to that specific Kodi build that did not produce flickering for the opening of Saving Private Ryan? For some reason, I get flickering on my Ugoos AM6B Plus in Kodinerds, but not in Plex.
Here: https://forum.kodi.tv/showthread.php?tid=360018
Sorry, I no longer own the Ugoos. It was quite unstable.
The 32-bit (ARM) build? I believe I tried that and still got flickering (using PlexKodiConnect), but I will give it another try.
RESET_9999
Posts: 2406
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

Looks like the 2022 LG TVs handle L5 slightly differently. ( I don't know about 2020-2021 models)
Also, list of movies with incorrect L5. And some streaming web-dl have static Dolby Vision... :shock:
https://docs.google.com/spreadsheets/d/ ... l7gtc/edit

C2:
Image

C8:
Image

Device that ignores L5:
Image
Sorry for my English.
G5 / AM6B+ / Denon 7.2.4
DoVi_Scripts
DoVi Playback Devices
chros
Posts: 102
Joined: Sun Sep 20, 2020 8:36 am

Re: Dolby Vision now possible through MP4 Mux.

Post by chros »

Hmm, is it with applying the -1 2pt Low WB hack to get proper black on the C2? Can you name an example or upload a sample? Thanks
Awesome compilation BTW!!!
RESET_9999
Posts: 2406
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

chros wrote:
Wed Jul 06, 2022 7:32 am
Hmm, is it with applying the -1 2pt Low WB hack to get proper black on the C2? Can you name an example or upload a sample? Thanks
Awesome compilation BTW!!!
sample: https://drive.google.com/file/d/1uXoXA4 ... sp=sharing
Just to be clear, this is not an issue with the TV. If L5 was set correctly to 0,0, that scene would be fullscreen like the devices that ignore L5.

I noticed the different behavior because of Amazon Terminal List Season 1 which I converted HDR10plus to DV. The show is 2160p 16:9 with black bars (262,262) but the 15sec amazon intro is full screen no black bars.
Of course, I could just edit that first 15sec L5 and leave the rest to 262,262. I just didn't care enough to put in the work...

This would also be a problem if the video L5 was overcropped but I have never seen that error in any of the commercial DV releases. I do see that error in some of those p2p release groups though.
Example:
Framestore Godzilla P8 hybrid L5 is incorrectly set to (4,4,282,282) when the BL is actually (0,0,280,280) which means the TV will overcrop/display a 4px row on each side of the screen and a 2px row top/bottom which will be distracting on the C2 because those small pixels row won't but solid black like they were on the C8. This behavior is only for internal TV playback.
Sorry for my English.
G5 / AM6B+ / Denon 7.2.4
DoVi_Scripts
DoVi Playback Devices
quietvoid
Posts: 377
Joined: Sun Apr 19, 2020 4:15 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by quietvoid »

I think L5 with 0 offsets even though there are letterbox bars is not as bad, though I haven't compared if it makes a difference in how the TV tone maps.
It's interesting how the C2 behaves. I don't really recommend using the internal player as there's a weird dither pattern in black.

Some difficult titles are those with variable aspect ratios. Especially when a scene has changing letterbox bars.
I think it should be set to the smallest size, otherwise it might crop out video.

But I've seen some titles do the opposite.
It's less likely to be noticeable when the AR transition is fast (5-10 frames).
RESET_9999
Posts: 2406
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

quietvoid wrote:
Wed Jul 06, 2022 12:45 pm
I think L5 with 0 offsets even though there are letterbox bars is not as bad, though I haven't compared if it makes a difference in how the TV tone maps.
right, as long as they don't lift the trims over 0.025
"Avoid using positive values over 0.025 on the LIFT trim control for letterboxed content. (Negative Lift values are acceptable on all versions). The
current implementation on Ultra HD Blu-ray devices apply the Trims to the entire image area, including the letterbox blanking area, to allow subtitles to
appear over them. If the scene contains positive Lift values over 0.025, this may cause the letterboxed area to have elevated black levels during playback.
An alternate way to achieve the desired result is to use a combination of GAIN and GAMMA trims more aggressively as these controls are
manipulating the tone curve to achieve a more lifted black effect without using Lift. You can also choose to go back and modify your original HDR
content to lift the blacks slightly and then re-analyze and trim without the need to have a positive value on the Lift trim over 0.025. If the active image
area matches the canvas aspect ratio, (i.e. there is no letterbox), positive Lift can be used."
Sorry for my English.
G5 / AM6B+ / Denon 7.2.4
DoVi_Scripts
DoVi Playback Devices
staknhalo
Posts: 178
Joined: Sun Oct 11, 2020 12:05 am

Re: Dolby Vision now possible through MP4 Mux.

Post by staknhalo »

Do we know (if able to) if this missing metadata is from the source (ie Apple/authored without it) missing, or missing as a result of capture/rip (cause I see BD with incorrect in the list), or just specific captures for specific releases, a combination of/title dependent, etc?
JoseTheBae
Posts: 10
Joined: Mon Jul 04, 2022 11:59 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by JoseTheBae »

ragico wrote:
Tue Jul 05, 2022 9:28 pm
JoseTheBae wrote:
Tue Jul 05, 2022 2:32 pm
ragico wrote:
Fri Feb 26, 2021 12:45 am
With Ugoos AM6 plus/Kodi Matrix DV edition (thanks @Fandangos and @quietvoid) Saving Private Ryan (MKV DV) no flicKering like the m2ts on Sony X700.
This is the first time that a device (except Sony X700) does not flickers on this film.
I tried Firestick 4K, Shield 2019 and Google Chromecast with Google TV.
In Ugoos (latest firmware 0.40) also HD audio (True HD Atmos and DTS X) works in passtrough in Kodi.
My soundbar confirms.
Can you please share a link to that specific Kodi build that did not produce flickering for the opening of Saving Private Ryan? For some reason, I get flickering on my Ugoos AM6B Plus in Kodinerds, but not in Plex.
Here: https://forum.kodi.tv/showthread.php?tid=360018
Sorry, I no longer own the Ugoos. It was quite unstable.
I re-installed that Kodi build again and I still got flickering in the beginning of Saving Private Ryan. It's so odd, because Plex certainly does process the Full Enhancement Layer. At least, this build plays all files smoothly, including those with Dolby Vision and a FEL. The modified ExoPlayer APK stuttered a lot, to the point where it wasn't really watchable, even though it processed the FEL.
JoseTheBae
Posts: 10
Joined: Mon Jul 04, 2022 11:59 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by JoseTheBae »

RESET_9999 wrote:
Tue Jul 05, 2022 6:43 pm
JoseTheBae wrote:
Tue Jul 05, 2022 3:46 pm
What Plex Client version was this on? I can't get Plex to output lossless audio on my Ugoos AM6B Plus.
no particular version. I was able to make it work about 3-4 times and it just seem to work randomly.
Do you still have an Ugoos AM6B Plus? I am looking for a Kodi build that processes the Full Enhancement Layer. I have tried several different builds. Only the modified ExoPlayer APK processes the FEL, but it stutters so much that it isn't really watchable. Do you know a Kodi build that definitely processes the FEL?
RESET_9999
Posts: 2406
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

JoseTheBae wrote:
Wed Jul 06, 2022 7:44 pm
Do you still have an Ugoos AM6B Plus? I am looking for a Kodi build that processes the Full Enhancement Layer. I have tried several different builds. Only the modified ExoPlayer APK processes the FEL, but it stutters so much that it isn't really watchable. Do you know a Kodi build that definitely processes the FEL?
nop, I sold my ugoos a long time ago. I was using the Kodinerds built and it processed the FEL but there was micro stuttering and sometimes the movie would just freeze.

In my opinion, you are wasting your time/money with this device. If you want stable FEL playback get the Sony x700 or x800m2.
Sorry for my English.
G5 / AM6B+ / Denon 7.2.4
DoVi_Scripts
DoVi Playback Devices
JoseTheBae
Posts: 10
Joined: Mon Jul 04, 2022 11:59 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by JoseTheBae »

RESET_9999 wrote:
Wed Jul 06, 2022 7:55 pm
JoseTheBae wrote:
Wed Jul 06, 2022 7:44 pm
Do you still have an Ugoos AM6B Plus? I am looking for a Kodi build that processes the Full Enhancement Layer. I have tried several different builds. Only the modified ExoPlayer APK processes the FEL, but it stutters so much that it isn't really watchable. Do you know a Kodi build that definitely processes the FEL?
nop, I sold my ugoos a long time ago. I was using the Kodinerds built and it processed the FEL but there was micro stuttering and sometimes the movie would just freeze.

In my opinion, you are wasting your time/money with this device. If you want stable FEL playback get the Sony x700 or x800m2.
Oh, I see. It's so annoying, because I feel so close to achieving complete Dolby Vision playback. Plex can process the FEL and play it smoothly, but it doesn't have lossless audio on this device. As for Kodi, I have Dolby Vision playing smoothly with lossless audio on Fandango's build, just without the FEL. If only Plex got to supporting lossless audio on this device; then this would finally provide reliable playback for everything.
dvfan
Posts: 6
Joined: Wed Jul 06, 2022 8:32 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by dvfan »

Hello,

I'm new to the forum and i'm trying to use the script but getting a lot of path errors and LAV Filter can't be loaded issues.

I'm using Windows 11 Pro.

This are the errors i currently get when trying to create DoVi from HDR10.

I tried option 4-4
And also option 7-1-6

Always same errors with paths and LAV Filter as follows:

Code: Select all

F:\TEMP\THD.mkv: No such file or directory
Error: Unknown mode 'F:\TEMP\_AC3.mkv'.
SMPTE ST 2086
Connecting LAV Splitter Source to LAV Video Decoder failed.
Parsing madVR measurement file...
Error: System can't find the file specified. (os error 2)
Also other errors:

Code: Select all

a02 Processed audio track: max 24 bits, average 19 bits, most common 16 bits.
Video track 1 contains 1303 frames.
eac3to processing took 2 seconds.
Done.
mkvmerge v67.0.0 ('Under Stars') 64-bit
Error: The file 'F:\TEMP\en.thd' could not be opened for reading: open file error.
mkvmerge v67.0.0 ('Under Stars') 64-bit
Error: The file 'F:\TEMP\en.dtsma' could not be opened for reading: open file error.
ffmpeg version 5.0.1-full_build-www.gyan.dev Copyright (c) 2000-2022 the FFmpeg developers
  built with gcc 11.2.0 (Rev7, Built by MSYS2 project)
RESET_9999
Posts: 2406
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

dvfan wrote:
Wed Jul 06, 2022 8:36 pm
Hello,
Hi, did you install lavfilters?
https://www.videohelp.com/software/LAV-Filters

also dont forget to go in the tools/madvr folder and click (with admin rights) on the install.bat
Sorry for my English.
G5 / AM6B+ / Denon 7.2.4
DoVi_Scripts
DoVi Playback Devices
dvfan
Posts: 6
Joined: Wed Jul 06, 2022 8:32 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by dvfan »

Hello, yes i installed the LAV Filters twice just to be sure. All works, i run madvr and it works, with HDR and everything. I can see the info on screen just fine as well. With all measurements, but when i run the script it always shows error with connecting to LAV Filter - failed.

Code: Select all

Choice? [1,2,3,4,5]?1
                                         *********************
                                         * CHOOSE A WORKFLOW *
                                         *********************

1) Workflow.1= Convert 1 video + AUTO L5
2) Workflow.2= Convert 1 video + MANUAL L5
3) Workflow.3= Convert 1 video + MANUAL L5 + TrueHD_to_TrueHD.ac3 + DDP_1536kbps
4) Workflow.4= Convert 1 video + MANUAL L5 + TrueHD_to_TrueHD.ac3
5) Workflow.5= Convert 1 video + MANUAL L5 + DDP_1536kbps
6) Workflow.6= Convert 1 video + AUTO L5 + REMOVE HDR10plus (fire stick TV)
7) Workflow.7= Back to main menu

Choice? [1,2,3,4,5,6,7]?1
Folder Already exists F:\TEMP\.
----------------------------------------------------------------------------------------------------
--This workflow will convert an HDR10 or HDR10plus video to DoVi and set L5 automatically
--The black bars detection may not be perfectly accurate. It's maybe better to measure them manually
----------------------------------------------------------------------------------------------------
Drag and drop your HDR10 or HDR10plus MKV/MP4/TS file and press enter...F:\DoVi_Scripts\test1.mkv
Do you want to crop RPU... y or n ? (y when HDR10-BL is cropped) and/or press enter...n
Measuring the HDR10 video letterbox...
min: 0.0050 cd/m2, max: 1200 cd/m2
Extracting track 0 with the CodecID 'V_MPEGH/ISO/HEVC' to the file 'F:\TEMP\HDR.hevc'. Container format: HEVC/H.265 elementary stream
Progress: 100%
SMPTE ST 2086
HDR10plus metadata not present. Generating DoVi from HDR10 with madVR...
[b]Connecting LAV Splitter Source to LAV Video Decoder failed.[/b]
Parsing madVR measurement file...
Error: System can't find the file specified (os error 2)
Post Reply