Dolby Vision now possible through MP4 Mux.
Re: Dolby Vision now possible through MP4 Mux.
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?
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?
-
- Posts: 2087
- Joined: Mon Aug 05, 2019 7:12 pm
Re: Dolby Vision now possible through MP4 Mux.
if you dont add -tmp U:\ then C:\ is used for the temp files
Sorry for my English.
DoVi_Scripts / DoVi Playback Devices / Movies HDR-DV Plot / Screenshot Comparisons
DoVi_Scripts / DoVi Playback Devices / Movies HDR-DV Plot / Screenshot Comparisons
Re: Dolby Vision now possible through MP4 Mux.
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...RESET_9999 wrote: ↑Fri Nov 08, 2019 10:04 pmif you dont add -tmp U:\ then C:\ is used for the temp files
What exactly is the reason for a temp file anyway? We're simply muxing, aren't we?
Re: Dolby Vision now possible through MP4 Mux.
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 I use the wonderful dvmp4maker program by Grencola. Any headsup would be very much appreciated!
-
- Posts: 33
- Joined: Fri Oct 04, 2019 3:26 pm
Re: Dolby Vision now possible through MP4 Mux.
https://forum.mrmc.tv/viewtopic.php?f=1 ... &start=310Alldu wrote: ↑Sat Nov 09, 2019 11:28 amHi 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 I use the wonderful dvmp4maker program by Grencola. Any headsup would be very much appreciated!
Re: Dolby Vision now possible through MP4 Mux.
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:
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 )
If for some reason (IP conflict, different subnet, etc..) you need to change the IP of the server:
Streaming Server (eight false positives. If your antivirus detects an anomaly, HERE the reason why)
Player
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 )
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.
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.
Re: Dolby Vision now possible through MP4 Mux.
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.
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.
Re: Dolby Vision now possible through MP4 Mux.
Thank you for the suggestion, but when I "startmux.bat" back again the sound is way out of sync. Any way to fix this?
Re: Dolby Vision now possible through MP4 Mux.
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?..superfans124 wrote: ↑Sat Nov 09, 2019 2:12 pmhttps://forum.mrmc.tv/viewtopic.php?f=1 ... &start=310Alldu wrote: ↑Sat Nov 09, 2019 11:28 amHi 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 I use the wonderful dvmp4maker program by Grencola. Any headsup would be very much appreciated!
Re: Dolby Vision now possible through MP4 Mux.
I suppose I probably should, hey? it really wouldn't be very hard. never seem to have any time these days thoughAlldu wrote: ↑Sun Nov 10, 2019 12:08 amThanks, but that's exactly why I lost it... :/ I dunno, maybe @Grencola updated his wonderful tool for losless audio and I just missed it?..superfans124 wrote: ↑Sat Nov 09, 2019 2:12 pmhttps://forum.mrmc.tv/viewtopic.php?f=1 ... &start=310Alldu wrote: ↑Sat Nov 09, 2019 11:28 amHi 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 I use the wonderful dvmp4maker program by Grencola. Any headsup would be very much appreciated!
-
- Posts: 311
- Joined: Tue Oct 30, 2018 4:17 pm
Re: Dolby Vision now possible through MP4 Mux.
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?yusesope wrote: ↑Sun Nov 03, 2019 10:24 amThank you both for your feedback.
it's magic!RESET_9999 wrote: ↑Sat Nov 02, 2019 7:58 pmI 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)
Thanks but the credit also goes to the user likeadoc (look HERE).
I assume, the Single Layer files. Excellent news anyway!
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).
Correct again. I've just updated my "HOW TO".
Thank you.
Re: Dolby Vision now possible through MP4 Mux.
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).
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
and then, during the last mux phase, add to the MP4box command line:
To add chapters:
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).
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.
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
Code: Select all
-add sub_out.3gp#subtitle:lang=ita
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.DaMacFunkin wrote: ↑Fri Nov 08, 2019 6:54 amAnd what about chapters, is is safe to add these to the mp4 with an header editor?
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
To my knowledge, FFmeg does not incorporate any de-obfuscation mechanism.DaMacFunkin wrote: ↑Sun Nov 10, 2019 7:38 amwhat if there are dummy or obsvicated playlists? How does ffmpeg know which one to choose when you rip the dts-hd?
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).
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.
-
- Posts: 311
- Joined: Tue Oct 30, 2018 4:17 pm
Re: Dolby Vision now possible through MP4 Mux.
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.
Re: Dolby Vision now possible through MP4 Mux.
You should shouldn't you? 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?
-
- Posts: 104
- Joined: Wed Nov 06, 2019 11:26 pm
Re: Dolby Vision now possible through MP4 Mux.
DaMacFunkin wrote: ↑Sun Nov 10, 2019 3:45 pmI 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