Dolby Vision now possible through MP4 Mux.

Please post here for issues related to UHD discs
kazuma
Posts: 162
Joined: Fri Nov 08, 2019 9:51 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by kazuma »

hello,

the tool of grencola selects french & german as first language when i convert to mp4 with the movies red heat and universal soldier. this because the audio files are first selected standard audio in the container. i tryed to delete all other audio's with tsmuxer, but i get a error code. what is the solution of this?
RESET_9999
Posts: 2090
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

kws53 wrote:
Fri Nov 08, 2019 8:55 pm

5) The final MP4 muxing operation (GPAC 0.80) was unsuccessful Image despite having 1TB of space available on the U: drive.
if you dont add -tmp U:\ then C:\ is used for the temp files
kws53
Posts: 49
Joined: Sun May 04, 2014 9:09 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by kws53 »

RESET_9999 wrote:
Fri Nov 08, 2019 10:04 pm
kws53 wrote:
Fri Nov 08, 2019 8:55 pm

5) The final MP4 muxing operation (GPAC 0.80) was unsuccessful Image despite having 1TB of space available on the U: drive.
if you dont add -tmp U:\ then C:\ is used for the temp files
Wasn't aware temp files were created, thank you for the explanation. Since the combined size of the files is ~85GB, I can see the issue...
What exactly is the reason for a temp file anyway? We're simply muxing, aren't we?
Alldu
Posts: 31
Joined: Mon Jun 24, 2019 4:27 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Alldu »

Hi guys, I'm trying to add FLAC file to a DV mp4 that I make. I could convert it to AC-3, but then I'd loose the quality? Is there a way to add a FLAC file to a DV mp4 without loosing the quality? I understand there has been found a way to add a lossless audio to a DV mp4 file, but as I tried to follow all the discussions here, I was totally lost like 20 pages ago :D I use the wonderful dvmp4maker program by Grencola. Any headsup would be very much appreciated!
superfans124
Posts: 33
Joined: Fri Oct 04, 2019 3:26 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by superfans124 »

Alldu wrote:
Sat Nov 09, 2019 11:28 am
Hi guys, I'm trying to add FLAC file to a DV mp4 that I make. I could convert it to AC-3, but then I'd loose the quality? Is there a way to add a FLAC file to a DV mp4 without loosing the quality? I understand there has been found a way to add a lossless audio to a DV mp4 file, but as I tried to follow all the discussions here, I was totally lost like 20 pages ago :D I use the wonderful dvmp4maker program by Grencola. Any headsup would be very much appreciated!
https://forum.mrmc.tv/viewtopic.php?f=1 ... &start=310
yusesope
Posts: 221
Joined: Sun Jul 28, 2019 3:34 am

Re: Dolby Vision now possible through MP4 Mux.

Post by yusesope »

The weekend has arrived! It's time to test!

In the last few days I have taken a look at the Google ExoPlayer library (GITHUB).
Today I patched their code to add support for TrueHD/ATMOS tracks inside an MP4 container.
The implementation is far from perfect but is good for testing purposes. For now it should be able to play the most common type of TrueHD/ATMOS track: 8 channels @ 48kHz in L R C LFE Ls Rs Lb Rb configuration.
I also added FFmpeg (ver 4.2) to decode the audio if your device is not equipped with the right Hardware/Software decoder

The ExoPlayer library should be able to play video files with dvhe.05 profile (on devices that are clearly provided with the appropriate decoder + license). So, in theory, it should be possible to play MP4 files with Dolby Vision + TrueHD/ATMOS.

HERE you can find my custom Player.
HERE you can find a sample video (dvhe.05.06 + TrueHD/ATMOS)
I currently don't have any Android devices capable of decoding 4K HDR tracks. For now, I have to stop here: I can't debug the code and fix any problems because I don't have any valid device.

The Player is based on client-server logic:
  • Start the server on PC/Mac and follow the instructions (You will find a version already compiled for Windows and the source code for those using Linux/macOS)
  • Start the application (apk) on Android.

WARNING!
Being a test version, the server address is hard-coded inside the apk.
Therefore your PC/Mac must have 192.168.1.130 as local IP address.
HERE a guide for Windows/macOS (those who use Linux know how to take care of themselves 8) )

If for some reason (IP conflict, different subnet, etc..) you need to change the IP of the server:
  • Create a folder and place the apk file in it.
  • Rename the .apk file to .zip
  • Unzip the archive here (not inside a sub-folder)
  • delete the original apk
  • Go to the "assets" folder and open "media.exolist.json" with a text editor.
  • Change the ip address (do not edit after the colon ":") and save
  • Go back to the main folder. Open the META-INF folder and delete the existing * .RSA and * .SF files
  • Go back to the main folder. Select all the files and create a new zip archive. Make sure the archive is structured as follows: zip-->files&folders and not zip-->sub-folder-->files&folders
  • rename the .zip archive in .apk
  • Now it is necessary to sign the apk. Who uses Windows can utilize the tool I prepared (HERE). Start the "sign_apk.bat" file and follow the instructions. Who uses Linux/macOS can refer to the project by Patrick Favre-Bulle (GITHUB). HERE you'll find the jar file to use.
  • At the end of the process, you will find, in the same folder as the initial apk, a new signed apk file.
VirusTotal Scan
Streaming Server (eight false positives. If your antivirus detects an anomaly, HERE the reason why)
Player
Last edited by yusesope on Tue Nov 12, 2019 11:19 am, edited 1 time in total.
FusionNeo
Posts: 21
Joined: Sat Nov 02, 2019 1:15 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by FusionNeo »

Amazing work! I will test this as soon as I can and report my results back.

What do you think of the claim that DVDFab Single Layer files are not “proper” Dolby Vision? As you can see from RESET_9999’s screenshot, the dual layer and UHD look identical but the single layer and UHD have some stark differences. Seems to me that the DVDFab rips may not actually be proper Dolby Vision, which has been the claim fairly early on.
bobross
Posts: 15
Joined: Wed Jun 06, 2018 12:09 am

Re: Dolby Vision now possible through MP4 Mux.

Post by bobross »

FusionNeo wrote:
Thu Nov 07, 2019 6:13 am
bobross wrote:
Thu Nov 07, 2019 2:38 am
How can you make the MP4 with movies that only have DTS-HD or DTS Audio, not AC3?
The process is the same. FFMpeg is taking the audio stream you have, ripping it and encoding it into whatever format you want.
Thank you for the suggestion, but when I "startmux.bat" back again the sound is way out of sync. Any way to fix this?
Alldu
Posts: 31
Joined: Mon Jun 24, 2019 4:27 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Alldu »

superfans124 wrote:
Sat Nov 09, 2019 2:12 pm
Alldu wrote:
Sat Nov 09, 2019 11:28 am
Hi guys, I'm trying to add FLAC file to a DV mp4 that I make. I could convert it to AC-3, but then I'd loose the quality? Is there a way to add a FLAC file to a DV mp4 without loosing the quality? I understand there has been found a way to add a lossless audio to a DV mp4 file, but as I tried to follow all the discussions here, I was totally lost like 20 pages ago :D I use the wonderful dvmp4maker program by Grencola. Any headsup would be very much appreciated!
https://forum.mrmc.tv/viewtopic.php?f=1 ... &start=310
Thanks, but that's exactly why I lost it... :/ I dunno, maybe @Grencola updated his wonderful tool for losless audio and I just missed it?..
Grencola
Posts: 343
Joined: Sun Jan 27, 2019 5:19 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Grencola »

Alldu wrote:
Sun Nov 10, 2019 12:08 am
superfans124 wrote:
Sat Nov 09, 2019 2:12 pm
Alldu wrote:
Sat Nov 09, 2019 11:28 am
Hi guys, I'm trying to add FLAC file to a DV mp4 that I make. I could convert it to AC-3, but then I'd loose the quality? Is there a way to add a FLAC file to a DV mp4 without loosing the quality? I understand there has been found a way to add a lossless audio to a DV mp4 file, but as I tried to follow all the discussions here, I was totally lost like 20 pages ago :D I use the wonderful dvmp4maker program by Grencola. Any headsup would be very much appreciated!
https://forum.mrmc.tv/viewtopic.php?f=1 ... &start=310
Thanks, but that's exactly why I lost it... :/ I dunno, maybe @Grencola updated his wonderful tool for losless audio and I just missed it?..
I suppose I probably should, hey? it really wouldn't be very hard. never seem to have any time these days though :(
DaMacFunkin
Posts: 311
Joined: Tue Oct 30, 2018 4:17 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by DaMacFunkin »

yusesope wrote:
Sun Nov 03, 2019 10:24 am
RESET_9999 wrote:
Sat Nov 02, 2019 7:58 pm
it works, AVR show atmos with my htpc.
FusionNeo wrote:
Sun Nov 03, 2019 1:16 am
The new file you just posted has proper ATMOS support too when played back on a HTPC using your tutorial. Confirmed I am getting ATMOS audio and I was able to hear sound come out of my ATMOS speakers.
Thank you both for your feedback.
RESET_9999 wrote:
Sat Nov 02, 2019 7:58 pm
I tried again with a movie and it works with the htpc. i wonder why it didnt work when i tried a couple days ago(didnt update any software since then)
it's magic!
FusionNeo wrote:
Sun Nov 03, 2019 1:16 am
Yusesope, you are the man!
Thanks but the credit also goes to the user likeadoc (look HERE).
FusionNeo wrote:
Sun Nov 03, 2019 1:16 am
Just tried the new Plex beta out on my Shield 2019 with your Dolby Vision DTS-X and DTS-HD MA and both files played back in Dolby Vision with DTS-X and DTS-HD MA audio.
I assume, the Single Layer files. Excellent news anyway!
FusionNeo wrote:
Sun Nov 03, 2019 1:16 am
That same file will NOT play back on my NVIDIA Shield vía Plex...Do the PLEX devs need to add support?
Correct . We must inform the developers (Plex, MrMC, etc.) about the existence of this possibility and they will implement the correct decoding (as did the developers of LAV Filters).
FusionNeo wrote:
Sun Nov 03, 2019 1:16 am
Once this file plays back on the SHIELD, then I would assume it would be trivial to use a Dolby Vision video track in place of the video track you used in that file for full TRUEHD + Dolby Vision support, is that correct?
Correct again. I've just updated my "HOW TO".
Sorry if this is a stupid question, what if there are dummy or obsvicated playlists? How does ffmpeg know which one to choose when you rip the dts-hd?
Thank you.
yusesope
Posts: 221
Joined: Sun Jul 28, 2019 3:34 am

Re: Dolby Vision now possible through MP4 Mux.

Post by yusesope »

For those who are experimenting problems with out-of-sync audio, it is advisable to update the tools used to the latest version. In particular MP4box. HERE you can find the latest version (already compiled for all operating systems).
DaMacFunkin wrote:
Fri Nov 08, 2019 6:54 am
Should I just have subs as an external srt?
I've always preferred text subtitles instead of bitmaps.
Keep it simple: use an external .srt renamed as the video file.
If you really want to incorporate the subtitle into the video file, convert the .srt file

Code: Select all

ffmpeg -i sub_in.srt -map 0:0 -c mov_text sub_out.3gp 
and then, during the last mux phase, add to the MP4box command line:

Code: Select all

-add sub_out.3gp#subtitle:lang=ita
DaMacFunkin wrote:
Fri Nov 08, 2019 6:54 am
And what about chapters, is is safe to add these to the mp4 with an header editor?
The IsoMedia file format does not include the addition of chapters to an MP4 file as standard; don't be surprised if some players don't understand them.
To add chapters:
  • Extract the chapters from the source. Use chapterEditor (Convert -> Select Source -> Save as OGG/OGM)
  • during the last phase of mux, add to the command line of MP4box:

    Code: Select all

    -chap \path\to\chapterEditor_output.txt
DaMacFunkin wrote:
Sun Nov 10, 2019 7:38 am
what if there are dummy or obsvicated playlists? How does ffmpeg know which one to choose when you rip the dts-hd?
To my knowledge, FFmeg does not incorporate any de-obfuscation mechanism.
When I need, I use THIS METHOD and then I insert the correct mpls sequence in the FFmpeg command line (as explained in THIS post).
FusionNeo wrote:
Sat Nov 09, 2019 7:55 pm
Seems to me that the DVDFab rips may not actually be proper Dolby Vision
I have the same feeling.




If you are interested in this topic, go and vote for FusionNeo's request on the Plex forum even if you don't use it.
If Plex implements this feature, the other software houses will follow suit.
DaMacFunkin
Posts: 311
Joined: Tue Oct 30, 2018 4:17 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by DaMacFunkin »

I have made a dual layer and a single layer with dvdfab off fate of the Furious and played them both back on my LG C7, there really is no difference, the light out-put looks the same, cyan, yellows and greens have the same tint, nothing is ‘obviously’ different at all,I like to think I have a very critical eye.
Alldu
Posts: 31
Joined: Mon Jun 24, 2019 4:27 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Alldu »

Grencola wrote:
Sun Nov 10, 2019 1:14 am

I suppose I probably should, hey? it really wouldn't be very hard. never seem to have any time these days though :(
You should shouldn't you? :D That would be so awesome! So let's just hope that one day you'll have some time to do just that!

But can I ask you a question? What would be the best way to add an ac-3 file to mp4 which hasn't been in the original mt2s? I tried to demux the blu ray, extract both HDR10 and DV video layers and drop them all into an mkv together with the ac-3 audio I wanted to add. But when I tried using your dvmp4maker programm to make a DV mp4 out of the mkv, it gives me the error - there's no Dolby Vision. So what went wrong exactly?
Angryunibrow
Posts: 104
Joined: Wed Nov 06, 2019 11:26 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Angryunibrow »

DaMacFunkin wrote:
Sun Nov 10, 2019 3:45 pm
I have made a dual layer and a single layer with dvdfab off fate of the Furious and played them both back on my LG C7, there really is no difference, the light out-put looks the same, cyan, yellows and greens have the same tint, nothing is ‘obviously’ different at all,I like to think I have a very critical eye.

Same, I've tested numerous movies dual and single layer and the colors are identical. DVDFab single layer files are the real deal.

Tested on my LG C8
Post Reply