Dolby Vision now possible through MP4 Mux.

Please post here for issues related to UHD discs
MastaG
Posts: 98
Joined: Thu Aug 08, 2019 11:40 am

Re: Dolby Vision now possible through MP4 Mux.

Post by MastaG »

jcdr428 wrote:
Mon Mar 30, 2020 2:18 pm
MastaG wrote:
Mon Mar 30, 2020 10:27 am
As you can see it reports: 04.06.

Shouldn't it report profile 05 instead?
Because your PR has been merged: https://github.com/justdan96/tsMuxer/pull/264 and I built the latest rev, which should include your fix.
So your have hacked the Blu-ray dual tracks to move the second track to an EL layer in the first track. The resulting single track is BL+EL (which should be profile 4) with HDR10 (which should be profile 8 ), but is definitely not profile 5 (which is DV IPT without EL). You should ask Dolby to create a new profile :)

Edit: I don't really know how I should classify the profiles for your hacked files, but I've pushed the following to tsMuxer:

Code: Select all

    // cf. "DolbyVisionProfilesLevels_v1_3_2_2019_09_16.pdf"
    int profile = 0;
    if (!isDVBL)  // dual HEVC track
        profile = 7;
    else if (m_hdr->isDVEL)
        profile = 4;
    else if (m_sps->colour_primaries == 2 && m_sps->transfer_characteristics == 2 &&
             m_sps->matrix_coeffs == 2)  // DV IPT color space
        profile = 5;
    else
        profile = 8;
For the record I didn't change/alter anything.

I just updated yusecope's tool from 0.0.3 to 0.0.3 rev1 and updated tsmuxer to the latest git revision.

No changes/patches.. I'm remuxing the EL/BL straight from the Blu-ray disc, convert them with yusecope's python tool and then use tsmuxer to create a .ts file from the output of it.
So I'm not using mp4muxer.

Now previously this used to work on my LG C8.

Now it doesn't work any longer and just skips.
So either the upgrade of yusecope's tool or tsmuxer caused it.

So I assumed the profile was wrong in the resulted .ts file, since perhaps it requires 5 instead of 4, but I'm not sure.

It can also be rev1 of yusecope's tool producing different conversion causing the stutters.
jcdr428
Posts: 34
Joined: Fri Mar 20, 2020 6:55 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by jcdr428 »

@yusesope and others, any means to check whether your Blu-rays changed to BL+EL+RPU HDR10 single tracks work on TV, STB and/or OTT if we assign correct profile 6 to these ?

Edit: so profile 8 will get deprecated as well, it looks like Dolby are pushing for proprietary DV streams that cannot be read by non-DV TVs or STBs, to force people to buy Dolby equipment.
shawnc22
Posts: 637
Joined: Tue Jan 21, 2020 7:40 am

Re: Dolby Vision now possible through MP4 Mux.

Post by shawnc22 »

MastaG wrote:
Mon Mar 30, 2020 2:35 pm
For the record I didn't change/alter anything.

I just updated yusecope's tool from 0.0.3 to 0.0.3 rev1 and updated tsmuxer to the latest git revision.

No changes/patches.. I'm remuxing the EL/BL straight from the Blu-ray disc, convert them with yusecope's python tool and then use tsmuxer to create a .ts file from the output of it.
So I'm not using mp4muxer.

Now previously this used to work on my LG C8.

Now it doesn't work any longer and just skips.
So either the upgrade of yusecope's tool or tsmuxer caused it.

So I assumed the profile was wrong in the resulted .ts file, since perhaps it requires 5 instead of 4, but I'm not sure.

It can also be rev1 of yusecope's tool producing different conversion causing the stutters.
As far as I know, rev1 of yusecope's tool merely added the AUD count debugging messages over the base version and didn't change how the resulting the HEVC file is constructed. If you're not using -mode 2 of the tool, the resulting file should be profile 4 (or 6 i guess according to the blu-ray forums), but definitely not 5 or 8 since the EL layer is not supported in these profiles.

Are you saying you had gotten TS remuxes to work on your C8's internal player with atmos audio? I was under the impression that LG's do not support lossless audio at all. At least on my B9, whenever I try to play any of my TS remuxes, I would always get the "This video does not support audio" message on the top right corner while the video is playing. As for the videos skipping, I've had some mixed results. Some of the files I've created with the older version of tsmuxer that produced prof 8 played back perfectly and some had the same skipping issues like you mentioned. Not a big issue for me anyways since they all playback perfectly on the Shield with the included Atmos track, but have you tried redoing a movie that you have known to work on your C8 with the new versions of yusecope's tool and updated tsmuxer to determine if it might be a title-related or tool-related issue?

@jcdr, I can recompile tsmuxer and give prof 6 a try. will report back with results
jcdr428
Posts: 34
Joined: Fri Mar 20, 2020 6:55 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by jcdr428 »

shawnc22 wrote:
Mon Mar 30, 2020 3:48 pm
@jcdr, I can recompile tsmuxer and give prof 6 a try. will report back with results
Thanks @shawnc22 . Or you can try this W64 build bb51a5f from my fork. Single tracks created from Blu-rays should be profile 6.

Code: Select all

    // cf. "http://www.dolby.com/us/en/technologies/dolby-vision/dolby-vision-profiles-levels.pdf"
    int profile;
    if (m_sps->bit_depth_luma_minus8 == 2)
    {
        if (!isDVBL)  // dual HEVC track
            profile = 7;
        else if (m_hdr->isDVEL && (V3_flags & HDR10))
            profile = 6;
        else if (m_hdr->isDVEL)
            profile = 4;
        else if (m_sps->colour_primaries == 2 && m_sps->transfer_characteristics == 2 &&
                 m_sps->matrix_coeffs == 2)  // DV IPT color space
            profile = 5;
        else
            profile = 8;
    }
    else  // 8-bit
    {
        if (m_sps->colour_primaries == 2 && m_sps->transfer_characteristics == 2 &&
            m_sps->matrix_coeffs == 2)  // DV IPT color space
            profile = 3;
        else
            profile = 2;
    }
Last edited by jcdr428 on Mon Mar 30, 2020 4:33 pm, edited 2 times in total.
Angryunibrow
Posts: 104
Joined: Wed Nov 06, 2019 11:26 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Angryunibrow »

jcdr428 wrote:
Mon Mar 30, 2020 4:22 pm
shawnc22 wrote:
Mon Mar 30, 2020 3:48 pm
@jcdr, I can recompile tsmuxer and give prof 6 a try. will report back with results
Thanks @shawnc22 . Or you can try this W64 build bb51a5f from my fork. Single tracks created from Blu-rays should be profile 6.

Code: Select all

    // cf. "http://www.dolby.com/us/en/technologies/dolby-vision/dolby-vision-profiles-levels.pdf"
    int profile;
    if (m_sps->bit_depth_luma_minus8 == 2)
    {
        if (!isDVBL)  // dual HEVC track
            profile = 7;
        else if (m_hdr->isDVEL && (V3_flags & HDR10))
            profile = 6;
        else if (m_hdr->isDVEL)
            profile = 4;
        else if (m_sps->colour_primaries == 2 && m_sps->transfer_characteristics == 2 &&
                 m_sps->matrix_coeffs == 2)  // DV IPT color space
            profile = 5;
        else
            profile = 8;
    }
    else  // 8-bit
    {
        if (m_sps->colour_primaries == 2 && m_sps->transfer_characteristics == 2 &&
            m_sps->matrix_coeffs == 2)  // DV IPT color space
            profile = 3;
        else
            profile = 2;
    }
Curious if this will play on the shield, I think not because the devs said profile 4 MEL, 5,8 and 9 are only supported.
We support profile 4 MEL (minimum enhancement layer). Also single layer profiles 5,8.9.
DaMacFunkin
Posts: 312
Joined: Tue Oct 30, 2018 4:17 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by DaMacFunkin »

Anybody??

A way to remove HDR10+ without removing Dolby Vision?

Cheers.
Angryunibrow
Posts: 104
Joined: Wed Nov 06, 2019 11:26 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Angryunibrow »

DaMacFunkin wrote:
Mon Mar 30, 2020 4:40 pm
Anybody??

A way to remove HDR10+ without removing Dolby Vision?

Cheers.
No way that I am aware of
pargo
Posts: 3
Joined: Sun Mar 29, 2020 2:22 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by pargo »

Angryunibrow wrote:
Mon Mar 30, 2020 4:26 pm
jcdr428 wrote:
Mon Mar 30, 2020 4:22 pm
shawnc22 wrote:
Mon Mar 30, 2020 3:48 pm
@jcdr, I can recompile tsmuxer and give prof 6 a try. will report back with results
Thanks @shawnc22 . Or you can try this W64 build bb51a5f from my fork. Single tracks created from Blu-rays should be profile 6.

Code: Select all

    // cf. "http://www.dolby.com/us/en/technologies/dolby-vision/dolby-vision-profiles-levels.pdf"
    int profile;
    if (m_sps->bit_depth_luma_minus8 == 2)
    {
        if (!isDVBL)  // dual HEVC track
            profile = 7;
        else if (m_hdr->isDVEL && (V3_flags & HDR10))
            profile = 6;
        else if (m_hdr->isDVEL)
            profile = 4;
        else if (m_sps->colour_primaries == 2 && m_sps->transfer_characteristics == 2 &&
                 m_sps->matrix_coeffs == 2)  // DV IPT color space
            profile = 5;
        else
            profile = 8;
    }
    else  // 8-bit
    {
        if (m_sps->colour_primaries == 2 && m_sps->transfer_characteristics == 2 &&
            m_sps->matrix_coeffs == 2)  // DV IPT color space
            profile = 3;
        else
            profile = 2;
    }
Curious if this will play on the shield, I think not because the devs said profile 4 MEL, 5,8 and 9 are only supported.
We support profile 4 MEL (minimum enhancement layer). Also single layer profiles 5,8.9.
Does that mean that profile 4 isn't the best choice for Shield because it doesn't have FEL? And we should use profile 5 if possible? Sorry if I'm misunderstanding, still trying to get this all figured out :D
MastaG
Posts: 98
Joined: Thu Aug 08, 2019 11:40 am

Re: Dolby Vision now possible through MP4 Mux.

Post by MastaG »

Thank you guys for all the answers.. so I need to set mode 2 to get profile 5, got it :)
@shawnc22 No the internal player of my C8 does not support TrueHD/Atmos.
But I'm storing it for preservation reasons.

For playback I must select the AC3 core track or E-AC3 5.1.

What I meant to say is that.. before I was able to produce .ts files with -mode 1 hevc that would play fluent on my C8.
Even the 60fps Gemini Man was OK.

Just using the 0.0.3 tool to create a mode 1 hevc file from the BL/EL and then use TsMuxer to mux it into a transport stream.
See my success story: https://www.makemkv.com/forum/viewtopic ... 295#p86295

It would say:
Dolby Vision, Version 1.0, dvhe.08.09, BL+EL+RPU / SMPTE ST 2086, HDR10 compatible

The latest TsMuxer will say:
Dolby Vision, Version 1.0, dvhe.04.09, BL+EL+RPU / SMPTE ST 2086, HDR10 compatible

So it seems 04 will cause stutters every 1 or 2 seconds while 08 works fine?
Or it's caused by the difference between yusesope's 0.0.3 and 0.0.3_rev1 tool.
shawnc22
Posts: 637
Joined: Tue Jan 21, 2020 7:40 am

Re: Dolby Vision now possible through MP4 Mux.

Post by shawnc22 »

Just tested the following using yusecope's tool v0.0.3 and tsmuxer build edited to force all profiles to 6 (sorry @jcdr, saw your build too late, but resulting file should be same in this scenario):

Joker sample file that's been used extensively here before with no audio track:
- Plays on B9 internal player, triggers DV
- Plays on 2019 Shield, triggers DV

Full Joker movie remuxed with Atmos audio:
- Plays on B9 internal player (no stutter), triggers DV, and no audio support message (as expected)
- Plays on 2019 Shield, triggers DV and Atmos audio

Here is the resulting mediainfo from the full movie remux:

Code: Select all

Video
ID                                       : 4117 (0x1015)
Menu ID                                  : 1 (0x1)
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Format profile                           : Main 10@L5.1@High
HDR format                               : Dolby Vision, Version 1.0, dvhe.06.06, BL+EL+RPU / SMPTE ST 2086, HDR10 compatible
Codec ID                                 : 36
Duration                                 : 2 h 1 min
Bit rate                                 : 53.7 Mb/s
Width                                    : 3 840 pixels
Height                                   : 2 160 pixels
Display aspect ratio                     : 16:9
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.270
Stream size                              : 45.7 GiB (94%)
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.0050 cd/m2, max: 4000 cd/m2
Maximum Content Light Level              : 992 cd/m2
Maximum Frame-Average Light Level        : 120 cd/m2

Audio
ID                                       : 4352 (0x1100)
Menu ID                                  : 1 (0x1)
Format                                   : AC-3 MLP FBA 16-ch
Format/Info                              : Audio Coding 3 + Meridian Lossless Packing FBA with 16-channel presentation
Commercial name                          : Dolby TrueHD with Dolby Atmos
Muxing mode                              : Stream extension
Codec ID                                 : 131
Duration                                 : 2 h 1 min
Bit rate mode                            : Variable
Bit rate                                 : 640 kb/s
Maximum bit rate                         : 7 158 kb/s
Channel(s)                               : 8 channels
Channel layout                           : L R C LFE Ls Rs Lb Rb
Sampling rate                            : 48.0 kHz
Frame rate                               : 31.250 FPS (1536 SPF)
Compression mode                         : Lossy
Stream size                              : 558 MiB (1%)
Language                                 : English
Service kind                             : Complete Main
Number of dynamic objects                : 15
Bed channel count                        : 1 channel
Bed channel configuration                : LFE
Interesting findings as my previous remux of the full joker movie that was prof 4 did stutter on my B9, so seemingly the stutter issue on the LG internal player is related to DV profiling. Also interesting that the Shield is able to play these since it's been mentioned in that past that profile 6 is not supported. As far as my eyes can tell, there is no discerning difference between the profile 6 vs 4 DV remuxes. Not sure what the best step is moving forward, since profile 6 has pretty much been deprecated? I had to go back to a 2016 version of the dolby profiles pdf to even find a mention of it.
MastaG
Posts: 98
Joined: Thu Aug 08, 2019 11:40 am

Re: Dolby Vision now possible through MP4 Mux.

Post by MastaG »

shawnc22 wrote:
Mon Mar 30, 2020 5:13 pm
Just tested the following using yusecope's tool v0.0.3 and tsmuxer build edited to force all profiles to 6 (sorry @jcdr, saw your build too late, but resulting file should be same in this scenario):

Joker sample file that's been used extensively here before with no audio track:
- Plays on B9 internal player, triggers DV
- Plays on 2019 Shield, triggers DV

Full Joker movie remuxed with Atmos audio:
- Plays on B9 internal player (no stutter), triggers DV, and no audio support message (as expected)
- Plays on 2019 Shield, triggers DV and Atmos audio

Here is the resulting mediainfo from the full movie remux:

Code: Select all

Video
ID                                       : 4117 (0x1015)
Menu ID                                  : 1 (0x1)
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Format profile                           : Main 10@L5.1@High
HDR format                               : Dolby Vision, Version 1.0, dvhe.06.06, BL+EL+RPU / SMPTE ST 2086, HDR10 compatible
Codec ID                                 : 36
Duration                                 : 2 h 1 min
Bit rate                                 : 53.7 Mb/s
Width                                    : 3 840 pixels
Height                                   : 2 160 pixels
Display aspect ratio                     : 16:9
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.270
Stream size                              : 45.7 GiB (94%)
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.0050 cd/m2, max: 4000 cd/m2
Maximum Content Light Level              : 992 cd/m2
Maximum Frame-Average Light Level        : 120 cd/m2

Audio
ID                                       : 4352 (0x1100)
Menu ID                                  : 1 (0x1)
Format                                   : AC-3 MLP FBA 16-ch
Format/Info                              : Audio Coding 3 + Meridian Lossless Packing FBA with 16-channel presentation
Commercial name                          : Dolby TrueHD with Dolby Atmos
Muxing mode                              : Stream extension
Codec ID                                 : 131
Duration                                 : 2 h 1 min
Bit rate mode                            : Variable
Bit rate                                 : 640 kb/s
Maximum bit rate                         : 7 158 kb/s
Channel(s)                               : 8 channels
Channel layout                           : L R C LFE Ls Rs Lb Rb
Sampling rate                            : 48.0 kHz
Frame rate                               : 31.250 FPS (1536 SPF)
Compression mode                         : Lossy
Stream size                              : 558 MiB (1%)
Language                                 : English
Service kind                             : Complete Main
Number of dynamic objects                : 15
Bed channel count                        : 1 channel
Bed channel configuration                : LFE
Interesting findings as my previous remux of the full joker movie that was prof 4 did stutter on my B9, so seemingly the stutter issue on the LG internal player is related to DV profiling. Also interesting that the Shield is able to play these since it's been mentioned in that past that profile 6 is not supported. As far as my eyes can tell, there is no discerning difference between the profile 6 vs 4 DV remuxes. Not sure what the best step is moving forward, since profile 6 has pretty much been deprecated? I had to go back to a 2016 version of the dolby profiles pdf to even find a mention of it.
yeah, so profile 4 stutters on LG :)
Now if profile 6 works on both the Shield (also playing the Atmos track) and LG.. then -mode 1 with profile 6 in TS should be the golden combination.
shawnc22
Posts: 637
Joined: Tue Jan 21, 2020 7:40 am

Re: Dolby Vision now possible through MP4 Mux.

Post by shawnc22 »

MastaG wrote:
Mon Mar 30, 2020 5:21 pm
yeah, so profile 4 stutters on LG :)
Now if profile 6 works on both the Shield (also playing the Atmos track) and LG.. then -mode 1 with profile 6 in TS should be the golden combination.
I don't know if it's as simple as saying that prof 4 is no good on the LG. The same Joker sample file that I had previously made in prof 4 played back perfectly with no stutter, it was just the full movie that was stuttering. Plus this official LG sample here: https://4kmedia.org/lg-dolby-comparison-uhd-4k-demo/ is a profile 4 TS with a BL+EL+RPU single track, and that plays back just fine, too
jcdr428
Posts: 34
Joined: Fri Mar 20, 2020 6:55 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by jcdr428 »

shawnc22 wrote:
Mon Mar 30, 2020 5:34 pm
I don't know if it's as simple as saying that prof 4 is no good on the LG. The same Joker sample file that I had previously made in prof 4 played back perfectly with no stutter, it was just the full movie that was stuttering. Plus this official LG sample here: https://4kmedia.org/lg-dolby-comparison-uhd-4k-demo/ is a profile 4 TS with a BL+EL+RPU single track, and that plays back just fine, too
@shawnc22 thanks for the confirmation on profile 6 working. The patch is pending merge in the official tsMuxer.

Mediainfo must match the following:
Profile 4: BL+EL+RPU, SDR compatible
Profile 5: BL+RPU, (Unspecified colorspace)
Profile 6: BL+EL+RPU, HDR10 compatible
Profile 7: track 1 HDR10 or HDR10+ compatible, track 2 HDR10 compatible
Profile 8: BL+RPU, HDR10 or HLG or SDR compatible
jcdr428
Posts: 34
Joined: Fri Mar 20, 2020 6:55 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by jcdr428 »

shawnc22 wrote:
Mon Mar 30, 2020 5:13 pm
Interesting findings as my previous remux of the full joker movie that was prof 4 did stutter on my B9, so seemingly the stutter issue on the LG internal player is related to DV profiling. Also interesting that the Shield is able to play these since it's been mentioned in that past that profile 6 is not supported. As far as my eyes can tell, there is no discerning difference between the profile 6 vs 4 DV remuxes. Not sure what the best step is moving forward, since profile 6 has pretty much been deprecated? I had to go back to a 2016 version of the dolby profiles pdf to even find a mention of it.
@shawnc22 thanks for the confirmation on profile 6 working. The patch is pending merge in the official tsMuxer.

Mediainfo must match the following:
- Profile 4: BL+EL+RPU, SDR or (Unspecified colorspace)
- Profile 5: BL+RPU, (Unspecified colorspace)
- Profile 6: BL+EL+RPU, HDR10/+ compatible
- Profile 7: track 1 HDR10/+ compatible, track 2 HDR10 compatible
- Profile 8: BL+RPU, HDR10/+ or HLG or SDR compatible

Edit: Dolby are cutting all compatibility with other HDR formats, so indeed they don't advertise compatibility with former profile 6. And profile 8 is already in "Annex I: Profiles not supported for new applications" in the latest DolbyVisionProfilesLevels_v1_3_2_2019_09_16.pdf
mulucy
Posts: 145
Joined: Tue Jan 07, 2020 7:08 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by mulucy »

jcdr428 wrote:
Mon Mar 30, 2020 7:42 pm
shawnc22 wrote:
Mon Mar 30, 2020 5:13 pm
Interesting findings as my previous remux of the full joker movie that was prof 4 did stutter on my B9, so seemingly the stutter issue on the LG internal player is related to DV profiling. Also interesting that the Shield is able to play these since it's been mentioned in that past that profile 6 is not supported. As far as my eyes can tell, there is no discerning difference between the profile 6 vs 4 DV remuxes. Not sure what the best step is moving forward, since profile 6 has pretty much been deprecated? I had to go back to a 2016 version of the dolby profiles pdf to even find a mention of it.
@shawnc22 thanks for the confirmation on profile 6 working. The patch is pending merge in the official tsMuxer.

Mediainfo must match the following:
- Profile 4: BL+EL+RPU, SDR or (Unspecified colorspace)
- Profile 5: BL+RPU, (Unspecified colorspace)
- Profile 6: BL+EL+RPU, HDR10/+ compatible
- Profile 7: track 1 HDR10/+ compatible, track 2 HDR10 compatible
- Profile 8: BL+RPU, HDR10/+ or HLG or SDR compatible

Edit: Dolby are cutting all compatibility with other HDR formats, so indeed they don't advertise compatibility with former profile 6. And profile 8 is already in "Annex I: Profiles not supported for new applications" in the latest DolbyVisionProfilesLevels_v1_3_2_2019_09_16.pdf
I am sure others have reported this, but using the "yusecope tool 0.0.3 rev01 -mode 2" with the Tsmuxer 11f852a version produces profile 08.06 in TS container. I was expecting to get a Profile 5.

edit:

It has nothing to do with the Yusecope tool or revision ( experimented a little more ). It's the Tsmuxer, it defaults to profile 4 with a dual-layer and profile 8 with a single layer. Is there a way to choose the profile level before remuxing it? BTW, when playing the profile 4 Black Panther on my Apple 4K ( it only supports the profile 5 AFAIK ), it plays the file as HDR10. I thought the Profile 4 only had backward compatibility with SDR only.
Post Reply