Dolby Vision now possible through MP4 Mux.

Please post here for issues related to UHD discs
Post Reply
Gatorman
Posts: 84
Joined: Thu Feb 10, 2022 3:47 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Gatorman »

Manixx2020beyound wrote: Fri Nov 25, 2022 8:29 pm For windows yes. Or a hack I found which allows resolve to think it’s connected to a doblyvision monitor, that was discussed here a while back.
Thanks. I'll track down that post.
More reasons to collect physical media. Ugoos AM6B+ CE p3i PM4K.
MastaG
Posts: 98
Joined: Thu Aug 08, 2019 11:40 am

Re: Dolby Vision now possible through MP4 Mux.

Post by MastaG »

I'm trying to use RESET's DV scripts to convert my Westworld discs to mp4 using the old mp4muxer method using .ts input (7-2-4).
For this I've used TSMuxerGUI first to extract the first episode (00089.mpls) to ts file.
The audio track seems to be TrueHD and I didn't downconvert it to AC3.
When opening the ts file with the script, it will demux and use eac3to extract the AC3 audio from the trueHD track.

Here's the output:

Code: Select all

                        _____    __      ___       _____           _       _
                       |  __ \   \ \    / (_)     / ____|         (_)     | |
                       | |  | | __\ \  / / _     | (___   ___ _ __ _ _ __ | |_ ___
                       | |  | |/ _ \ \/ / | |     \___ \ / __| '__| | '_ \| __/ __|
                       | |__| | (_) \  /  | |     ____) | (__| |  | | |_) | |_\__ \
                       |_____/ \___/ \/   |_|    |_____/ \___|_|  |_| .__/ \__|___/
                       -@RESET_9999---------------------------------|__|-----------



 Choose a mode...

1) MODE.I=  DoVi Convert/Edit/Sync/Inject 2 inputs (P8 Hybrid maker)
2) MODE.F=  DoVi Fix/Extract/Info/Edit/Verify 1 input (does not convert the profile)
3) MODE.H=  DoVi Maker (from HDR10 madVR or HDR10plus)
4) MODE.P=  Profile 7 Input (MKV/BDMV)
5) MODE.B=  Dovi Batch tsMuxer: MKV/MP4 to TS
6) MODE.M=  MIXED: Remover/Measurer/Plotter/Audio/Player and more...
7) MODE.M4= MP4 Workflows
8) Exit

Choice? [1,2,3,4,5,6,7,8]?7
                                           *****************
                                           * CHOOSE A MODE *
                                           *****************

1) MODE.1= Single-Track (mp4box, Apple, Sony, Newer LG)
2) MODE.2= Old mp4muxer workflows (older LG TVs)
3) MODE.3= Dual-Track (p7)
4) MODE.4= Demuxer (p5, p8, p7)
5) MODE.5= Resolve HDR10/SDR MP4 (temp/testing)
6) MODE.6= back to main menu

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

1) Workflow.1= MANUAL: Any P8/P5 HEVC/H265 + Any Audio(lossless audio included) + SRT subtitle
2) Workflow.2= Bluray Disc to Profile 8 + AC3
3) Workflow.3= Bluray Disc to Profile 8 + EC3
4) Workflow.4= MKV/TS/M2TS Profile 7/8 to Profile 8 + AC3
5) Workflow.5= MKV/TS/M2TS Profile 7/8 to Profile 8 + EC3
6) Workflow.6= HDR10 or HDR10plus to DoVi Profile 8 + AC3
7) Workflow.7= HDR10 or HDR10plus to DoVi Profile 8 + EC3
8) Workflow.8= BATCH MKV/TS/M2TS Profile 7/8 to Profile 8 + EC3

Choice? [1,2,3,4,5,6,7,8]?4
--------------------------------------------------------------------
-- This workflow convert P7/P8 MKV TS M2TS to P8 MP4
-- Convert or use existing AC3 audio
-- Dont use this workflow for AppleTV P8 hybrid
-------------------------------------------------------------------
Drag and drop your MKV/TS file and press enter...D:\ww_s01e01.ts
tsMuxeR version git-a10bea3. github.com/justdan96/tsMuxer
HEVC muxing fps is not set. Get fps from stream. Value: 23.976
HEVC muxing fps is not set. Get fps from stream. Value: 23.976
0.0% complete
1.4% complete
2.9% complete
4.2% complete
5.5% complete
6.8% complete
8.2% complete
9.5% complete
10.8% complete
12.2% complete
13.5% complete
14.9% complete
16.3% complete
17.7% complete
19.1% complete
20.5% complete
21.9% complete
23.2% complete
24.6% complete
25.9% complete
27.3% complete
28.6% complete
30.0% complete
31.4% complete
32.7% complete
34.0% complete
35.4% complete
36.7% complete
38.0% complete
39.3% complete
40.6% complete
41.9% complete
43.3% complete
44.6% complete
46.0% complete
47.3% complete
48.6% complete
49.9% complete
51.3% complete
52.7% complete
54.1% complete
55.4% complete
56.7% complete
58.1% complete
59.4% complete
60.7% complete
62.0% complete
63.4% complete
64.8% complete
66.1% complete
67.4% complete
68.8% complete
70.1% complete
71.5% complete
72.9% complete
74.2% complete
75.5% complete
76.9% complete
78.3% complete
79.7% complete
81.0% complete
82.3% complete
83.7% complete
85.1% complete
86.4% complete
87.8% complete
89.1% complete
90.5% complete
91.8% complete
93.2% complete
94.5% complete
95.9% complete
97.3% complete
98.7% complete
Processed 97945 video frames
Processed 97945 video frames
100.0% complete
Flushing write buffer
Demux complete.
Demuxing time: 18 sec
TS, 2 video tracks, 1 audio track, 1:08:05, 11.988p
1: h265/HEVC, 2160p24 /1.001 (16:9), 10 bits, -11650ms
2: h265/HEVC, 1080p24 /1.001 (16:9), 10 bits - Dolby Vision Enhancement Layer, -11650ms
3: TrueHD/AC3 (Atmos), 7.1 channels, 48kHz, -11650ms
   (embedded: AC3 EX, 5.1 channels, 448kbps, 48kHz, dialnorm: -27dB)
a03 Extracting audio track number 3...
a03 Extracting AC3 stream...
a03 Removing AC3 dialog normalization...
a03 Applying (E-)AC3 delay...
a03 A remaining delay of -2ms could not be fixed.
a03 Creating file "D:\Apps\DoVi_Scripts\TEMP_folder\audio.ac3"...
Video track 1 contains 97926 frames.
Video track 2 contains 97926 frames.
eac3to processing took 58 seconds.
Done.
mkvmerge v71.1.0 ('Fortitude') 64-bit
'D:\Apps\DoVi_Scripts\TEMP_folder\EL.hevc': Using the demultiplexer for the format 'HEVC/H.265'.
'D:\Apps\DoVi_Scripts\TEMP_folder\EL.hevc' track 0: Using the output module for the format 'HEVC/H.265 (unframed)'.
The file 'D:\Apps\DoVi_Scripts\TEMP_folder\EL.mkv' has been opened for writing.
'D:\Apps\DoVi_Scripts\TEMP_folder\EL.hevc' track 0: Extracted the aspect ratio information from the video bitstream and set the display dimensions to 1920/1080.
Progress: 1%
The cue entries (the index) are being written...
Multiplexing took 0 seconds.
Extracting track 0 with the CodecID 'V_MPEGH/ISO/HEVC' to the file 'D:\Apps\DoVi_Scripts\TEMP_folder\el.chunk.hevc'. Container format: HEVC/H.265 elementary stream
Progress: 100%
Reordering metadata... Done.
Parsing RPU file...
Exporting metadata...
Done.
converting and injecting RPU...
Rewriting file with interleaved EL NALUs..
muxing into a DV MP4 . Be patient, it can take a while. 40min+ on slow HDD!
        1 file(s) moved.
the script has completed...
Press any key to continue . . .
I didn't test it on my LG TV yet, but the resulting mp4 seems to have the audio out of sync when playing it with VLC.

Any ideas?
saba30
Posts: 4
Joined: Mon Oct 24, 2022 8:12 am

Re: Dolby Vision now possible through MP4 Mux.

Post by saba30 »

bugfix for DoVi_Scripts.bat
1.6.8
17291: if exist "%TEMP%%filename%.track_%AID%_%langDG%.ac3" set audio="%TEMP%%filename%.track_%AID%_%lang%.ac3" =>
17291: if exist "%TEMP%%filename%.track_%AID%_%langDG%.ac3" set audio="%TEMP%%filename%.track_%AID%_%langDG%.ac3"

18044: if exist "%TEMP%%filename%.track_%AID%_%langDG%.ac3" set audio="%TEMP%%filename%.track_%AID%_%lang%.ac3" =>
18044: if exist "%TEMP%%filename%.track_%AID%_%langDG%.ac3" set audio="%TEMP%%filename%.track_%AID%_%langDG%.ac3"

17013: if not "%ac3%"=="y" "%eac3to_path%" "%filepath%%filename%%fileext%" %EID%:"%TEMP%audio.ac3" & set audio="%TEMP%audio.ac3" =>
17013: if not "%ac3%"=="y" "%eac3to_path%" "%filepath%%filename%%fileext%" %EID% "%TEMP%audio.ac3" & set audio="%TEMP%audio.ac3"

18047: if not "%ac3%"=="y" "%eac3to_path%" "%filepath%%filename%%fileext%" %EID%:"%TEMP%audio.ac3" & set audio="%TEMP%audio.ac3" =>
18047: if not "%ac3%"=="y" "%eac3to_path%" "%filepath%%filename%%fileext%" %EID% "%TEMP%audio.ac3" & set audio="%TEMP%audio.ac3"
ArArdin
Posts: 196
Joined: Fri Nov 20, 2020 1:40 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by ArArdin »

Thanks @saba30.

Is this already taken care of in batch version 1.6.8.1 BETA ? If not, can you tell the line numbers to be edited?
Gatorman
Posts: 84
Joined: Thu Feb 10, 2022 3:47 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Gatorman »

ArArdin wrote: Sun Nov 27, 2022 10:49 am Thanks @saba30.

Is this already taken care of in batch version 1.6.8.1 BETA ? If not, can you tell the line numbers to be edited?

If you're trying to communicate with @Reset_9999, the best way is through PM.
More reasons to collect physical media. Ugoos AM6B+ CE p3i PM4K.
ArArdin
Posts: 196
Joined: Fri Nov 20, 2020 1:40 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by ArArdin »

I assumed saba30 was another person that found a bug. Didn't have the intention to disturb RESET_9999 since he's having a break.

Thanks, Gatorman.
Gatorman
Posts: 84
Joined: Thu Feb 10, 2022 3:47 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Gatorman »

ArArdin wrote: Sun Nov 27, 2022 7:42 pm I assumed saba30 was another person that found a bug. Didn't have the intention to disturb RESET_9999 since he's having a break.

Thanks, Gatorman.

Yeah, it was early for me when I saw those posts. My mistake. :?
More reasons to collect physical media. Ugoos AM6B+ CE p3i PM4K.
ArArdin
Posts: 196
Joined: Fri Nov 20, 2020 1:40 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by ArArdin »

As for saba30's bugfix post and BETA version, I found this.

First off, I think the mentioned flawed line# 17013 - in v1.6.8 - is a slip of the pen and should be 17313.
It seems the bug isn't addressed in version 1.6.8.2.BETA:

v1.6.8 lines to be corrected

17291
18044
17313
18047

seem v1.6.8.2.BETA lines to be corrected

17281
18034
17303
18037

I'm rather unsure though and feel dangerously out on a limb. Could someone confirm if my findings are either right or wrong?
Manixx2020beyound
Posts: 127
Joined: Thu Oct 08, 2020 5:19 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Manixx2020beyound »

Any one in this forum has a vertex2?(I guess not)
Anyone so we can confirm my hack??
Vertex2 resolve combo & windows desktop.
U will also need dobly DV extensions app.
I am very confident this should work on any pc as I’ve tested this on 3 different pc desktops
My test pc right now low end cost about the same price as the vertex2, & works fine. Struggles with hevc encode but that’s expected,
saba30
Posts: 4
Joined: Mon Oct 24, 2022 8:12 am

Re: Dolby Vision now possible through MP4 Mux.

Post by saba30 »

Yes, you are absolutely right, the lines are good in beta version 1.6.8.2
ArArdin wrote: Mon Nov 28, 2022 12:50 pm As for saba30's bugfix post and BETA version, I found this.

First off, I think the mentioned flawed line# 17013 - in v1.6.8 - is a slip of the pen and should be 17313.
It seems the bug isn't addressed in version 1.6.8.2.BETA:

v1.6.8 lines to be corrected

17291
18044
17313
18047

seem v1.6.8.2.BETA lines to be corrected

17281
18034
17303
18037

I'm rather unsure though and feel dangerously out on a limb. Could someone confirm if my findings are either right or wrong?
ArArdin
Posts: 196
Joined: Fri Nov 20, 2020 1:40 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by ArArdin »

Great. Thanks for confirmation, saba30.
Manixx2020beyound
Posts: 127
Joined: Thu Oct 08, 2020 5:19 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Manixx2020beyound »

A0FB77B8-E926-4AC5-BC89-765B64E66806.jpeg
A0FB77B8-E926-4AC5-BC89-765B64E66806.jpeg (911.7 KiB) Viewed 22514 times
77CCA866-4175-4A74-8A2C-782011FBD33A.jpeg
77CCA866-4175-4A74-8A2C-782011FBD33A.jpeg (2.7 MiB) Viewed 22514 times
Here is a p8.1 sample from a decoded p5
Dolby vision art of essence demo.ta :twisted: xeio
https://drive.google.com/file/d/1dolWY0 ... p=drivesdk

Here is the p5 original
https://drive.google.com/file/d/1-5vRoc ... p=drivesdk
I don’t think their is an hdr10 version that exists,
I could be wrong.
On the raw export dnxhr 444-12bit all the doblyvision itcp colors are transferred.
The profile color space remains 2-2-2 which is profile 5 even doe it’s decoded,
2-2-2 is also detected in staxrip on the exports.
Last edited by Manixx2020beyound on Mon Dec 05, 2022 12:41 pm, edited 1 time in total.
jsc1979
Posts: 3
Joined: Sat Jan 15, 2022 4:47 am

Re: Dolby Vision now possible through MP4 Mux.

Post by jsc1979 »

Does anyone know if the UBPx800 can play Dolby vision via Mkv?

Thanks
ragico
Posts: 266
Joined: Fri Feb 15, 2019 1:09 am

Re: Dolby Vision now possible through MP4 Mux.

Post by ragico »

jsc1979 wrote: Thu Dec 08, 2022 8:30 am Does anyone know if the UBPx800 can play Dolby vision via Mkv?

Thanks
No it does not.
Play in TS container.
ttringle
Posts: 10
Joined: Sun Jan 29, 2017 11:32 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by ttringle »

olevelo wrote: Thu Jan 24, 2019 2:45 am
ttringle wrote: Wed Jan 23, 2019 11:58 pm Well at the moment I only have access to HDR10 via my Samsung. My next TV will have access to HDR10, HDR10+ and most like Dolby Vision and maybe HLG as well. But if I had to choose between Lossless Audio and DV over HDR10 + Lossless Audio then DV would lose out every time. Granted I have avoided being exposed to Dolby Vision because I currently do not have a DV capable TV but I would still take lossless audio. For me audio is as important as the picture. But that might change once I have DV but Audio is still a big part of why I ever upgrade at all.

TimT
My point wasn't so much that one is more important than the other, but rather that they should both be important. If you're going to be one who insists on having the best by having lossless audio, why would you not also insist on having the best by having DV (or at least the option). I don't have an HDR10+ TV (and won't for quite awhile since I only just bought my LG OLED), but I would also argue for any capability to retain HDR10+ video as well, just as vehemently. The post I responded to originally said "what's the point?". If you don't get what the point is, then you should just be streaming off of Netflix. (granted, part of the argument was "what's the point of the current implementation without lossless audio", but that's not seeing the forest for the trees)
Relax, I don't dictate to other people what they should use and was only stating that in my opinion HD Audio was as if not more important than HDR of which I only then and still now had access to HDR10. They are both important and still don't see your point since both are offered still today. And telling someone that if they don't get YOUR point that they should be streaming movies from Netflix is insulting and reductive. My entire life I have seen more than most of the people in my life and the same thing with audio, though less now that I am in my 50s. They are called opinions, get used to other peoples differing from yours.
Post Reply