Dolby Vision now possible through MP4 Mux.

Please post here for issues related to UHD discs
Post Reply
built_to_chill
Posts: 36
Joined: Thu Feb 20, 2020 4:45 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by built_to_chill »

RESET_9999 wrote: Fri Feb 21, 2020 12:09 pm
No you still need to turn on DV for DV playback and turn it off for HDR10 playback.
Thanks. I bought an X700 this morning and have it setup and plugged in to my AVR.

I’ll be creating the MP4 remuxes on an Ubuntu machine.

Was easy to install ffmpeg and use your command to extract the two separate video files and audio as LPCM. Also managed to compile ‪mp4muxer‬ from GitHub reasonably painlessly (I had to first install “cc” which my lite server didn’t have).

Had to go out now but will experiment more later and report back if I got it working.
built_to_chill
Posts: 36
Joined: Thu Feb 20, 2020 4:45 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by built_to_chill »

Hi all - I'm finding the MP4Box command runs extremely slowly (I dare say running in movie realtime). This is for adding the LPCM to the dual layer MP4.

It seems to hit a bottle neck when it comes to add the LPCM (after apparently reading in the two video layers normally).

Is this normal? Looks like it might take hours...
RESET_9999
Posts: 2421
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

built_to_chill wrote: Fri Feb 21, 2020 6:23 pm Hi all - I'm finding the MP4Box command runs extremely slowly (I dare say running in movie realtime). This is for adding the LPCM to the dual layer MP4.

It seems to hit a bottle neck when it comes to add the LPCM (after apparently reading in the two video layers normally).

Is this normal? Looks like it might take hours...
it all depends on the speed of your HDD / SSD.
With my PCI-E M2 SSD, it takes less than 10min building the final MP4 with LPCM
Sorry for my English.
G5 / AM6B+ / Denon 7.2.4
DoVi_Scripts
DoVi Playback Devices
built_to_chill
Posts: 36
Joined: Thu Feb 20, 2020 4:45 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by built_to_chill »

RESET_9999 wrote: Fri Feb 21, 2020 8:05 pm
built_to_chill wrote: Fri Feb 21, 2020 6:23 pm Hi all - I'm finding the MP4Box command runs extremely slowly (I dare say running in movie realtime). This is for adding the LPCM to the dual layer MP4.

It seems to hit a bottle neck when it comes to add the LPCM (after apparently reading in the two video layers normally).

Is this normal? Looks like it might take hours...
it all depends on the speed of your HDD / SSD.
With my PCI-E M2 SSD, it takes less than 10min building the final MP4 with LPCM
I'm doing this on a SATA connected SSD. I'd be surprised if that's the bottle neck, but perhaps so.

I'm more inclined to think something is actually wrong. The rate it's going it would take 18 hours, and the one of the CPU cores would be at 100% for the duration (a core i3). Which is obviously dramatically different to 10 mins.

Incidentally I do also have an M2 SSD on the system, so I'll see if it's quicker there, and try a different file.

Edit: Also, I've found I can't use the option ":rate=0" after the video mp4, when using mp4box. It throws an error - perhaps because it's the linux version. I don't suppose you know what that does and if it could be the issue?
built_to_chill
Posts: 36
Joined: Thu Feb 20, 2020 4:45 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by built_to_chill »

RESET_9999 wrote: Fri Feb 21, 2020 8:05 pm
built_to_chill wrote: Fri Feb 21, 2020 6:23 pm Hi all - I'm finding the MP4Box command runs extremely slowly (I dare say running in movie realtime). This is for adding the LPCM to the dual layer MP4.

It seems to hit a bottle neck when it comes to add the LPCM (after apparently reading in the two video layers normally).

Is this normal? Looks like it might take hours...
it all depends on the speed of your HDD / SSD.
With my PCI-E M2 SSD, it takes less than 10min building the final MP4 with LPCM

I figured it out. The problem was the Ubuntu version of gpac/MP4box.

When I copied the "no audio" MP4 and lpcm.mov files over to my MacBook Pro, and did the final MP4Box command using the Mac version of gpac, it ran very quickly. When it was adding the video tracks to the temporary ISO - this was very similar speed to on Ubuntu - but it didn't grind to a halt when adding the LPCM. And the ":rate=0" option works on the Mac version. No idea what is going wrong on Ubuntu but at least I have a workable solution now.

Just tried my first MP4 with dual layer Dolby Vision and True HD/Atmos as LPCM on the X700 - Game of thrones Season 8 episode 1. As far as I can tell it worked a charm. Pressing info on the X700 remote showed "Dolby Vision HDR" (as of course did info on my TV - a Sony AF9). And the audio was intact too.

Thanks again for sharing the information above.
kazuma
Posts: 186
Joined: Fri Nov 08, 2019 9:51 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by kazuma »

grencola, when can we expect you're new tool?
bgalakazam
Posts: 34
Joined: Wed May 01, 2019 6:15 pm
Location: Italy

Re: Dolby Vision now possible through MP4 Mux.

Post by bgalakazam »

Would sure love a 1-click wonder converting a UHD rip to MP4 with DV and 7.1 LPCM.
Sony X700 -> Onkyo TX-RZ830 -> LG C8
built_to_chill
Posts: 36
Joined: Thu Feb 20, 2020 4:45 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by built_to_chill »

Just to say it’s easy enough to string the three commands together into a basic shell script. Which takes the file as an argument. That’s what I’m doing now,

But it’s far from elegant with all the unnecessary hard disk writing that happens.

If there’s something better coming that’s great news.

In the mean time I think I’ll looking at running the operations on an attached USB 3.0 HDD. Not worried about it taking longer, think would rather that to save my SSD from hundreds of GBs being written.
Grencola
Posts: 343
Joined: Sun Jan 27, 2019 5:19 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Grencola »

kazuma wrote: Sat Feb 22, 2020 11:51 am grencola, when can we expect you're new tool?
you shouldn't expect anything :p but if I finish it soon then bonus, right?
Grencola
Posts: 343
Joined: Sun Jan 27, 2019 5:19 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Grencola »

built_to_chill wrote: Sat Feb 22, 2020 4:39 pm Just to say it’s easy enough to string the three commands together into a basic shell script. Which takes the file as an argument. That’s what I’m doing now.
Yea, it's definitely not too complicated. I'm trying to make a one-click tool that converts an m2ts file all the way to a single-layer mp4 with lpcm 7.1 audio. issue I'm having is running dvdfab from a command line gets tricky while it's part of an integrated shell. dual layer is no problem since it's not needed. I was giving an option at startup of whether you want single layer or dual layer and then it goes to work. I wasn't going to bother with single at all since I thought dvdfab was faking dv, but the comparisons are so close to the real thing that it's worth it for people with shields / firesticks etc who don't have an x700 or a compatible tv usb player.
built_to_chill
Posts: 36
Joined: Thu Feb 20, 2020 4:45 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by built_to_chill »

Grencola wrote: Sat Feb 22, 2020 6:55 pm
built_to_chill wrote: Sat Feb 22, 2020 4:39 pm Just to say it’s easy enough to string the three commands together into a basic shell script. Which takes the file as an argument. That’s what I’m doing now.
Yea, it's definitely not too complicated. I'm trying to make a one-click tool that converts an m2ts file all the way to a single-layer mp4 with lpcm 7.1 audio. issue I'm having is running dvdfab from a command line gets tricky while it's part of an integrated shell. dual layer is no problem since it's not needed. I was giving an option at startup of whether you want single layer or dual layer and then it goes to work. I wasn't going to bother with single at all since I thought dvdfab was faking dv, but the comparisons are so close to the real thing that it's worth it for people with shields / firesticks etc who don't have an x700 or a compatible tv usb player.
I see. Interesting if there’s some uncertainty over whether single layer DV from dvdfab is fake or not.

If it turns out to be a lossless DV conversion, it sure would be nice to be able to play these one day via Infuse on my Apple TV.

As long as there’s uncertainty though I feel much better about putting my money into an X700 and playing the original DV data effectively untouched (albeit repackaged).
built_to_chill
Posts: 36
Joined: Thu Feb 20, 2020 4:45 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by built_to_chill »

RESET_9999 wrote: Wed Jan 29, 2020 5:39 pm
here's what is supported with the x700:

MP4 DV (SL & DL) + lpcm 7.1 = play perfectly fine. (subtitles dont work)
M2TS / TS + atmos = HDR10 only but atmos is supported.
MKV + atmos - HDR10 but atmos not supported (because the core is separated)
MKV + DTS-X / DTSHD = HDR10 and all the DTS family is supported.
Burned ISO = Dolby vision + atmos supported. (latest Tsmuxer can now create compliant DV bluray structure)https://forum.doom9.org/showthread.php?t=176668&page=16
no cinavia... But i only use it for DV mp4 remux, I wish there was a device that can do it all......
I use my HTPC for HDR10 and the new Shield for everything that is streaming....Netflix in DV + Atmos.. amazon, movies anywhere, vudu. etc...
Sorry for my english...

Image
Hi there - I took a look at TSMuxer and it seems it can take various things (including mkv and i believe MP4) as input, and output an ISO. Just curious if you’re suggesting above this could be a route to getting Dolby vision and Dolby Atmos playback on the X700 when starting with an mkv?

Or whether this would require re-ripping everything to ISO using makemkv?
RESET_9999
Posts: 2421
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

built_to_chill wrote: Mon Feb 24, 2020 2:48 pm
Hi there - I took a look at TSMuxer and it seems it can take various things (including mkv and i believe MP4) as input, and output an ISO. Just curious if you’re suggesting above this could be a route to getting Dolby vision and Dolby Atmos playback on the X700 when starting with an mkv?

Or whether this would require re-ripping everything to ISO using makemkv?
yes you can create a DV ISO from MKV using the latest tsmuxer but you'll have to process Atmos with eac3to first because tsmuxer wont accept ATmos without an AC3 core.

When a movie compress very well(CRF 14 or better) that's what i do. I re-encode the HDR10 layer to fit a BD-50 and then use tsmuxer to build a new iso with DV and Atmos and then i burn it.
I did that with a couple (about10) of movies and the x700 play my custom iso properly.


Grencola wrote: Fri Feb 21, 2020 5:08 am unfortunately I highly doubt this will work. the secondary dolby vision track on uhd discs is an hevc layer, just like the main layer. when mp4muxer (or dvdfab) makes an mp4 it uses the dvhe (dolby vision high efficiency) codec. the dolby vision metadata is now hardcoded with the mp4 container, and not the actual file inside. the same goes with if dolby makes a ts file - the dvhe exists only within that container. as soon as you demux the contents, or remux into a different container, you completely lose all dolby vision information and are left with an hdr10 base file only. in order to remux a dv mp4 to ts (for atmos I assume) and retain dv, you would need to extract the el+rpu data using one of Dolby's officially licensed PSU workstations. you would then have to re-author a ts file using proprietary licensed dolby tools, like it does for their sample videos. none of this is currently possible with 3rd-party hardware and software.
well it looks like they made it work. https://forum.doom9.org/showthread.php? ... ost1902124
Sorry for my English.
G5 / AM6B+ / Denon 7.2.4
DoVi_Scripts
DoVi Playback Devices
Grencola
Posts: 343
Joined: Sun Jan 27, 2019 5:19 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Grencola »

RESET_9999 wrote: Mon Feb 24, 2020 5:28 pm well it looks like they made it work. https://forum.doom9.org/showthread.php? ... ost1902124
ya been following closely! there's a good chance I stand corrected :P unless they paid for a license? also I can't wait to see if this works with truehd+atmos properly, and which devices are compatible..
RESET_9999
Posts: 2421
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

definitely going to test my x700 and my shield tonight.

Image
Sorry for my English.
G5 / AM6B+ / Denon 7.2.4
DoVi_Scripts
DoVi Playback Devices
Post Reply