Dolby Vision now possible through MP4 Mux.

Please post here for issues related to UHD discs
xxyz1
Posts: 7
Joined: Mon Sep 05, 2022 1:21 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by xxyz1 »

RESET_9999 wrote:
Wed Sep 07, 2022 6:24 pm

not sure i understand what you mean.
I mean the is no language tag.

Image
RESET_9999 wrote:
Wed Sep 07, 2022 6:24 pm
How can I pause the script after demuxing and before muxing?
you can't, sorry. Just have your files ready before running the script.
Ok, can I manual muxing after use your script for demuxing?

What's the muxing script with
1 video stream DV 08.06
1 eac3 or ac3 audio stream
1 srt forced flag subtitle
looks like?
sw5163
Posts: 146
Joined: Sat Jun 25, 2022 7:28 am

Re: Dolby Vision now possible through MP4 Mux.

Post by sw5163 »

xxyz1 wrote:
Wed Sep 07, 2022 9:14 pm
What's the muxing script with
1 video stream DV 08.06
1 eac3 or ac3 audio stream
1 srt forced flag subtitle
looks like?

Code: Select all

mp4box -add dv.hevc -add audio.ec3:lang=eng -add sub.srt:lang=ger:txtflags=0xC0000000 -new p5.dvh1.mp4
or if you want proper P8.1

Code: Select all

mp4box -add dv.hevc:dv-profile=8.1 -add audio.ec3:lang=eng -add sub.srt:lang=ger:txtflags=0xC0000000 -new p81.hvc1.mp4
I don't know the exact short tag for german.
If sub and audio are marked with same language tag, sub will default show up in most devices even without the 'forced' flag. So if you just want the sub to default show up, you can deliberately mark it English. I mark all my Chinese sub as eng, lol.
staknhalo
Posts: 178
Joined: Sun Oct 11, 2020 12:05 am

Re: Dolby Vision now possible through MP4 Mux.

Post by staknhalo »

sw5163 wrote:
Wed Sep 07, 2022 5:31 pm

Code: Select all

mp4box -add sub.srt:txtflags=0xC0000000
can set the forced tag for sub in mp4.
just bookmarking for myself, ignore :lol:
xxyz1
Posts: 7
Joined: Mon Sep 05, 2022 1:21 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by xxyz1 »

sw5163 wrote:
Wed Sep 07, 2022 9:46 pm

or if you want proper P8.1

Code: Select all

mp4box -add dv.hevc:dv-profile=8.1 -add audio.ec3:lang=eng -add sub.srt:lang=ger:txtflags=0xC0000000 -new p81.hvc1.mp4
With this script, the TV does not play Dolby Vision, only HDR.
Mediainfo shows three times "HDR10".

Image

Btw what does "proper" mean?
DonaldFaQ
Posts: 7
Joined: Mon Oct 21, 2019 9:40 am

Re: Dolby Vision now possible through MP4 Mux.

Post by DonaldFaQ »

MP4 is a horrible Container. I recommend for fun with DV files a Shield Pro 2019 Media Player (or a Zidoo Z9X).
sw5163
Posts: 146
Joined: Sat Jun 25, 2022 7:28 am

Re: Dolby Vision now possible through MP4 Mux.

Post by sw5163 »

xxyz1 wrote:
Thu Sep 08, 2022 6:19 am
sw5163 wrote:
Wed Sep 07, 2022 9:46 pm
or if you want proper P8.1

Code: Select all

mp4box -add dv.hevc:dv-profile=8.1 -add audio.ec3:lang=eng -add sub.srt:lang=ger:txtflags=0xC0000000 -new p81.hvc1.mp4
With this script, the TV does not play Dolby Vision, only HDR.
Mediainfo shows three times "HDR10".
Edit:
Sorry my bad, I should do more research.
Double Edit:
Im a dummy, should have let more knowledgeable people to answer this.
Please try

Code: Select all

mp4muxer -i dv.hevc -o dv.mp4
mp4box -add dv.mp4 -add audio.eac3:lang=eng -add sub.srt:lang=ger:txtflags=0xC0000000 -new test.mp4
or see the discussion below. Many thanks @RESET_9999
xxyz1 wrote:
Thu Sep 08, 2022 6:19 am
Btw what does "proper" mean?
mp4box mux to Profile 5 dvh1 by default if you don't specify the "dv.hevc:dv-profile=8.1".
But it's not a big problem since most devices still recognize the file and play properly.
Im too lazy to type all those commands, as long as the file plays.
Last edited by sw5163 on Thu Sep 08, 2022 11:01 pm, edited 8 times in total.
RESET_9999
Posts: 2410
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

sw5163 wrote:
Thu Sep 08, 2022 3:02 pm
Please make sure you are using the latest mp4box, and your dv.hevc is DV track.
latest mp4box doesnt work with LG TVs
Sorry for my English.
G5 / AM6B+ / Denon 7.2.4
DoVi_Scripts
DoVi Playback Devices
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:
Thu Sep 08, 2022 3:08 pm
latest mp4box doesnt work with LG TVs
What? But the media info he provides is also not DV, so I don't know which part went wrong.
DonaldFaQ wrote:
Thu Sep 08, 2022 11:29 am
MP4 is a horrible Container. I recommend for fun with DV files a Shield Pro 2019 Media Player (or a Zidoo Z9X).
DV in mp4 can be recognized by most devices, DV in other formats may have compatibility issues.
Last edited by sw5163 on Thu Sep 08, 2022 3:15 pm, edited 1 time in total.
RESET_9999
Posts: 2410
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

sw5163 wrote:
Thu Sep 08, 2022 3:13 pm
RESET_9999 wrote:
Thu Sep 08, 2022 3:08 pm
latest mp4box doesnt work with LG TVs
What? But the media info he provides is also not DV, so I don't know which part went wrong.
For LG TVs (at least this is the case with my C8), we have to use the old mp4muxer/mp4box combo(the ones in my tool pack) otherwise DV is not triggered.
Sorry for my English.
G5 / AM6B+ / Denon 7.2.4
DoVi_Scripts
DoVi Playback Devices
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:
Thu Sep 08, 2022 3:14 pm
For LG TVs (at least this is the case with my C8), we have to use the old mp4muxer/mp4box combo(the ones in my tool pack) otherwise DV is not triggered.
Sorry, my bad. Will

Code: Select all

mp4muxer(v1.0) -i dv.hevc -i atmos.ec3 -o dv_audio.mp4
mp4box(v1.1) -add dv_audio.mp4#video -add dv_audio.mp4#audio:lang=eng -add sub.srt:lang=ger:txtflags=0xC0000000 -new test.mp4
be the right command?
Last edited by sw5163 on Thu Sep 08, 2022 11:02 pm, edited 3 times in total.
RESET_9999
Posts: 2410
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

sw5163 wrote:
Thu Sep 08, 2022 3:28 pm
mp4muxer(v1.1) -i dv.hevc -i atmos.ec3 -o dv_audio.mp4
mp4box(v1.1) -add dv_audio.mp4#video -add dv_audio.mp4#audio:lang=eng -add sub.srt:lang=ger:txtflags=0xC0000000 -new test.mp4
be the right command?
Yep, I didn't try yet but that looks right.
Sorry for my English.
G5 / AM6B+ / Denon 7.2.4
DoVi_Scripts
DoVi Playback Devices
sw5163
Posts: 146
Joined: Sat Jun 25, 2022 7:28 am

Re: Dolby Vision now possible through MP4 Mux.

Post by sw5163 »

Another interesting thing regarding the "complexity index",
on Windows Movies & TV:
`ffmpeg -i atmos(7.1).eac3 -c copy` (breaks complexity index) shows 6 channel:
Image
`mp4box -add atmos(7.1).ec3` (breaks complexity index) shows 2 channel:
Image
`mp4muxer -i atmos(7.1).ec3` (fix/restore complexity index) shows 8 channel:
Image
The atmos(7.1).ec3 is from 00003.m2ts Dolby demo
And although I believe I do it right, the atmos(7.1).ec3 is unplayable on Apple. (normal atmos(5.1).ec3 will be fine)
RESET_9999
Posts: 2410
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

interesting.
I'll try that file on my TV because no matter the 7.1 EC3 track i encode in DEE, it doesnt work even though my TV edid list that it support DD+ 7.1.

7.1 DD+ track with an ac3 core = I think my TV only plays the core because my avr reports PCM and Dolby Surround which means(i think) my AVR is upmixing 5.1 to 7.1
7.1 DD+ without core = AVR reports DD+ 7.1 but the audio is messed up.

on the x800m2:
7.1 DD+ track with an ac3 core = avr and x800m2 reports DD+ 7.1 and plays fine.
7.1 DD+ without core = AVR reports DD+ 7.1 but the audio is messed up.
Sorry for my English.
G5 / AM6B+ / Denon 7.2.4
DoVi_Scripts
DoVi Playback Devices
kazuma
Posts: 186
Joined: Fri Nov 08, 2019 9:51 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by kazuma »

sw5163 wrote:
Thu Sep 08, 2022 3:28 pm
RESET_9999 wrote:
Thu Sep 08, 2022 3:14 pm
For LG TVs (at least this is the case with my C8), we have to use the old mp4muxer/mp4box combo(the ones in my tool pack) otherwise DV is not triggered.
Sorry, my bad. Will

Code: Select all

mp4muxer(v1.1) -i dv.hevc -i atmos.ec3 --dv-profile 8 --dv-bl-compatible-id 1 -o dv_audio.mp4
mp4box(v1.1) -add dv_audio.mp4#video -add dv_audio.mp4#audio:lang=eng -add sub.srt:lang=ger:txtflags=0xC0000000 -new test.mp4
be the right command?
the first post don't work anymore on my C9. what are the steps to this way? can you explain? why switched from profile 7 to profile 8?

where do i find mp4muxer 1.1 and mp4box 1.1? is the first post up-to-date?
Last edited by kazuma on Thu Sep 08, 2022 9:58 pm, edited 1 time in total.
RESET_9999
Posts: 2410
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

kazuma wrote:
Thu Sep 08, 2022 9:53 pm
the first post don't work anymore on my C9. what are the steps to this way? can you explain? why switched from profile 7 to profile 8?

where do i find mp4muxer 1.1 and mp4box 1.1?
on the C9, forget about the mp4 container. Tsmuxer is your new bestfriend.
https://github.com/justdan96/tsMuxer/releases
sw5163 wrote:
Thu Sep 08, 2022 3:28 pm
mp4muxer(v1.1) -i dv.hevc -i atmos.ec3 --dv-profile 8 --dv-bl-compatible-id 1 -o dv_audio.mp4
mp4box(v1.1) -add dv_audio.mp4#video -add dv_audio.mp4#audio:lang=eng -add sub.srt:lang=ger:txtflags=0xC0000000 -new test.mp4
[/code]
be the right command?
I see that you edited your post. --dv-bl-compatible-id does not work with the old mp4muxer. It was implemented later.
Sorry for my English.
G5 / AM6B+ / Denon 7.2.4
DoVi_Scripts
DoVi Playback Devices
Post Reply