Dolby Vision now possible through MP4 Mux.

Please post here for issues related to UHD discs
RESET_9999
Posts: 2383
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

Lapihin_A wrote:
Sun Aug 06, 2023 5:10 pm
I used your script of the latest version of "DoVi_Scripts_1.9.0.2.beta_MKV" at the moment.
SiC's BCORE video was used, which has no contrast problem unlike ROCCaT's BCORE.
My guess is that SiC changed the full range flag for the container only(with mkvtoolnix) and not at the bitstream level and ffmpeg still thinks the color range is FULL when it export the screenshot.
Sorry for my English.
G5 / AM6B+ / Denon 7.2.4
DoVi_Scripts
DoVi Playback Devices
RESET_9999
Posts: 2383
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

Lapihin_A wrote:
Sun Aug 06, 2023 5:12 pm
Also, when using the 6-6-2 option, an error appears.
oops..
try DoVi_Scripts_1.9.0.3.beta
Sorry for my English.
G5 / AM6B+ / Denon 7.2.4
DoVi_Scripts
DoVi Playback Devices
Lapihin_A
Posts: 12
Joined: Fri Jul 23, 2021 8:44 am

Re: Dolby Vision now possible through MP4 Mux.

Post by Lapihin_A »

RESET_9999 wrote:
Sun Aug 06, 2023 5:21 pm
My guess is that SiC changed the full range flag for the container only(with mkvtoolnix) and not at the bitstream level and ffmpeg still thinks the color range is FULL when it export the screenshot.
I don't think so.

Code: Select all

General
Complete name                            : Escape.Room.2019.hevc
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
File size                                : 51.2 GiB
Frame rate                               : 23.976 FPS

Video
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Format profile                           : Main 10@L5.2@High
HDR format                               : SMPTE ST 2086, HDR10 compatible
Width                                    : 3 840 pixels
Height                                   : 2 160 pixels
Display aspect ratio                     : 16:9
Frame rate                               : 23.976 (24000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0 (Type 2)
Bit depth                                : 10 bits
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              : 3876 cd/m2
Maximum Frame-Average Light Level        : 852 cd/m2

I tried some of the other videos
magic.mike.2012.hdr.2160p.web.h265-slot.mkv
magic.mike.2012.dv.2160p.web.h265-slot.mkv
And there is exactly the same problem, if you need to provide screenshots.
RESET_9999
Posts: 2383
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

Lapihin_A wrote:
Sun Aug 06, 2023 5:34 pm
I tried some of the other videos
magic.mike.2012.hdr.2160p.web.h265-slot.mkv
magic.mike.2012.dv.2160p.web.h265-slot.mkv
And there is exactly the same problem, if you need to provide screenshots.
Well I use 6-8-3 every day, it doesn't tone map to SDR... Your Bcore comparison sure looks like full vs limited range.
Sorry for my English.
G5 / AM6B+ / Denon 7.2.4
DoVi_Scripts
DoVi Playback Devices
Lapihin_A
Posts: 12
Joined: Fri Jul 23, 2021 8:44 am

Re: Dolby Vision now possible through MP4 Mux.

Post by Lapihin_A »

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

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

Lapihin_A wrote:
Sun Aug 06, 2023 6:16 pm
Magic.Mike.2012.PQ
your HDR10 pic is wrong somehow.
it's working just fine and it's the same as MPV on my end so I don't know.

6-8-3: https://slow.pics/c/jVXtSv5Z
MPV:https://slow.pics/c/hmJiiuVO
Sorry for my English.
G5 / AM6B+ / Denon 7.2.4
DoVi_Scripts
DoVi Playback Devices
Lapihin_A
Posts: 12
Joined: Fri Jul 23, 2021 8:44 am

Re: Dolby Vision now possible through MP4 Mux.

Post by Lapihin_A »

RESET_9999 wrote:
Sun Aug 06, 2023 6:20 pm
Lapihin_A wrote:
Sun Aug 06, 2023 6:16 pm
Magic.Mike.2012.PQ
your HDR10 pic is wrong somehow.
it's working just fine and it's the same as MPV on my end so I don't know.

6-8-3: https://slow.pics/c/jVXtSv5Z
MPV:https://slow.pics/c/hmJiiuVO
Yes, I was wrong that the problem is not DV-P5 but HDR, I saw it by taking a screenshot in MPC. After that I tried 6-8-4 option for magic.mike.2012.hdr.2160p.web.h265-slot.mkv and got normal HDR screenshots.
NiCE77
Posts: 86
Joined: Sat Mar 28, 2020 7:49 am

Re: Dolby Vision now possible through MP4 Mux.

Post by NiCE77 »

RESET_9999 wrote:
Sun Aug 06, 2023 11:42 am
NiCE77 wrote:
Sun Aug 06, 2023 8:44 am

Thanks! But I noticed, the --dvh1flag option is not working. This would be necessary for playback on Apple TV (with tvOS 17). Can you fix it?
This solution works until: https://github.com/rixtox/mp4dovi
but why use the mp4muxer at all for ATV or new TV (2019+) when mp4box can mux directly lossless audio + subs + chapter?
My goal is, create a file that works well on old LG and Apple TV.
ArArdin
Posts: 196
Joined: Fri Nov 20, 2020 1:40 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by ArArdin »

Hi all,

Has anyone experienced the NOKIA Streaming Box 8010 regarding Dolby Vision and audio output?
NiCE77
Posts: 86
Joined: Sat Mar 28, 2020 7:49 am

Re: Dolby Vision now possible through MP4 Mux.

Post by NiCE77 »

ArArdin wrote:
Mon Aug 07, 2023 10:53 am
Hi all,

Has anyone experienced the NOKIA Streaming Box 8010 regarding Dolby Vision and audio output?
Same as all SEI804XX variants (RockTek G2, Dune Homatics, Homatics Box R 4K Plus).
agneva
Posts: 61
Joined: Mon Jan 06, 2020 11:42 am

Re: Dolby Vision now possible through MP4 Mux.

Post by agneva »

Hi,
i want to remux a UHD FEL from mkv to mp4 (for LG).

the correct format (made by the ape) is:
Image

but I want to remux it without the ape, just with dovi tool & mp4box.

mp4box -add BL.hevc -add EL.hevc:dv-profile=7 -add 1.eac3#audio:lang=ger:name="AC3 5.1" -new 2.mp4

but I always get version0:
Image

any idea how to say MP4box to make "dvhe.07.06" ?
AndreasT
Posts: 21
Joined: Tue Dec 15, 2020 7:10 am

Re: Dolby Vision now possible through MP4 Mux.

Post by AndreasT »

Hi RESET_9999,

When encoding DDP from THD/DTS using your script (ffmpeg) the result is a DDP 5.0(side) channel layout. This layout is missing the LFE (subwoofer) channel.

My understanding is that since the goal is to encode DDP 5.1, one can add either the option "-channel_layout 5.1" or "-channel_layout 5.1(side)" to the ffmpeg command. The LFE (subwoofer) channel is then included in the channel mapping of the output.

ChatGPT tells me: "In a 5.1 setup, the rear channels (RL and RR) are directly behind the listener, creating a typical surround sound experience. In a 5.1(side) setup, the surround channels (SL and SR) are placed to the sides of the listener, rather than directly behind. This configuration is intended to provide a wider and more immersive surround sound experience, especially in setups where it might be difficult to position the rear speakers effectively.

When using ffmpeg, it is essential to choose the correct channel layout based on your speaker configuration and the desired audio experience. If you have speakers positioned behind the listener, you should use the standard 5.1 layout. If you have speakers on the sides, 5.1(side) is more appropriate. Using the wrong layout can result in audio being sent to the wrong speakers, leading to an inaccurate surround sound experience."

Maybe something to complete your script with?

Also, thank you for all the time you spend on the script and answering questions here, I'm still polling this thread for new stuff to learn almost every day, and I've been lurking around since it was first created :)
RESET_9999
Posts: 2383
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

AndreasT wrote:
Tue Aug 08, 2023 1:44 pm
When encoding DDP from THD/DTS using your script (ffmpeg) the result is a DDP 5.0(side) channel layout. This layout is missing the LFE (subwoofer) channel.
I had this issue with some newer versions of ffmpeg and I thought it was fixed in the version I use (02-27-2023) right now.

Try this version: https://drive.google.com/file/d/1rzHhl_ ... sp=sharing
Sorry for my English.
G5 / AM6B+ / Denon 7.2.4
DoVi_Scripts
DoVi Playback Devices
AndreasT
Posts: 21
Joined: Tue Dec 15, 2020 7:10 am

Re: Dolby Vision now possible through MP4 Mux.

Post by AndreasT »

I didn't realize it may had todo with an issue with ffmpeg itself, anyways, I have been using a newer ffmpeg version

The first is the one you linked to, the second is the one I've been using.

C:\Users\Andreas\Downloads>ffmpeg -v
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)

C:\Users\Andreas\Downloads>D:\Video\tools\ffmpeg-5.1\ffmpeg.exe -v
ffmpeg version 5.1-essentials_build-www.gyan.dev Copyright (c) 2000-2022 the FFmpeg developers
built with gcc 12.1.0 (Rev2, Built by MSYS2 project)

and i had to add this option to get the 5.1 output instead of 5.0.

Ill try with 5.0.1 and see what happens. If there was an issue fixed, maybe they broke it again with a more recent change.
ArArdin
Posts: 196
Joined: Fri Nov 20, 2020 1:40 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by ArArdin »

NiCE77 wrote:
Mon Aug 07, 2023 12:24 pm
Same as all SEI804XX variants (RockTek G2, Dune Homatics, Homatics Box R 4K Plus).
Thank you
Post Reply