Dolby Vision now possible through MP4 Mux.

Please post here for issues related to UHD discs
MartyMcNuts
Posts: 4590
Joined: Wed Nov 22, 2017 11:45 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by MartyMcNuts »

shawnc22 wrote:
Sat May 30, 2020 1:34 pm
MartyMcNuts wrote:
Sat May 30, 2020 8:39 am
3. Then use mp4muxer to mux the BL, EL and audio to a mp4 file. The command is:

mp4muxer_64bits.exe --dv-profile 4 -i N:\BIRDS_OF_PREY\TEMP_FOLDER\BL_shrunk.hevc -i N:\BIRDS_OF_PREY\TEMP_FOLDER\EL.hevc -i N:\BIRDS_OF_PREY\TEMP_FOLDER\audio.ac3 --media-lang eng -o N:\BIRDS_OF_PREY\TEMP_FOLDER\Birds.of.Prey.(2020).2160p.UHDRip.(Dolby.Vision).HEVC.AC3.mp4
I think profile 7 should really be used here. These are, spec-wise, profile 7 files, and the LG internal player supports it. Any stuttering issues caused by this method is likely because of the bitrate and not the profile choice.
You are probably right but stephon1024 asked for profile 4 so that is what I showed.
Cheers :D
----------------------------------------------------------------------------------------------------------------------------
For UHD enabled drives (AU/NZ/SG + Others) & DIY Single Drive Flasher (WW): https://uhdenableddrives.com
jlpsvk
Posts: 50
Joined: Thu Sep 06, 2018 11:33 am

Re: Dolby Vision now possible through MP4 Mux.

Post by jlpsvk »

any way to add subtitles, dts-hd ma to MP4???
RESET_9999
Posts: 2410
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

jlpsvk wrote:
Sun May 31, 2020 9:16 pm
any way to add subtitles, dts-hd ma to MP4???
need to be SRT

Code: Select all

ffmpeg.exe -i X:\DTSHD.mka -map 0:0 -c copy X:\DTSHD.mp4

Code: Select all

mp4box.exe -add X:\DV.mp4:rate=0 -add D:\DTSHD.mp4#audio:lang=en-EN -add X:\SUBS.srt#subtitle:lang=en-EN -tmp X:\ -brand mp42isom -ab dby1 -no-iod X:\DV-DTSHD-SUBS.mp4
Sorry for my English.
G5 / AM6B+ / Denon 7.2.4
DoVi_Scripts
DoVi Playback Devices
sonysg
Posts: 8
Joined: Tue May 26, 2020 5:10 am

Re: Dolby Vision now possible through MP4 Mux.

Post by sonysg »

RESET_9999 wrote:
Sun May 31, 2020 11:21 pm
jlpsvk wrote:
Sun May 31, 2020 9:16 pm
any way to add subtitles, dts-hd ma to MP4???
need to be SRT

Code: Select all

ffmpeg.exe -i X:\DTSHD.mka -map 0:0 -c copy X:\DTSHD.mp4

Code: Select all

mp4box.exe -add X:\DV.mp4:rate=0 -add D:\DTSHD.mp4#audio:lang=en-EN -add X:\SUBS.srt#subtitle:lang=en-EN -tmp X:\ -brand mp42isom -ab dby1 -no-iod X:\DV-DTSHD-SUBS.mp4
sorry it mean .ass and .sup still yet to be supported?
Woodstock
Posts: 10808
Joined: Sun Jul 24, 2011 11:21 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Woodstock »

Subtitle types you can put in an MP4 file are very limited. Other than timed text and closed captioning, everything else depends on the player understanding a non-standard extension.
chrisandy
Posts: 60
Joined: Fri May 29, 2020 6:33 am

Re: Dolby Vision now possible through MP4 Mux.

Post by chrisandy »

ragico wrote:
Sun May 10, 2020 4:42 pm
yusesope wrote:
Sun May 10, 2020 9:26 am
The 0.0.4 ALFA version of my program is out.
As always, I have updated my original post (at the bottom). HERE.

Two main changes:
  • the ability to manage raw streams extracted from REMUXed files (out there, into the wild) that in the past have retained the stream relating to the Enhancement Layer.
  • given the requests of different users, I have introduced the DEMUX function. Starting from a raw Single Track Double Layer HEVC file (BL_EL_RPU.hevc) it is possible to restore the Base Layer (BL.hevc) and the Enhancement Layer (EL_RPU.hevc)
People who are afraid of black screens with white writing (a.k.a command line), can use the handy "MUXER.bat" (the old "start_bl_el_rpu_builder.bat") and "DEMUXER.bat" files and follow the instructions on the screen.
The more practical ones can run the program with the "-h" switch and see the help output.

Considerations:
  • as for the first point, I recommend to always use the copy of your original disc. Technically speaking, REMUXed files may have lost important information during their creation. So a 1:1 copy of a BD disc may be different than a 1:1 copy of a REMUXed file. Take a look at the counters: if the total number of Access Units of BL Layer is different from that of EL Layer (the numbers you see in parentheses), it is likely that the file obtained does not work correctly (especially if the difference is greater than 1).

    WARNING
    Out of curiosity, I tested my program using a REMUXed mkv (Birds of Prey) that can be found "into the wild".
    The first video stream is already a BL_EL_RPU stream (evidently they used the latest version of MakeMKV) and then they added a second video stream which is actually the Enhancement Layer.
    A mess...

    If you mux (using my program) these anomalous video streams you will create a file with duplicate layers (because part of them were already present in the first stream which, strictly speaking, should be the Base Layer and not Base Layer + Enhancement Layer).

    Pay attention to the REMUX (with two video streams) created after the release of the latest version of MakeMKV (v1.15.1).

    The good news is that, if you notice it before making a mess, you can directly import the REMUX file into tsMuxer and tick only the box of the first video stream!
  • As for the second point, if you intend to use the DEMUX function starting from REMUXed files (even those created with the latest version of MakeMKV), in case you want to recreate a BL_EL_RPU.hevc file you MUST NECESSARILY use version 0.0.4 ALFA of my program. Previous versions (<= 0.0.3) will not be able to complete the analysis and writing cycle of the file.
  • It's an experimental version, there are likely to be errors in the code ( :mrgreen: ).
    If you provide me with relevant feedback, I will try to improve it!


First a very big thank you for the new tool.
I am going to try the Demux tool. Once demuxed how can I mux again with the new Alfa tool in -mode 2 (BL+RPU)?

Edit: Demuxed Cold Pursuit BL_EL_RPU and got BL and EL_RPU. Muxed this 2 files with your new tool in -mode 2 and the muxed file in tsmuxer profile5 (single layer). This final file works beautifully in Apple 4k via Infuse app with DV and LPCM audio.
Thank you maestro, you are a genius. :D :D :D
Trying to achieve this but unfortunately level is grayed out for me - is there something obvious I am missing?
Annotation 2020-05-31 232956.png
Annotation 2020-05-31 232956.png (14 KiB) Viewed 27342 times
sonysg
Posts: 8
Joined: Tue May 26, 2020 5:10 am

Re: Dolby Vision now possible through MP4 Mux.

Post by sonysg »

Woodstock wrote:
Mon Jun 01, 2020 2:06 am
Subtitle types you can put in an MP4 file are very limited. Other than timed text and closed captioning, everything else depends on the player understanding a non-standard extension.
I see I hope future improve version of makemkv could support different type of subtitle format
jlpsvk
Posts: 50
Joined: Thu Sep 06, 2018 11:33 am

Re: Dolby Vision now possible through MP4 Mux.

Post by jlpsvk »

chrisandy wrote:
Mon Jun 01, 2020 6:36 am

Trying to achieve this but unfortunately level is grayed out for me - is there something obvious I am missing?

Annotation 2020-05-31 232956.png
Don't download latest nigthly of tsMuxer, but this one:

Code: Select all

https://bintray.com/justdan96/tsMuxer/tsMuxerGUI-Nightly/2020-03-30--02-11-36#files
it will create dvhe.05 instead dvhe.06... :)
jlpsvk
Posts: 50
Joined: Thu Sep 06, 2018 11:33 am

Re: Dolby Vision now possible through MP4 Mux.

Post by jlpsvk »

so... I achieved this... with the help of mp4box :) i think, would be good enough. :)

1) demux with tsMuxer...
2) encode BL
3) mux BL_encode.hevc with EL.hevc with yousesope's tools with mode 2 to BL+RPU
4) mux only video to mp4 with mp4muxer 1.0.1
5) add audio, subs, chapters to MP4 with mp4box

Code: Select all

Format                                   : MPEG-4
Format profile                           : Base Media / Version 2
Codec ID                                 : mp42 (mp42/iso6/isom/msdh/dby1)
File size                                : 10.1 GiB
Duration                                 : 1 h 48 min
Overall bit rate mode                    : Variable
Overall bit rate                         : 13.2 Mb/s

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.05.06, BL+RPU / SMPTE ST 2094 App 4, Version 1, HDR10+ Profile B compatible
Codec ID                                 : dvhe
Codec ID/Info                            : High Efficiency Video Coding with Dolby Vision
Duration                                 : 1 h 48 min
Bit rate                                 : 12.1 Mb/s
Width                                    : 3 840 pixels
Height                                   : 2 160 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 23.976 (24000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0 (Type 2)
Bit depth                                : 10 bits
Bits/(Pixel*Frame)                       : 0.061
Stream size                              : 9.24 GiB (92%)
Default                                  : Yes
Alternate group                          : 1
Color range                              : Limited
Color primaries                          : BT.2020
Transfer characteristics                 : PQ
Matrix coefficients                      : BT.2020 non-constant
Mastering display color primaries        : BT.2020
Mastering display luminance              : min: 0.0050 cd/m2, max: 4000 cd/m2
Maximum Content Light Level              : 683 cd/m2
Maximum Frame-Average Light Level        : 136 cd/m2
Codec configuration box                  : dvcC+hvcC

Audio #1
ID                                       : 2
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Commercial name                          : Dolby Digital
Codec ID                                 : ac-3
Duration                                 : 1 h 48 min
Bit rate mode                            : Constant
Bit rate                                 : 448 kb/s
Maximum bit rate                         : 473 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                              : 349 MiB (3%)
Title                                    : Czech
Language                                 : Czech
Service kind                             : Complete Main

Audio #2
ID                                       : 3
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Commercial name                          : Dolby Digital
Codec ID                                 : ac-3
Duration                                 : 1 h 48 min
Bit rate mode                            : Constant
Bit rate                                 : 640 kb/s
Maximum bit rate                         : 676 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                              : 499 MiB (5%)
Title                                    : English
Language                                 : English
Service kind                             : Complete Main

Text #1
ID                                       : 4
Format                                   : VobSub
Codec ID                                 : mp4s-E0
Codec ID/Info                            : The same subtitle format used on DVDs
Duration                                 : 1 h 42 min
Bit rate mode                            : Variable
Bit rate                                 : 312 b/s
Maximum bit rate                         : 91.3 kb/s
Stream size                              : 240 KiB (0%)
Title                                    : Czech Forced
Language                                 : Czech
Forced                                   : No

Text #2
ID                                       : 5
Format                                   : VobSub
Codec ID                                 : mp4s-E0
Codec ID/Info                            : The same subtitle format used on DVDs
Duration                                 : 1 h 48 min
Bit rate mode                            : Variable
Bit rate                                 : 7 768 b/s
Maximum bit rate                         : 104 kb/s
Stream size                              : 6.05 MiB (0%)
Title                                    : Czech Full
Language                                 : Czech
Forced                                   : No

Text #3
ID                                       : 6
Format                                   : Timed Text
Codec ID                                 : tx3g
Duration                                 : 1 h 42 min
Bit rate mode                            : Variable
Bit rate                                 : 2 b/s
Stream size                              : 1.50 KiB (0%)
Title                                    : Czech Forced SRT
Language                                 : Czech
Forced                                   : Yes

Text #4
ID                                       : 7
Format                                   : Timed Text
Codec ID                                 : tx3g
Duration                                 : 1 h 48 min
Bit rate mode                            : Variable
Bit rate                                 : 63 b/s
Stream size                              : 50.3 KiB (0%)
Title                                    : Czech Full SRT
Language                                 : Czech
Forced                                   : No

Menu
00:00:00.000                             : Chapter 01
00:08:08.446                             : Chapter 02
00:17:53.739                             : Chapter 03
00:27:11.839                             : Chapter 04
00:35:40.805                             : Chapter 05
00:44:48.352                             : Chapter 06
00:53:43.387                             : Chapter 07
01:01:15.547                             : Chapter 08
01:10:55.960                             : Chapter 09
01:19:06.492                             : Chapter 10
01:24:28.146                             : Chapter 11
01:34:27.996                             : Chapter 12
01:41:26.998                             : Chapter 13
Woodstock
Posts: 10808
Joined: Sun Jul 24, 2011 11:21 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Woodstock »

sonysg wrote:
Mon Jun 01, 2020 6:50 am
I see I hope future improve version of makemkv could support different type of subtitle format
DV in MKV is really the only hope for that - MP4 standards are outside the control of anyone "poor". The most radical change driven by anyone outside the standards body on that front was driven in partby Apple, with MP4 chapters via a special subtitle track in to "m4v" files. Nero introduced a standardized (but not standard) way to put VOBSUB subtitles from DVDs in as a track.

See https://en.wikipedia.org/wiki/MPEG-4_Pa ... ta_streams for what can be in an MP4.
olevelo
Posts: 120
Joined: Thu Dec 20, 2018 11:59 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by olevelo »

sonysg wrote:
Mon Jun 01, 2020 6:50 am
Woodstock wrote:
Mon Jun 01, 2020 2:06 am
Subtitle types you can put in an MP4 file are very limited. Other than timed text and closed captioning, everything else depends on the player understanding a non-standard extension.
I see I hope future improve version of makemkv could support different type of subtitle format
Makemkv has nothing to do with mp4.
chrisandy
Posts: 60
Joined: Fri May 29, 2020 6:33 am

Re: Dolby Vision now possible through MP4 Mux.

Post by chrisandy »

jlpsvk wrote:
Mon Jun 01, 2020 10:31 am
chrisandy wrote:
Mon Jun 01, 2020 6:36 am

Trying to achieve this but unfortunately level is grayed out for me - is there something obvious I am missing?

Annotation 2020-05-31 232956.png
Don't download latest nigthly of tsMuxer, but this one:

Code: Select all

https://bintray.com/justdan96/tsMuxer/tsMuxerGUI-Nightly/2020-03-30--02-11-36#files
it will create dvhe.05 instead dvhe.06... :)
Unfortunately still both unable to change the level # and I'm still only getting HDR10 instead of DV.

Here is my set up:

Apple TV 4K
Infuse App

Here is what I am doing:

Use Yuescope's tool to extract Base Layer and Extended Layer
Add those to TSMuxer
Add playlist file to TSMuxer
Remove the two video files from the playlist file, leaving the .hevc and the audio files
Create a .m2ts file

That .m2ts checks out in Mediainfo but it does not play as Dolby Vision in the Infuse app.

Image
Attachments
Annotation 2020-06-01 123108.png
Annotation 2020-06-01 123108.png (24.64 KiB) Viewed 28092 times
Angryunibrow
Posts: 104
Joined: Wed Nov 06, 2019 11:26 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Angryunibrow »

chrisandy wrote:
Mon Jun 01, 2020 7:31 pm
jlpsvk wrote:
Mon Jun 01, 2020 10:31 am
chrisandy wrote:
Mon Jun 01, 2020 6:36 am

Trying to achieve this but unfortunately level is grayed out for me - is there something obvious I am missing?

Annotation 2020-05-31 232956.png
Don't download latest nigthly of tsMuxer, but this one:

Code: Select all

https://bintray.com/justdan96/tsMuxer/tsMuxerGUI-Nightly/2020-03-30--02-11-36#files
it will create dvhe.05 instead dvhe.06... :)
Unfortunately still both unable to change the level # and I'm still only getting HDR10 instead of DV.

Here is my set up:

Apple TV 4K
Infuse App

Here is what I am doing:

Use Yuescope's tool to extract Base Layer and Extended Layer
Add those to TSMuxer
Add playlist file to TSMuxer
Remove the two video files from the playlist file, leaving the .hevc and the audio files
Create a .m2ts file

That .m2ts checks out in Mediainfo but it does not play as Dolby Vision in the Infuse app.

Image
Are you using -mode 2 with Yuescopes tool?
You must to create a profile 5 compliant file.
sonysg
Posts: 8
Joined: Tue May 26, 2020 5:10 am

Re: Dolby Vision now possible through MP4 Mux.

Post by sonysg »

Woodstock wrote:
Mon Jun 01, 2020 12:27 pm
sonysg wrote:
Mon Jun 01, 2020 6:50 am
I see I hope future improve version of makemkv could support different type of subtitle format
DV in MKV is really the only hope for that - MP4 standards are outside the control of anyone "poor". The most radical change driven by anyone outside the standards body on that front was driven in partby Apple, with MP4 chapters via a special subtitle track in to "m4v" files. Nero introduced a standardized (but not standard) way to put VOBSUB subtitles from DVDs in as a track.

See https://en.wikipedia.org/wiki/MPEG-4_Pa ... ta_streams for what can be in an MP4.
I see thanks for the insight
mkv is really a good container only thing it does not support DV yet :(
sonysg
Posts: 8
Joined: Tue May 26, 2020 5:10 am

Re: Dolby Vision now possible through MP4 Mux.

Post by sonysg »

sonysg wrote:
Tue May 26, 2020 5:23 am
Dear all,

I'm using OPPO 205 and Sony X950G

I have a problem when playing Dolby Vision disc or MP4 muxed Dolby Vision files

How could we enforced film to full screen(No Black bar) when play back DV contains? It said this operation is not permitted when I pressed "Zoom" on the Oppo's remote

I could do full screen easily on HDR10 but not in Dolby Vision format, only Full screen Dolby Vision contain could (i.e BumbleBee, Transformer 4) :( I wish I could to do that for every Dolby Vision titles to enhance the movie viewing experience

How to we bypass this restriction? it could because of the metadata of second layer(1920*1080) of Dolby Vision contains prevent this to be happened, because muxing Dolby Vision using MP4 container is possible now, I would like to save hard disk space and get rid of black bar whenever possible, Does MakeMKV allow or maximise the full screen properties when muxing in MP4 format?

Looking forward for your suggestion
I'm sorry to bumped up this question but no one seem to be giving me an overall idea on this
Is this restriction on the player itself or the DV authoring prevent the "Zoom" happening but its possible still on HDR10 contains
Post Reply