Dolby Vision now possible through MP4 Mux.

Please post here for issues related to UHD discs
Post Reply
RESET_9999
Posts: 2421
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

ArArdin wrote: Fri Apr 15, 2022 11:59 am Wondering if that would work. I have never tried to remux 7.1 EAC3 from a blu-ray to mkv or mp4. Would the different build-up be accepted by either container?
I just tried and it works in all the containers ( mp4 / mkv / ts) ... mkvtoolnix even keep the core intact (unlike the TrueHD tracks)
I didnt try to play the file but i expect it to work.
Image

Code: Select all

Complete name                            : D:\00000_P8_P8_DoVi.sub.au.mp4
Format                                   : mp43
Codec ID                                 : mp43 (isom/mp43/dby1)
File size                                : 4.83 GiB
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Format profile                           : Main 10@L5.1@High
HDR format                               : Dolby Vision, Version 1.0, dvhe.08.06, BL+RPU / SMPTE ST 2086, HDR10 compatible
Codec ID                                 : dvhe
Codec ID/Info                            : High Efficiency Video Coding with Dolby Vision
Duration                                 : 10 min 0 s
Bit rate                                 : 68.3 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.343
Stream size                              : 4.77 GiB (99%)
Default                                  : No
Encoded date                             : UTC 2022-04-15 16:08:42
Tagged date                              : UTC 2022-04-15 16:09:04
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.0001 cd/m2, max: 1000 cd/m2
Maximum Content Light Level              : 1000 cd/m2
Maximum Frame-Average Light Level        : 407 cd/m2
Codec configuration box                  : hvcC+dvcC

Audio
ID                                       : 2
Format                                   : E-AC-3
Format/Info                              : Enhanced AC-3
Commercial name                          : Dolby Digital Plus
Format profile                           : Blu-ray Disc
Codec ID                                 : ec-3
Duration                                 : 10 min 0 s
Bit rate mode                            : Constant
Bit rate                                 : 768 kb/s
Maximum bit rate                         : 811 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                              : 55.0 MiB (1%)
Service kind                             : Complete Main
Default                                  : No
Encoded date                             : UTC 2022-04-15 16:08:42
Tagged date                              : UTC 2022-04-15 16:09:04

Text
ID                                       : 3
Format                                   : Timed Text
Codec ID                                 : tx3g
Duration                                 : 9 min 51 s
Bit rate mode                            : Variable
Bit rate                                 : 44 b/s
Stream size                              : 3.18 KiB (0%)
Title                                    : Grinch.2018.2160p.BluRay.REMUX
Forced                                   : No
Encoded date                             : UTC 2022-04-15 16:09:04
Tagged date                              : UTC 2022-04-15 16:09:04
Sorry for my English.
G5 / AM6B+ / Denon 7.2.4
DoVi_Scripts
DoVi Playback Devices
redoine322
Posts: 12
Joined: Fri Apr 15, 2022 2:16 am

Re: Dolby Vision now possible through MP4 Mux.

Post by redoine322 »

RESET_9999 wrote: Fri Apr 15, 2022 4:11 pm
ArArdin wrote: Fri Apr 15, 2022 11:59 am Wondering if that would work. I have never tried to remux 7.1 EAC3 from a blu-ray to mkv or mp4. Would the different build-up be accepted by either container?
I just tried and it works in all the containers ( mp4 / mkv / ts) ... mkvtoolnix even keep the core intact (unlike the TrueHD tracks)
I didnt try to play the file but i expect it to work.
Image

Code: Select all

Complete name                            : D:\00000_P8_P8_DoVi.sub.au.mp4
Format                                   : mp43
Codec ID                                 : mp43 (isom/mp43/dby1)
File size                                : 4.83 GiB
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Format profile                           : Main 10@L5.1@High
HDR format                               : Dolby Vision, Version 1.0, dvhe.08.06, BL+RPU / SMPTE ST 2086, HDR10 compatible
Codec ID                                 : dvhe
Codec ID/Info                            : High Efficiency Video Coding with Dolby Vision
Duration                                 : 10 min 0 s
Bit rate                                 : 68.3 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.343
Stream size                              : 4.77 GiB (99%)
Default                                  : No
Encoded date                             : UTC 2022-04-15 16:08:42
Tagged date                              : UTC 2022-04-15 16:09:04
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.0001 cd/m2, max: 1000 cd/m2
Maximum Content Light Level              : 1000 cd/m2
Maximum Frame-Average Light Level        : 407 cd/m2
Codec configuration box                  : hvcC+dvcC

Audio
ID                                       : 2
Format                                   : E-AC-3
Format/Info                              : Enhanced AC-3
Commercial name                          : Dolby Digital Plus
Format profile                           : Blu-ray Disc
Codec ID                                 : ec-3
Duration                                 : 10 min 0 s
Bit rate mode                            : Constant
Bit rate                                 : 768 kb/s
Maximum bit rate                         : 811 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                              : 55.0 MiB (1%)
Service kind                             : Complete Main
Default                                  : No
Encoded date                             : UTC 2022-04-15 16:08:42
Tagged date                              : UTC 2022-04-15 16:09:04

Text
ID                                       : 3
Format                                   : Timed Text
Codec ID                                 : tx3g
Duration                                 : 9 min 51 s
Bit rate mode                            : Variable
Bit rate                                 : 44 b/s
Stream size                              : 3.18 KiB (0%)
Title                                    : Grinch.2018.2160p.BluRay.REMUX
Forced                                   : No
Encoded date                             : UTC 2022-04-15 16:09:04
Tagged date                              : UTC 2022-04-15 16:09:04
Could you plz explain to Me how to get an mp4 or mkv file to work on my LG C1 with DV please using your script From BDMV thanks for your hard Work Sir
ArArdin
Posts: 196
Joined: Fri Nov 20, 2020 1:40 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by ArArdin »

RESET_9999 wrote: Fri Apr 15, 2022 4:11 pmI just tried and it works in all the containers ( mp4 / mkv / ts) ... mkvtoolnix even keep the core intact (unlike the TrueHD tracks)
I didnt try to play the file but i expect it to work.
Nice going, RESET_9999.
MKVToolnix indeed seems to keep "real core" audiostreams intact. Just like it does with DTS-HD. Good to know it works.
Cheers
moobot
Posts: 1
Joined: Sat Apr 16, 2022 10:10 am

Re: Dolby Vision now possible through MP4 Mux.

Post by moobot »

mtotheb wrote: Thu Jan 27, 2022 12:24 pm Has anybody tried the new https://www.mi.com/global/product/xiaomi-tv-stick-4k/

it seems to officially support HD Audio (DTS HD) as well as Dolby Vision. When I receive mine i’ll test if FEL playbacks correctly while also having HD Audio Passthrough.
Have you tested the Xiaomi 4k stick with DV yet, any good results?
RESET_9999
Posts: 2421
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

redoine322 wrote: Sat Apr 16, 2022 2:26 am Could you plz explain to Me how to get an mp4 or mkv file to work on my LG C1 with DV please using your script From BDMV thanks for your hard Work Sir
Theres tutorial video in my scripts link. check out the bluray to profile 8.1 one.

MODE.P7 ----> MODE.1 ----> Workflow.1
then use tsmuxer nightly to mux the output file with audio. you can edit the bat file with notepad so tsmuxer popup at the end of the process
just make sure there is no pgs sub or lossless audio pre-selected at playback. You can use external SRT subs
Image

You can also use the mp4_muxer mode but it will take much longer time to process and some files may stutter on your C1
MODE.M4 ----> MODE.1 ----> Workflow.3
Sorry for my English.
G5 / AM6B+ / Denon 7.2.4
DoVi_Scripts
DoVi Playback Devices
redoine322
Posts: 12
Joined: Fri Apr 15, 2022 2:16 am

Re: Dolby Vision now possible through MP4 Mux.

Post by redoine322 »

RESET_9999 wrote: Sat Apr 16, 2022 1:13 pm
redoine322 wrote: Sat Apr 16, 2022 2:26 am Could you plz explain to Me how to get an mp4 or mkv file to work on my LG C1 with DV please using your script From BDMV thanks for your hard Work Sir
Theres tutorial video in my scripts link. check out the bluray to profile 8.1 one.

MODE.P7 ----> MODE.1 ----> Workflow.1
then use tsmuxer nightly to mux the output file with audio. you can edit the bat file with notepad so tsmuxer popup at the end of the process
just make sure there is no pgs sub or lossless audio pre-selected at playback. You can use external SRT subs
Image

You can also use the mp4_muxer mode but it will take much longer time to process and some files may stutter on your C1
MODE.M4 ----> MODE.1 ----> Workflow.3
Thank you for the Reply i did Try that but i got an error here is an Img ( there is plenty of space)
Attachments
1212.jpg
1212.jpg (116.5 KiB) Viewed 21631 times
RESET_9999
Posts: 2421
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

redoine322 wrote: Sat Apr 16, 2022 2:54 pm i did Try that but i got an error here is an Img ( there is plenty of space)
yeah DGdemux wont work if you place the folder on your C:\ drive... do you have another drive you can put the folder on?
Sorry for my English.
G5 / AM6B+ / Denon 7.2.4
DoVi_Scripts
DoVi Playback Devices
redoine322
Posts: 12
Joined: Fri Apr 15, 2022 2:16 am

Re: Dolby Vision now possible through MP4 Mux.

Post by redoine322 »

RESET_9999 wrote: Sat Apr 16, 2022 10:05 pm
redoine322 wrote: Sat Apr 16, 2022 2:54 pm i did Try that but i got an error here is an Img ( there is plenty of space)
yeah DGdemux wont work if you place the folder on your C:\ drive... do you have another drive you can put the folder on?
Same Problem i did try it on two different drives
Attachments
1212.jpg
1212.jpg (102.29 KiB) Viewed 19464 times
RESET_9999
Posts: 2421
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

redoine322 wrote: Sat Apr 16, 2022 10:24 pm
try 1.2.1, it should work.
https://drive.google.com/drive/u/0/fold ... L2KFZWTqKr
Sorry for my English.
G5 / AM6B+ / Denon 7.2.4
DoVi_Scripts
DoVi Playback Devices
redoine322
Posts: 12
Joined: Fri Apr 15, 2022 2:16 am

Re: Dolby Vision now possible through MP4 Mux.

Post by redoine322 »

RESET_9999 wrote: Sat Apr 16, 2022 10:28 pm
redoine322 wrote: Sat Apr 16, 2022 10:24 pm
try 1.2.1, it should work.
https://drive.google.com/drive/u/0/fold ... L2KFZWTqKr
thank you So much it working Great Now here is the result the Dv is triggered but No audio on the Tv it says "this video does not support audio" .

Code: Select all

General
ID                                       : 1 (0x1)
Format                                   : MPEG-TS
File size                                : 55.6 GiB
Duration                                 : 2 h 23 min
Overall bit rate mode                    : Variable
Overall bit rate                         : 55.5 Mb/s
Maximum Overall bit rate                 : 35.5 Mb/s

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.08.06, BL+RPU, HDR10 compatible / SMPTE ST 2086, HDR10 compatible
Codec ID                                 : 36
Duration                                 : 2 h 23 min
Bit rate                                 : 51.2 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.258
Stream size                              : 51.3 GiB (92%)
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              : 1506 cd/m2
Maximum Frame-Average Light Level        : 459 cd/m2

Audio
ID                                       : 4352 (0x1100)
Menu ID                                  : 1 (0x1)
Format                                   : E-AC-3
Format/Info                              : Enhanced AC-3
Commercial name                          : Dolby Digital Plus
Codec ID                                 : 132
Duration                                 : 2 h 23 min
Bit rate mode                            : Constant
Bit rate                                 : 1 536 kb/s
Channel(s)                               : 6 channels
Channel layout                           : L R C LFE Ls Rs
Sampling rate                            : 48.0 kHz
Frame rate                               : 62.500 FPS (768 SPF)
Compression mode                         : Lossy
Stream size                              : 1.54 GiB (3%)
Language                                 : English
Service kind                             : Complete Main
viktrcoim
Posts: 1
Joined: Mon Apr 18, 2022 3:27 am

Re: Dolby Vision now possible through MP4 Mux.

Post by viktrcoim »

Hi guys, Im kinda new to all this so here it goes:

I have some 4K files in p07 that I would love to convert to p8.1 or p5. I saw several messages here but Im kinda lost with this coding and muxes. I was able to instal ffmpeg in my mac (m1) but now i dont know what to do to convert a file. do i need to install anything else? Is there a tutorial for this?
RESET_9999
Posts: 2421
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

I took a look at the Dolby Vision metadata of The Batman itunes/movies anywhere/HBO and the differences are quite surprising. Itunes RPU is much larger even without L5 and L4. @Quietvoid, any idea why?
Also, why the hell are they all using the old Dolby vision algorithm CMV2.9... CMV4.0 is supposed to be superior, especially for the SDR trim passes. They can do the grade in 4.0 and then export in 2.9 for compatibility reasons though. Another interesting fact about HBO and MA, the colors are not the same(at least for HDR10) but they have the same L1/L2 DV metadata. https://slow.pics/c/axsHELui

Image

The scene around frame 10625
iTunes:
- missing L5
- No L4
- No L6 maxcll/fall
- RPU is considerably larger than the other two
- no full range flag in the HEVC encode

Code: Select all

    "cmv29_metadata": {
      "num_ext_blocks": 5,
      "ext_metadata_blocks": [
        {
          "Level1": {
            "min_pq": 12,
            "max_pq": 2081,
            "avg_pq": 1229
          }
        },
        {
          "Level2": {
            "target_max_pq": 2081,
            "trim_slope": 650,
            "trim_offset": 2052,
            "trim_power": 1227,
            "trim_chroma_weight": 2048,
            "trim_saturation_gain": 2048,
            "ms_weight": 2048
          }
        },
        {
          "Level2": {
            "target_max_pq": 2851,
            "trim_slope": 1787,
            "trim_offset": 2071,
            "trim_power": 1955,
            "trim_chroma_weight": 2048,
            "trim_saturation_gain": 2048,
            "ms_weight": 2048
          }
        },
        {
          "Level2": {
            "target_max_pq": 3079,
            "trim_slope": 2048,
            "trim_offset": 2049,
            "trim_power": 2048,
            "trim_chroma_weight": 2048,
            "trim_saturation_gain": 2048,
            "ms_weight": 2048
          }
        },
        {
          "Level6": {
            "max_display_mastering_luminance": 1000,
            "min_display_mastering_luminance": 1,
            "max_content_light_level": 0,
            "max_frame_average_light_level": 0
MA :
- incorrect L5
- L4 present
- No L6 maxcll/fall

Code: Select all

    "cmv29_metadata": {
      "num_ext_blocks": 7,
      "ext_metadata_blocks": [
        {
          "Level1": {
            "min_pq": 12,
            "max_pq": 2081,
            "avg_pq": 1229
          }
        },
        {
          "Level2": {
            "target_max_pq": 2081,
            "trim_slope": 650,
            "trim_offset": 2052,
            "trim_power": 1227,
            "trim_chroma_weight": 2048,
            "trim_saturation_gain": 2048,
            "ms_weight": 2048
          }
        },
        {
          "Level2": {
            "target_max_pq": 2851,
            "trim_slope": 1787,
            "trim_offset": 2071,
            "trim_power": 1955,
            "trim_chroma_weight": 2048,
            "trim_saturation_gain": 2048,
            "ms_weight": 2048
          }
        },
        {
          "Level2": {
            "target_max_pq": 3079,
            "trim_slope": 2048,
            "trim_offset": 2049,
            "trim_power": 2048,
            "trim_chroma_weight": 2048,
            "trim_saturation_gain": 2048,
            "ms_weight": 2048
          }
        },
        {
          "Level4": {
            "anchor_pq": 220,
            "anchor_power": 180
          }
        },
        {
          "Level5": {
            "active_area_left_offset": 0,
            "active_area_right_offset": 0,
            "active_area_top_offset": 0,
            "active_area_bottom_offset": 0
          }
        },
        {
          "Level6": {
            "max_display_mastering_luminance": 1000,
            "min_display_mastering_luminance": 1,
            "max_content_light_level": 0,
            "max_frame_average_light_level": 0
HBO:
- proper L5
- L4 present
- L6 complete

Code: Select all

    "cmv29_metadata": {
      "num_ext_blocks": 7,
      "ext_metadata_blocks": [
        {
          "Level1": {
            "min_pq": 12,
            "max_pq": 2081,
            "avg_pq": 1229
          }
        },
        {
          "Level2": {
            "target_max_pq": 2081,
            "trim_slope": 650,
            "trim_offset": 2052,
            "trim_power": 1227,
            "trim_chroma_weight": 2048,
            "trim_saturation_gain": 2048,
            "ms_weight": 2048
          }
        },
        {
          "Level2": {
            "target_max_pq": 2851,
            "trim_slope": 1787,
            "trim_offset": 2071,
            "trim_power": 1955,
            "trim_chroma_weight": 2048,
            "trim_saturation_gain": 2048,
            "ms_weight": 2048
          }
        },
        {
          "Level2": {
            "target_max_pq": 3079,
            "trim_slope": 2048,
            "trim_offset": 2049,
            "trim_power": 2048,
            "trim_chroma_weight": 2048,
            "trim_saturation_gain": 2048,
            "ms_weight": 2048
          }
        },
        {
          "Level4": {
            "anchor_pq": 218,
            "anchor_power": 178
          }
        },
        {
          "Level5": {
            "active_area_left_offset": 0,
            "active_area_right_offset": 0,
            "active_area_top_offset": 275,
            "active_area_bottom_offset": 276
          }
        },
        {
          "Level6": {
            "max_display_mastering_luminance": 1000,
            "min_display_mastering_luminance": 1,
            "max_content_light_level": 413,
            "max_frame_average_light_level": 65
          }
        }
Sorry for my English.
G5 / AM6B+ / Denon 7.2.4
DoVi_Scripts
DoVi Playback Devices
RESET_9999
Posts: 2421
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

mmmm Last night I watched half of the batman itunes DV WEB-DL and everything was fine.
Tonight I resumed the movie with the MA DV WEB-DL which as stated just above, has incorrect L5 metadata. It is set to 0 when it should be 276,276 (or 275,276 like hbo).

I noticed right away the black bars were not perfectly black like they were last night so I demuxed the rpu, edited L5 properly, injected it back, and voila, black bars are black again.
So this shows how important doing L5 properly is when doing the hybrid remux, especially if you play the movies on your TV internal player.

*** the raised black bars will only happen if a scene has L1 min_pq higher than 0.
*** My TV is in a projector room, so complete black velvet everywhere which makes this kind of issue easy to spot. I would probably never noticed that in a semi-bright room.
Sorry for my English.
G5 / AM6B+ / Denon 7.2.4
DoVi_Scripts
DoVi Playback Devices
drew_nickel
Posts: 4
Joined: Mon Apr 18, 2022 4:19 am

Re: Dolby Vision now possible through MP4 Mux.

Post by drew_nickel »

Hey whats up @RESET_9999

I've been lurking on here for a while now. I'm pretty much a novice to DV ripping/encoding stuff... With Yusesope's and your help I recently was successful in ripping my first DV movie (.m2ts file) file to DV profile 8 mp4. (So, that I can watch on my LG CX). Thanks!

Since then, Ive been examining a bunch different random DV movies and shows.

So, right before I saw this post, I myself noticed the different sizes of EL/RPU data. I've attached a screenshot of my file sizes. The 1st DV source that was leaked last night had an even larger sized EL/RPU data than the iTunes version. I'm not quite sure where that source came from though. You put down "iTunes, HBOmax, and MA" as the 3 sources you have. Forgive, my ignorance... but what source is "MA"?

Also, what do you make of HBOmax version being a few gigabytes larger in size? What do you make of that? Would that be the best version to watch?
I've attached a screenshot to show you what I got.
If anything that I'm saying is wrong or sound funny please dont hesitate to correct me :D
Attachments
layersizes.jpg
layersizes.jpg (93.79 KiB) Viewed 21700 times
quietvoid
Posts: 377
Joined: Sun Apr 19, 2020 4:15 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by quietvoid »

RESET_9999 wrote: Mon Apr 18, 2022 9:54 pmItunes RPU is much larger even without L5 and L4. @Quietvoid, any idea why?
Don't know, the info you included is only part of the metadata.
Post Reply