Dolby Vision now possible through MP4 Mux.

Please post here for issues related to UHD discs
shawnc22
Posts: 637
Joined: Tue Jan 21, 2020 7:40 am

Re: Dolby Vision now possible through MP4 Mux.

Post by shawnc22 » Thu Sep 17, 2020 6:26 pm

hepe9 wrote:
Thu Sep 17, 2020 6:08 pm
quietvoid wrote:
Thu Sep 17, 2020 4:19 pm
yusesope wrote:
Thu Sep 17, 2020 2:59 pm
It goes without saying that these tests must be done on FEL titles. Do not use titles that are already MEL !!!!!
Just tried this and it works on the FireTV Stick 4K.

On archlinux, my steps (starting from a mode1 muxed BL_EL_RPU.hevc file):
Mux to mkv, split to make smaller.
Demux to hevc.
python app.py -lbf 50 -demux -fel_to_mel -if video.hevc
python app.py -lbf 50 -mux -bl BL.hevc -el EL_RPU.hevc
mp4muxer_64bits -i BL_EL_RPU.hevc --dv-profile 7 -o test.mp4

And it plays in Dolby Vision with ExoPlayer. :)
PS: there should probably be an indication or something to stop instead of just "Wait...", the default -lbf value just hanged because the file sample is small.
A Firestick playing DV profile 7?

In this thread I read to many people saying the Firestick can't play DV profile 7

I'm confused right now
A device's inability to previously play profile 7 files probably has more to do with the fact that the BL and EL+RPU layers were in separate tracks and not the actual profile label itself.

pitrako
Posts: 15
Joined: Sun Sep 13, 2020 7:55 am

Re: Dolby Vision now possible through MP4 Mux.

Post by pitrako » Thu Sep 17, 2020 6:33 pm

yusesope wrote:
Thu Sep 17, 2020 5:54 pm
quietvoid wrote:
Thu Sep 17, 2020 4:19 pm
Just tried this and it works on the FireTV Stick 4K...On archlinux...And it plays in Dolby Vision with ExoPlayer. :)
It always warms the heart to see "archlinux" written somewhere :D . Thanks for your feedback.
pitrako wrote:
Thu Sep 17, 2020 5:17 pm
I need some .dll or something? MUX.bat works but MUX_AND_CONVERT_TO_MEL.bat doesn't work, It shows the error I posted above.
PapitaHD wrote:
Thu Sep 17, 2020 5:31 pm
Same error for me. I'm trying to convert/remux Gemini Man from a full UHD BluRay backup. Officially it's a FEL title, although it has about the lowest bitrare a FEL can have.
Later I'll try Saving Private Ryan.
Yes you are right. Your Windows needs THESE libraries (unpack the archive and place the two dll files where there are the files MUX.bat, DEMUX.bat, etc ...). It's not an elegant solution but it should at least work for these days of testing.
Let me know!
jcdr428 wrote:
Thu Sep 17, 2020 5:12 pm
Hi @yusesope, so you need tsMuxer to register profile 6 as profile 4 to be read by ExoPlayer, is this correct?
The files that are created by this latest version have as VUI:
0,9,16,9,2 for the Base layer
0,9,16,9,2 for the Enhancement layer.
The correct profile should therefore be 7.
Now I don't remember well but it seems to me that TsMuxeR currently generates files with profile 6 (but, I repeat myself, I could be wrong). If my tool proves to work, in my opinion, we should try to mark the ts files with profile 7 (and not 6).
shawnc22 wrote:
Thu Sep 17, 2020 5:39 pm
I think yusecope is suggesting that what tsmuxer is currently registering as profile 6 should go back to being registered as profile 7
Yep, Exactly!
I tried "A quiet place", It's a FEL title, in exoplayer through kodi and doesn't play, It stays at 00:00. And I think I followed all the steps (extract with FFmpeg, mux and convert to MEL and create a mp4 file with mp4muxer.
Last edited by pitrako on Thu Sep 17, 2020 6:37 pm, edited 1 time in total.

hepe9
Posts: 71
Joined: Mon Jun 03, 2019 11:04 am

Re: Dolby Vision now possible through MP4 Mux.

Post by hepe9 » Thu Sep 17, 2020 6:35 pm

shawnc22 wrote:
Thu Sep 17, 2020 6:26 pm
hepe9 wrote:
Thu Sep 17, 2020 6:08 pm
quietvoid wrote:
Thu Sep 17, 2020 4:19 pm


Just tried this and it works on the FireTV Stick 4K.

On archlinux, my steps (starting from a mode1 muxed BL_EL_RPU.hevc file):
Mux to mkv, split to make smaller.
Demux to hevc.
python app.py -lbf 50 -demux -fel_to_mel -if video.hevc
python app.py -lbf 50 -mux -bl BL.hevc -el EL_RPU.hevc
mp4muxer_64bits -i BL_EL_RPU.hevc --dv-profile 7 -o test.mp4

And it plays in Dolby Vision with ExoPlayer. :)
PS: there should probably be an indication or something to stop instead of just "Wait...", the default -lbf value just hanged because the file sample is small.
A Firestick playing DV profile 7?

In this thread I read to many people saying the Firestick can't play DV profile 7

I'm confused right now
A device's inability to previously play profile 7 files probably has more to do with the fact that the BL and EL+RPU layers were in separate tracks and not the actual profile label itself.
Thanks for the answer :wink:

quietvoid
Posts: 373
Joined: Sun Apr 19, 2020 4:15 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by quietvoid » Thu Sep 17, 2020 7:14 pm

hepe9 wrote:
Thu Sep 17, 2020 6:08 pm
A Firestick playing DV profile 7?
In this thread I read to many people saying the Firestick can't play DV profile 7
I'm confused right now
For what it's worth, I've mentioned already that I can play everything except FEL files on mine.
viewtopic.php?f=12&t=21937&p=93904#p93904

PlatypusW
Posts: 50
Joined: Mon Aug 03, 2020 2:14 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by PlatypusW » Thu Sep 17, 2020 9:48 pm

yusesope wrote:
Thu Sep 17, 2020 2:59 pm

As anticipated some posts ago, maybe I found the way to "convert" a FEL file to MEL.
This latest innovation together with the previous idea of ​​combining the two layers (BL and EL_RPU) in a single track, should guarantee the possibility of playing any FEL UHD-BD backup on Android devices equipped with a Dolby Vision decoder and capable of playing THIS file (+ my ExoPlayer) or THIS file.

Fingers crossed!
I’ll try and test over the weekend :D

I presume that this isn’t something that could be done ‘on the fly’ at some point? We would need to change the makemkv MKVs to these MP4s each time? I.e. wouldn’t be able to just play the FEL mkv using exoplayer.

ragico
Posts: 258
Joined: Fri Feb 15, 2019 1:09 am

Re: Dolby Vision now possible through MP4 Mux.

Post by ragico » Thu Sep 17, 2020 10:12 pm

Following Yusesope instructions, I did the full movie of Despicable me 3 (which is fel) from the original UHD disc backup. I also add an ac3 5.1 audio track to the mp4.
In the Firestick 4k the movie plays perfectly in dolby vision whilst the original fel gives only audio and black screen as all the fel movies in the firestick 4k.
I have used kodi 18.8 and yusesope exoplayer as recommended.
Perfect also the fast fwd/rear navigation.
In next days I will compare it with the original disc played on sony x700 feeding a Panasonic GZ2000 oled.
Yusesope you continue to amaze.
Thankkssssssssssss.
:) :) :)

DaMacFunkin
Posts: 311
Joined: Tue Oct 30, 2018 4:17 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by DaMacFunkin » Fri Sep 18, 2020 5:45 am

kws53 wrote:
Thu Sep 17, 2020 3:32 pm
DaMacFunkin wrote:
Thu Sep 17, 2020 10:16 am
<movie name>.eng.forced.srt
Thank you for the response. So using tsmuxer to mux my MI4.HEVC, MI4.AC3, and MI4.eng.forced.srt together into MI4.ts will result in PLEX playing the subtitles automatically?
it may work if you mux them to TS, I always leave .srt as external subs with Plex, that is what the .eng.forced switch is for. External is also the method for using .srt with Oppo.

jcdr428
Posts: 34
Joined: Fri Mar 20, 2020 6:55 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by jcdr428 » Fri Sep 18, 2020 9:28 am

yusesope wrote:
Thu Sep 17, 2020 5:54 pm
The files that are created by this latest version have as VUI:
0,9,16,9,2 for the Base layer
0,9,16,9,2 for the Enhancement layer.
The correct profile should therefore be 7.
Now I don't remember well but it seems to me that TsMuxeR currently generates files with profile 6 (but, I repeat myself, I could be wrong). If my tool proves to work, in my opinion, we should try to mark the ts files with profile 7 (and not 6).
shawnc22 wrote:
Thu Sep 17, 2020 5:39 pm
I think yusecope is suggesting that what tsmuxer is currently registering as profile 6 should go back to being registered as profile 7
Yep, Exactly!
Got it! I always assumed that dual PID were profile 7, and single PID were profile 4/6.
I will get it corrected in tsMuxer.

hepe9
Posts: 71
Joined: Mon Jun 03, 2019 11:04 am

Re: Dolby Vision now possible through MP4 Mux.

Post by hepe9 » Fri Sep 18, 2020 9:50 am

shawnc22 wrote:
Thu Sep 17, 2020 6:26 pm
hepe9 wrote:
Thu Sep 17, 2020 6:08 pm
quietvoid wrote:
Thu Sep 17, 2020 4:19 pm


Just tried this and it works on the FireTV Stick 4K.

On archlinux, my steps (starting from a mode1 muxed BL_EL_RPU.hevc file):
Mux to mkv, split to make smaller.
Demux to hevc.
python app.py -lbf 50 -demux -fel_to_mel -if video.hevc
python app.py -lbf 50 -mux -bl BL.hevc -el EL_RPU.hevc
mp4muxer_64bits -i BL_EL_RPU.hevc --dv-profile 7 -o test.mp4

And it plays in Dolby Vision with ExoPlayer. :)
PS: there should probably be an indication or something to stop instead of just "Wait...", the default -lbf value just hanged because the file sample is small.
A Firestick playing DV profile 7?

In this thread I read to many people saying the Firestick can't play DV profile 7

I'm confused right now
A device's inability to previously play profile 7 files probably has more to do with the fact that the BL and EL+RPU layers were in separate tracks and not the actual profile label itself.
Knowing this, I tried a Mel with Makemkv and Exoplayer with the Sony Xf90 and it all have red tones, the hardware of this TV is a crap if a simple Firestick can do it

pitrako
Posts: 15
Joined: Sun Sep 13, 2020 7:55 am

Re: Dolby Vision now possible through MP4 Mux.

Post by pitrako » Fri Sep 18, 2020 10:34 am

At the end I muxed with tsmuxer profile 8 fix into .ts instead of mp4muxer and dolby vision worked on the native tv player (does not triggers dolby vision in exoplayer) but I get strong red colors on people's skin, too much.

EDIT: I tried again all the steps from yusesope but instead I used -mode 2 instead of default mode on his tool and this time It triggered dolby vision on exoplayer. All this on 1917 (FEL title).

yusesope
Posts: 221
Joined: Sun Jul 28, 2019 3:34 am

Re: Dolby Vision now possible through MP4 Mux.

Post by yusesope » Fri Sep 18, 2020 12:57 pm

hepe9 wrote:
Thu Sep 17, 2020 6:08 pm
This has changed?
I hope so


PlatypusW wrote:
Thu Sep 17, 2020 9:48 pm
I’ll try and test over the weekend :D
Let us know! If you are using Windows, please read the central part of THIS post!
PlatypusW wrote:
Thu Sep 17, 2020 9:48 pm
I presume that this isn’t something that could be done ‘on the fly’ at some point? We would need to change the makemkv MKVs to these MP4s each time? I.e. wouldn’t be able to just play the FEL mkv using exoplayer.
I wrote everything in C++, you could run my code on a toaster! The problem is the implementation: a good programmer would take a few hours ... I need my time. The idea of ​​integrating everything into ExoP has been in my head for a while but I still don't know if I have the skills to do it! I'll try it in my free time when I feel like it!
However don't worry: mp4muxer should only be used in these test days. As soon as @jcdr428 updates TsMuxeR (in order to get profile 7 files), you can start using it as it is much faster than the first one and allows you to create files with TrueHD/ATMOS audio included!


pitrako wrote:
Thu Sep 17, 2020 6:33 pm
I tried "A quiet place", It's a FEL title, in exoplayer through kodi and doesn't play, It stays at 00:00. And I think I followed all the steps...
Did you also follow the first important step?
yusesope wrote:
Thu Sep 17, 2020 2:59 pm
......playing any FEL UHD-BD backup on Android devices equipped with a Dolby Vision decoder and capable of playing THIS file (+ my ExoPlayer) or THIS file....
Is your device capable of playing these files (the first only through ExoP)?
If the answer is no, unfortunately there is nothing I can do! However (and this also applies to @hepe9), take the positive aspect: if all goes well with a 40-60€ FireStick 4K you can play UHD-BD backups as MEL without giving up ultra-high resolution audio (PCM in most cases). I think this is good news! No?
pitrako wrote:
Fri Sep 18, 2020 10:34 am
EDIT: I tried again all the steps from yusesope but instead I used -mode 2 instead of default mode on his tool and this time It triggered dolby vision on exoplayer. All this on 1917 (FEL title).
This is interesting ... But unfortunately I don't think it is the correct way to proceed!


ragico wrote:
Thu Sep 17, 2020 10:12 pm
In next days I will compare it with the original disc played on sony x700 feeding a Panasonic GZ2000 oled.
I'm curious! You could also call @RESET_9999 and take some pictures together :lol: :lol: :lol: :lol: :lol: !


jcdr428 wrote:
Fri Sep 18, 2020 9:28 am
I will get it corrected in tsMuxer.
Thank you for your time!

MastaG
Posts: 91
Joined: Thu Aug 08, 2019 11:40 am

Re: Dolby Vision now possible through MP4 Mux.

Post by MastaG » Fri Sep 18, 2020 1:31 pm

So for playback on LG (C8 in my case), some FEL movies like 1917 and Gemini Man would always give heavily stutter (both from USB HDD and Network)
Would converting them from FEL -> MEL fix this issue?
yusesope wrote:
Thu Sep 17, 2020 2:59 pm
... and this version of mp4muxer. Before testing an entire film I advise you to work with 120 second cuts.
Also would you happen to have a diff file for mp4muxer so I can build on Linux ?

yusesope
Posts: 221
Joined: Sun Jul 28, 2019 3:34 am

Re: Dolby Vision now possible through MP4 Mux.

Post by yusesope » Fri Sep 18, 2020 1:56 pm

MastaG wrote:
Fri Sep 18, 2020 1:31 pm
So for playback on LG (C8 in my case), some FEL movies like 1917 and Gemini Man would always give heavily stutter (both from USB HDD and Network)
Would converting them from FEL -> MEL fix this issue?
yusesope wrote:
Thu Sep 17, 2020 2:59 pm
... and this version of mp4muxer. Before testing an entire film I advise you to work with 120 second cuts.
Also would you happen to have a diff file for mp4muxer so I can build on Linux ?
Try and let us know!
I don't have it but there is an x64 version in the archive that I used on Ubuntu.

hepe9
Posts: 71
Joined: Mon Jun 03, 2019 11:04 am

Re: Dolby Vision now possible through MP4 Mux.

Post by hepe9 » Fri Sep 18, 2020 2:02 pm

yusesope wrote:
Fri Sep 18, 2020 12:57 pm
if all goes well with a 40-60€ FireStick 4K you can play UHD-BD backups as MEL without giving up ultra-high resolution audio (PCM in most cases). I think this is good news! No?
Absolutely yes, very good news

I can't wait for comparatives :wink:

MastaG
Posts: 91
Joined: Thu Aug 08, 2019 11:40 am

Re: Dolby Vision now possible through MP4 Mux.

Post by MastaG » Fri Sep 18, 2020 2:21 pm

yusesope wrote:
Fri Sep 18, 2020 1:56 pm
MastaG wrote:
Fri Sep 18, 2020 1:31 pm
So for playback on LG (C8 in my case), some FEL movies like 1917 and Gemini Man would always give heavily stutter (both from USB HDD and Network)
Would converting them from FEL -> MEL fix this issue?
yusesope wrote:
Thu Sep 17, 2020 2:59 pm
... and this version of mp4muxer. Before testing an entire film I advise you to work with 120 second cuts.
Also would you happen to have a diff file for mp4muxer so I can build on Linux ?
Try and let us know!
I don't have it but there is an x64 version in the archive that I used on Ubuntu.
Yeah you're right, the mp4muxer_64bits binary also seems to work on Fedora 33 (beta).
For the record, I've demuxed the bluray iso file of Gemini Man:

Code: Select all

ffmpeg -i bluray:///home/mastag/Video\'s/GeminiManISO -map 0:0 -c copy BL.hevc
ffmpeg -i bluray:///home/mastag/Video\'s/GeminiManISO -map 0:1 -c copy EL.hevc
Then I used tsMuxerGui to demux the truehd track and downconvert it to (core) ac3.

Now I'm muxing it with your tool with conversion to MEL:

Code: Select all

python src/app.py -mux -fel_to_mel -bl BL.hevc -el EL.hevc -of BL_EL_RPU.hevc
it takes a while.. 58% now..

When it's done I'll use your mp4muxer_64bits binary to mux the BL_EL_RPU.hevc and the ac3 audio which I got from txMuxer into a single mp4 file.

I'll let you know!
Thanks for everything bro!

EDIT: Done!

Code: Select all

mp4muxer -i BL_EL_RPU.hevc --dv-profile 7 -i 00222.track_4352.ac3 --media-lang eng -o Gemini_Man_2019.mp4
Info:

Code: Select all

General
Complete name                            : Gemini_Man_2019.mp4
Format                                   : MPEG-4
Format profile                           : Base Media / Version 2
Codec ID                                 : mp42 (mp42/dby1/isom)
File size                                : 68.9 GiB
Duration                                 : 1 h 57 min
Overall bit rate                         : 84.3 Mb/s
Encoded date                             : UTC 2020-09-18 14:35:45
Tagged date                              : UTC 2020-09-18 14:35:45

Video
ID                                       : 1
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Format profile                           : Main 10@L5.1@High
HDR format                               : Dolby Vision, Version 1.0, dvhe.07.09, BL+EL+RPU, Blu-ray compatible / SMPTE ST 2086, HDR10 compatible
Codec ID                                 : hev1
Codec ID/Info                            : High Efficiency Video Coding
Duration                                 : 1 h 57 min
Bit rate                                 : 83.7 Mb/s
Width                                    : 3 840 pixels
Height                                   : 2 160 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 59.940 (60000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0 (Type 2)
Bit depth                                : 10 bits
Bits/(Pixel*Frame)                       : 0.168
Stream size                              : 68.4 GiB (99%)
Default                                  : No
Encoded date                             : UTC 2020-09-18 14:35:45
Tagged date                              : UTC 2020-09-18 14:35:45
Color range                              : Limited
Color primaries                          : BT.2020
Transfer characteristics                 : PQ
Matrix coefficients                      : BT.2020 non-constant
Mastering display color primaries        : Display P3
Mastering display luminance              : min: 0.0010 cd/m2, max: 1000 cd/m2
Maximum Content Light Level              : 5180 cd/m2
Maximum Frame-Average Light Level        : 1577 cd/m2
Codec configuration box                  : hvcC+dvcC+hvcE

Audio
ID                                       : 2
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Commercial name                          : Dolby Digital
Codec ID                                 : ac-3
Duration                                 : 1 h 57 min
Bit rate mode                            : Constant
Bit rate                                 : 640 kb/s
Channel(s)                               : 6 channels
Channel layout                           : L R C LFE Ls Rs
Sampling rate                            : 48.0 kHz
Frame rate                               : 31.250 FPS (1536 SPF)
Compression mode                         : Lossy
Stream size                              : 536 MiB (1%)
Language                                 : eng
Service kind                             : Complete Main
Default                                  : No
Encoded date                             : UTC 2020-09-18 14:35:45
Tagged date                              : UTC 2020-09-18 14:35:45
Last edited by MastaG on Fri Sep 18, 2020 4:05 pm, edited 2 times in total.

Post Reply