Dolby Vision now possible through MP4 Mux.

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

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

nekno wrote:
Mon Jan 16, 2023 4:17 am
What are the correct ffmpeg options needed to demux an HDR10+ HEVC stream from an MKV file?
I don't have an answer for you but I too have a lot of issues with ffmpeg when i demux so i avoid it at all cost.

this best and most reliable way IMO is :
-mkvextract for mkv
-tsmuxer for ts/m2ts
-dgdemux for bluray disc
I'm trying to convert the HDR10+ to DV8 with hdr10plus_tool and dovi_tool.
I dont think converting HDR10plus to DV is a good idea and I'm even thinking of removing it from my script. The HDR10plus max_PQ numbers just dont make sense, always much brighter than what DV and HDR10 are.
example: https://slow.pics/c/a3EFaZTC
there are other examples buried in here: https://drive.google.com/drive/u/1/fold ... KFJwFxnDt-

I even tested to generate HDR10plus in resolve and got the same "too bright peak" compared to what the actual content is:
https://slow.pics/c/4v8Qvafz

Seraphimon956 wrote:
Mon Jan 16, 2023 5:39 pm
None of the LG TVs can decode Atmos from TrueHD.
I dont know the behavior on the internal LG player but using the PLEX app, the lossless audio gets converted on the fly to DD+ or opus 7.1 and it breaks DV support in the process.
yossSP
Posts: 54
Joined: Tue Feb 16, 2021 7:42 am

Re: Dolby Vision now possible through MP4 Mux.

Post by yossSP »

RESET_9999 wrote:
Sun Jan 15, 2023 6:37 pm
yossSP wrote:
Sun Jan 15, 2023 6:09 pm
I would want to launch a question:
Which conversion from a lossless 7.1 audio track is better? EAC3 5.1@1536kbps or EAC3 7.1@1024kbps.
It could be really noticiable the loss of quality from the reduced bitrate? I prefer to loose the extra channels if the lack of quality is noticiable.

PS: I'm aware of the limitation of not having dee.exe.
If you have a 7.1 audio system. Use 7.1 DD+ otherwise use 5.1 1536kbps.
The quality difference between 1024 and 1536kbps is VERY small.

I have DEE and can encode 7.1 @1536kbps but I think the quality sucks and I prefer FFmpeg and EAE. DEE does some DRC and it cannot be disabled (not to mention it also swaps channels by default).
audio test file: https://drive.google.com/file/d/1wRlklh ... share_link
https://ibb.co/f2w4MhG
Ok, thanks for the feedback @RESET_9999, I'll discard definitively DEE use.
My Onkyo AV Receiver is 7.1 capable but it's connected to a 5.0 speaker setup, so for me it's necesary to downmix always to 5.0, but I will try to use DD+ 7.1@1024, because of the very small quality difference with DD+ 5.1@1536 and beacause I think that is preferible to keep all the original channels and let my Onkyo downmix better than do it via software (Fmpeg + EAE).
DylanValenti
Posts: 36
Joined: Sat Dec 19, 2020 9:42 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by DylanValenti »

I'm trying to install the script but I can't find a place to get the tools folder. Without it I keep getting "The system cannot find the path specified". Any ideas? @RESET_9999
yossSP
Posts: 54
Joined: Tue Feb 16, 2021 7:42 am

Re: Dolby Vision now possible through MP4 Mux.

Post by yossSP »

RESET_9999 wrote:
Sun Jan 15, 2023 6:37 pm
if "%spanish%"=="YES" set lang=Spanish& set langDG=spa& set lmp4=sp& set lmkv=sp
to:
if "%spanish%"=="YES" set lang=Spanish& set langDG=spa& set lmp4=es& set lmkv=es
Thank you . I will make the change in the next version. :)
After a few more tests, the definitive code to detect spanish tracks is the next one:

Code: Select all

if "%spanish%"=="YES" set lang=Spanish& set langDG=spa& set lmp4=es-ES& set lmkv=es
sw5163
Posts: 146
Joined: Sat Jun 25, 2022 7:28 am

Re: Dolby Vision now possible through MP4 Mux.

Post by sw5163 »

RESET_9999 wrote:
Sun Jan 15, 2023 1:45 pm
nop i dont think so. If it ever happens it will be from there: https://forum.doom9.org/showthread.php?t=184364
the best you can do i think (but never tried) is to take the metadata from an existing DD+ atmos 768kbps track and encode a new 1536kbps DD+ atmos track in DEE + cavernize using the TrueHD and DDP track metadata.
https://www.audiosciencereview.com/foru ... 51/page-14
I think you can get "Fixed" eac3 atmos from TrueHD atmos now, if you somehow have Dolby Encoding Engine and Dolby Reference Player.

Use https://gist.github.com/Plazik/e950267c ... 879aaa3d5d atmos_decode.py to decode TrueHD+atmos to 16 channel WAV and put those tracks in DEE.

Although the dynamic object data will be lost but you can actually get 7.1.4 or 9.1.6. Just configure the output when decoding.

I would also like to ask if there is a way to merge 12 single channel WAV files into 7.1.4 multi-channel PCM or WAV.
I tried FFmpeg's amerge but I don't know how to merge the over head channel.
To be honest, I don't know anything about audio encoding, and I have no idea what I'm doing.
Videoman
Posts: 1
Joined: Wed Jan 18, 2023 12:59 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Videoman »

@RESET_9999

Hello and many thanks for your excellent script that can be of great value to many people.

I'd appreciate it if you (or anyone else) could help me out with exactly what changes (in detail) I need to make to the script to get the output as outlined below, as I've tried a few different things but haven't quite made it yet.

Input is MKV-container from 4K UHD disk ripped with MakeMKV, that contains:
- DoVi P7 video file
- Multiple audio files, sometimes in English, sometimes in Norwegian, sometimes in Swedish
- One or multiple PGS subtitles, usually in Norwegian, sometimes in English og Swedish

I like the output to be:
- DoVi P8.1 video file
- All input audio files untouched/passthrough
- All input subtitles untouched/passthrough
- Muxed together in a MKV-container

Thank you in advance.
RESET_9999
Posts: 2058
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

Videoman wrote:
Wed Jan 18, 2023 1:26 pm
I like the output to be:
- DoVi P8.1 video file
- All input audio files untouched/passthrough
- All input subtitles untouched/passthrough
- Muxed together in a MKV-container
Thank you in advance.
Edit the bat file at line 22 -----> "set MUX=NO"
and line 19 ----> "set container=MKV"

then at the end of the workflow 4-2, you will have the option to mux any audio/sub you want in mkvtoolnix.

yossSP wrote:
Tue Jan 17, 2023 4:47 pm
After a few more tests, the definitive code to detect spanish tracks is the next one:

Code: Select all

if "%spanish%"=="YES" set lang=Spanish& set langDG=spa& set lmp4=es-ES& set lmkv=es
sw5163 wrote:
Tue Jan 17, 2023 5:41 pm
https://www.audiosciencereview.com/foru ... 51/page-14
I think you can get "Fixed" eac3 atmos from TrueHD atmos now, if you somehow have Dolby Encoding Engine and Dolby Reference Player.
thanks guys! :)

I'm trying to install the script but I can't find a place to get the tools folder. Without it I keep getting "The system cannot find the path specified". Any ideas? @RESET_9999
Yes I wont share the tools pack anymore.

@New dovi_script users, PM to get info on where to get the tools.
fervidace
Posts: 1
Joined: Wed Jan 18, 2023 11:46 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by fervidace »

anyone know how to get the tools for the dovi scripts? I cant find reference on where to get them anywhere. i would pm @RESET_9999 but im new to the forum and cant send PMs
ragico
Posts: 257
Joined: Fri Feb 15, 2019 1:09 am

Re: Dolby Vision now possible through MP4 Mux.

Post by ragico »

@quietvoid
Please can you share your Kodi 20 build?
Many thanks
quietvoid
Posts: 371
Joined: Sun Apr 19, 2020 4:15 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by quietvoid »

ragico wrote:
Thu Jan 19, 2023 2:52 pm
@quietvoid
Please can you share your Kodi 20 build?
Many thanks
I don't have any new one as my latest added on the fly DoVi converting for profile 7, FEL.
It's v21 though, and not really ready.
danbez
Posts: 13
Joined: Tue Nov 27, 2018 6:08 am

Re: Dolby Vision now possible through MP4 Mux.

Post by danbez »

quietvoid wrote:
Thu Jan 19, 2023 5:54 pm
ragico wrote:
Thu Jan 19, 2023 2:52 pm
@quietvoid
Please can you share your Kodi 20 build?
Many thanks
I don't have any new one as my latest added on the fly DoVi converting for profile 7, FEL.
It's v21 though, and not really ready.
Can you share more details about the plan for this conversion, @quietvoid. It sounds really interesting. Are you using DoViBaker to achieve that on-the-fly conversion of FEL?
quietvoid
Posts: 371
Joined: Sun Apr 19, 2020 4:15 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by quietvoid »

danbez wrote:
Thu Jan 19, 2023 6:32 pm
Can you share more details about the plan for this conversion, @quietvoid. It sounds really interesting. Are you using DoViBaker to achieve that on-the-fly conversion of FEL?
No, only the RPU metadata is converted to profile 8.1.
This is mostly useful for people who can't play profile 7 FEL (FireTV devices show a blank screen).
I'm not sure of other useful scenarios, other than maybe stability for other devices.
ragico
Posts: 257
Joined: Fri Feb 15, 2019 1:09 am

Re: Dolby Vision now possible through MP4 Mux.

Post by ragico »

quietvoid wrote:
Thu Jan 19, 2023 5:54 pm
ragico wrote:
Thu Jan 19, 2023 2:52 pm
@quietvoid
Please can you share your Kodi 20 build?
Many thanks
I don't have any new one as my latest added on the fly DoVi converting for profile 7, FEL.
It's v21 though, and not really ready.
Thanks. When ready, pls share your 21 build.
danbez
Posts: 13
Joined: Tue Nov 27, 2018 6:08 am

Re: Dolby Vision now possible through MP4 Mux.

Post by danbez »

quietvoid wrote:
Thu Jan 19, 2023 8:52 pm
No, only the RPU metadata is converted to profile 8.1.
This is mostly useful for people who can't play profile 7 FEL (FireTV devices show a blank screen).
I'm not sure of other useful scenarios, other than maybe stability for other devices.
I see. Thanks for the explanation!
NiCE77
Posts: 86
Joined: Sat Mar 28, 2020 7:49 am

Re: Dolby Vision now possible through MP4 Mux.

Post by NiCE77 »

quietvoid wrote:
Thu Jan 19, 2023 5:54 pm
ragico wrote:
Thu Jan 19, 2023 2:52 pm
@quietvoid
Please can you share your Kodi 20 build?
Many thanks
I don't have any new one as my latest added on the fly DoVi converting for profile 7, FEL.
It's v21 though, and not really ready.
Can this conversion code under Kodi be found in one of the github repos?
Post Reply