Dolby Vision now possible through MP4 Mux.

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

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

johnjon94 wrote:
Tue Oct 04, 2022 5:42 pm
Is it possible to adjust the first workflow to use mp4box rather than mp4muxer and add more than just 2 subtitles?
Yes, I'm currently implementing MKV and TS muxing for all the workflows that convert audio so I think I'll add mp4 muxing with mp4box as well.
May I know why you want more than two subtitles? forced and complete is not enough?
johnjon94
Posts: 35
Joined: Thu Nov 11, 2021 5:59 am

Re: Dolby Vision now possible through MP4 Mux.

Post by johnjon94 »

RESET_9999 wrote:
Tue Oct 04, 2022 5:59 pm
johnjon94 wrote:
Tue Oct 04, 2022 5:42 pm
Is it possible to adjust the first workflow to use mp4box rather than mp4muxer and add more than just 2 subtitles?
Yes, I'm currently implementing MKV and TS muxing for all the workflows that convert audio so I think I'll add mp4 muxing with mp4box as well.
May I know why you want more than two subtitles? forced and complete is not enough?
mp4box muxing rather than mp4muxer has a drastic change on the time it takes to complete the mux, so that would be great. (minutes vs hours)

For subtitles, I like to include all of the subtitles for every language that it available in my MP4 files. So if I have an MKV file with 20+ subtitles, I include those with the MP4 as well. I also include chapters when they are available, which can also be added using mp4box.
RESET_9999
Posts: 1853
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

johnjon94 wrote:
Tue Oct 04, 2022 6:06 pm
mp4box muxing rather than mp4muxer has a drastic change on the time it takes to complete the mux, so that would be great. (minutes vs hours)

For subtitles, I like to include all of the subtitles for every language that it available in my MP4 files. So if I have an MKV file with 20+ subtitles, I include those with the MP4 as well. I also include chapters when they are available, which can also be added using mp4box.
which playback device are you using?
johnjon94
Posts: 35
Joined: Thu Nov 11, 2021 5:59 am

Re: Dolby Vision now possible through MP4 Mux.

Post by johnjon94 »

RESET_9999 wrote:
Tue Oct 04, 2022 7:06 pm
johnjon94 wrote:
Tue Oct 04, 2022 6:06 pm
mp4box muxing rather than mp4muxer has a drastic change on the time it takes to complete the mux, so that would be great. (minutes vs hours)

For subtitles, I like to include all of the subtitles for every language that it available in my MP4 files. So if I have an MKV file with 20+ subtitles, I include those with the MP4 as well. I also include chapters when they are available, which can also be added using mp4box.
which playback device are you using?
LG C2 OLED as well as an NVIDIA Shield
staknhalo
Posts: 145
Joined: Sun Oct 11, 2020 12:05 am

Re: Dolby Vision now possible through MP4 Mux.

Post by staknhalo »

johnjon94 wrote:
Tue Oct 04, 2022 3:37 pm
hdr=none prevents HDR10 from being displayed twice in the mediainfo
i've seen this, is that the only thing it effects (mediainfo redaout)? is playback effected at all on anything?
RESET_9999
Posts: 1853
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

johnjon94 wrote:
Tue Oct 04, 2022 7:29 pm
So as expected, it doesnt trigger DV on LG C8. So I kept the old mp4muxer workflow for older LG TV owners but now the main mode(single track) can do both "fake P5" and HEV1 P8.
I didn't add more subtitles/audio support because it requires more work but I will.

here's a beta version if you want to test:
https://drive.google.com/file/d/1xh4esC ... sp=sharing
johnjon94
Posts: 35
Joined: Thu Nov 11, 2021 5:59 am

Re: Dolby Vision now possible through MP4 Mux.

Post by johnjon94 »

RESET_9999 wrote:
Wed Oct 05, 2022 12:12 am
johnjon94 wrote:
Tue Oct 04, 2022 7:29 pm
So as expected, it doesnt trigger DV on LG C8. So I kept the old mp4muxer workflow for older LG TV owners but now the main mode(single track) can do both "fake P5" and HEV1 P8.
I didn't add more subtitles/audio support because it requires more work but I will.

here's a beta version if you want to test:
https://drive.google.com/file/d/1xh4esC ... sp=sharing
When you select option 1, it brings you to the DV Fixer option instead of the correct muxing option, I had to select option 4. Image
Last edited by johnjon94 on Wed Oct 05, 2022 1:07 am, edited 2 times in total.
RESET_9999
Posts: 1853
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

oups, there was an error in my menu order.

https://drive.google.com/file/d/102G6_Z ... sp=sharing
johnjon94
Posts: 35
Joined: Thu Nov 11, 2021 5:59 am

Re: Dolby Vision now possible through MP4 Mux.

Post by johnjon94 »

RESET_9999 wrote:
Wed Oct 05, 2022 1:04 am
oups, there was an error in my menu order.

https://drive.google.com/file/d/102G6_Z ... sp=sharing
Is it possible to make a setting to mux from MKV P8 to MP4 P8? It looks like only the P5 muxing options are set

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

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

yes, I forgot to remove the "P5" in the menu title. It can do P7/P8 input and the output will always be P8 (or fake p5 for apple)
johnjon94
Posts: 35
Joined: Thu Nov 11, 2021 5:59 am

Re: Dolby Vision now possible through MP4 Mux.

Post by johnjon94 »

RESET_9999 wrote:
Wed Oct 05, 2022 1:08 am
yes, I forgot to remove the "P5" in the menu title. It can do P7/P8 input and the output will always be P8 (or fake p5 for apple)
Understood! Thanks for the clarification, I'm giving it a test now. I also own an Apple TV and can test if the fake P5 works. Is there a specific player that its been said to work on like Infuse?
RESET_9999
Posts: 1853
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

johnjon94 wrote:
Wed Oct 05, 2022 1:11 am
Understood! Thanks for the clarification, I'm giving it a test now. I also own an Apple TV and can test if the fake P5 works. Is there a specific player that its been said to work on like Infuse?
you have to use PLEX IIRC. infuse removed support for fake p5 i think.

I'm noticing that the 7.1 EC3 audio is stuttering. EC3 Atmos and ffmpeg EC3 5.1 are fine.
TS and mkv have no issue with 7.1 EC3 tracks
johnjon94
Posts: 35
Joined: Thu Nov 11, 2021 5:59 am

Re: Dolby Vision now possible through MP4 Mux.

Post by johnjon94 »

RESET_9999 wrote:
Wed Oct 05, 2022 1:14 am
johnjon94 wrote:
Wed Oct 05, 2022 1:11 am
Understood! Thanks for the clarification, I'm giving it a test now. I also own an Apple TV and can test if the fake P5 works. Is there a specific player that its been said to work on like Infuse?
you have to use PLEX IIRC. infuse removed support for fake p5 i think.

I'm noticing that the 7.1 EC3 audio is stuttering. EC3 Atmos and ffmpeg EC3 5.1 are fine.
TS and mkv have no issue with 7.1 EC3 tracks
A few things I noticed that need to be set with mp4box -

When adding the video input you need to add hdr=none to make sure the static metadata from the HDR10 base file is not changed.
viewtopic.php?p=124635#p124635

When using dv profile to 8 (or whatever profile the file is that you're muxing into MP4) you need to include dv-profile=8.1 (I'm not sure how this would affect the "fake" P5 though).

The flag xps_inband needs to be set if the source file is dvhe rather than dvh1 (also not sure how this would affect the "fake" P5).

The settings -for-test cleans up the MP4 file by removing the "Encoded Date" "Tagged Date" and "Writing Application" information for each track.

So the full command would be like this

Code: Select all

mp4box -for-test -add "input.hevc:hdr=none:dv-profile=8.1:xps_inband" 
sw5163
Posts: 140
Joined: Sat Jun 25, 2022 7:28 am

Re: Dolby Vision now possible through MP4 Mux.

Post by sw5163 »

staknhalo wrote:
Tue Oct 04, 2022 9:58 pm
johnjon94 wrote:
Tue Oct 04, 2022 3:37 pm
hdr=none prevents HDR10 from being displayed twice in the mediainfo
i've seen this, is that the only thing it effects (mediainfo redaout)? is playback effected at all on anything?
I can't tell the difference between quality from my eyes. So I just don't bother to change it.
johnjon94 wrote:
Tue Oct 04, 2022 3:37 pm

Code: Select all

mp4box.exe -add "%BL%:hdr=none:dv-profile=8.1:xps_inband" -add "audio" -add "subtitle" -brand mp42isom -ab dby1 -no-iod -enable 1 "output.mp4"
Hi, I'm curious about what does `-ab dby1 -no-iod -enable 1` mean?
Will they affect final quality of the image?
Could you please explain a little bit more of this, thanks!
johnjon94 wrote:
Wed Oct 05, 2022 1:11 am
Understood! Thanks for the clarification, I'm giving it a test now. I also own an Apple TV and can test if the fake P5 works. Is there a specific player that its been said to work on like Infuse?
Apple's native player or any player that "passthrough" that file to Apple's player core. Avoid using INFUSE.
I play them in "FILE" App directly SMB from my PC.
sw5163 wrote:
Thu Sep 22, 2022 4:56 pm
Also do you guys know if there is an option in mp4box to convert dvhe->dvh1 when importing mp4?

Currently I'm using:
ffmpeg -i dvhe.mp4 -c copy dv.hevc
mp4box -add dv.hevc -new dvh1.mp4
But it would be nice if I could just skip the ffmpeg step.
Thanks.
The command is: https://github.com/gpac/gpac/issues/199 ... 1262491409

Code: Select all

MP4Box -add source_dvhe.mp4:dopt:xps_inband=no -new source_dvh1.mp4
Also if anyone is interested, the latest mp4box auto detects DV Profile now, instead of tag everything as P5 dvh1.
https://github.com/gpac/gpac/issues/199 ... 1263426298
johnjon94
Posts: 35
Joined: Thu Nov 11, 2021 5:59 am

Re: Dolby Vision now possible through MP4 Mux.

Post by johnjon94 »

RESET_9999 wrote:
Wed Oct 05, 2022 1:14 am
johnjon94 wrote:
Wed Oct 05, 2022 1:11 am
Understood! Thanks for the clarification, I'm giving it a test now. I also own an Apple TV and can test if the fake P5 works. Is there a specific player that its been said to work on like Infuse?
you have to use PLEX IIRC. infuse removed support for fake p5 i think.

I'm noticing that the 7.1 EC3 audio is stuttering. EC3 Atmos and ffmpeg EC3 5.1 are fine.
TS and mkv have no issue with 7.1 EC3 tracks
The fake P5 doesn't seem to be working properly. It set a very odd FPS resulting in this crazy length

Image
Post Reply