Dolby Vision now possible through MP4 Mux.

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

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

no problem on the x700 for the single track FEL or MEL profile 4
FEL:
https://screenshotcomparison.com/comparison/6715
https://screenshotcomparison.com/comparison/6727
MEL:
https://screenshotcomparison.com/comparison/6724

I'm not capturing any difference between FEL and MEL on the Shield suggesting it's ''maybe'' treating all the DV files as MEL.
London Has Fallen: https://screenshotcomparison.com/comparison/6723
Spears and Munsil: https://screenshotcomparison.com/comparison/6721
lexyz
Posts: 120
Joined: Fri May 08, 2020 5:32 am

Re: Dolby Vision now possible through MP4 Mux.

Post by lexyz »

RESET_9999 wrote:
Tue Sep 29, 2020 11:42 pm
I'm not capturing any difference between FEL and MEL on the Shield suggesting it's ''maybe'' treating all the DV files as MEL.
Spears and Munsil: https://screenshotcomparison.com/comparison/6721
Please check "tulip field" scene :)
Bravia XF90, Shield TV Pro'19, UBP-X700
ghostshadow
Posts: 55
Joined: Sun Sep 13, 2020 10:25 am

Re: Dolby Vision now possible through MP4 Mux.

Post by ghostshadow »

yusesope wrote:
Sat Sep 26, 2020 8:21 am

ghostshadow wrote:
Thu Sep 24, 2020 5:39 pm
Good evening yusesope, how do you get the RPU out of the EL? it is to be able to encode afterwards in x265
thank you
x265 does not need a parser for RPU. It simply accepts a file containing the RPUs (I presume sorted according to each access unit present in the Base Layer). Look HERE.

What's the problem? If you proceed with an encoding of the Base Layer then you must also change the parameters of the RPU. At the moment, however, we do not know the algorithm that allows to generate new RPUs!
Hello yusesope.
Well, I want to encode my uhd blu-ray in x265
It is Dual Track Dual Layer :

Code: Select all

Général
ID                                       : 0 (0x0)
Nom complet                              : MIDWAY\FullDisc\MIDWAY\BDMV\STREAM\00002.m2ts
Format                                   : BDAV
Format/Info                              : Blu-ray Video
Taille du fichier                        : 81,2 Gio
Durée                                    : 2 h 18 min
Type de débit global                     : Variable
Débit global moyen                       : 84,0 Mb/s
Débit global maximum                     : 109 Mb/s

Vidéo #1
ID                                       : 4113 (0x1011)
ID de menu                               : 1 (0x1)
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Profil du format                         : Main 10@L5.1@High
HDR format                               : SMPTE ST 2086, HDR10 compatible
Identifiant du codec                     : 36
Durée                                    : 2 h 18 min
Largeur                                  : 3 840 pixels
Hauteur                                  : 2 160 pixels
Format à l'écran                         : 16/9
Images par seconde                       : 23,976 (24000/1001) Im/s
Espace de couleurs                       : YUV
Sous-échantillonnage de la chrominance   : 4:2:0 (Type 2)
Profondeur des couleurs                  : 10 bits
Gamme de couleurs                        : Limited
Coordonnées de chromaticité              : BT.2020
Caractéristiques du transfert            : PQ
Coefficients de la matrice               : 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              : 570 cd/m2
Maximum Frame-Average Light Level        : 1504 cd/m2

Vidéo #2
ID                                       : 4117 (0x1015)
ID de menu                               : 1 (0x1)
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Profil du format                         : Main 10@L5.1@High
HDR format                               : SMPTE ST 2086, HDR10 compatible
Identifiant du codec                     : 36
Durée                                    : 2 h 18 min
Largeur                                  : 1 920 pixels
Hauteur                                  : 1 080 pixels
Format à l'écran                         : 16/9
Images par seconde                       : 23,976 (24000/1001) Im/s
Espace de couleurs                       : YUV
Sous-échantillonnage de la chrominance   : 4:2:0 (Type 2)
Profondeur des couleurs                  : 10 bits
Gamme de couleurs                        : Limited
Coordonnées de chromaticité              : BT.2020
Caractéristiques du transfert            : PQ
Coefficients de la matrice               : BT.2020 non-constant
Mastering display color primaries        : Display P3
Mastering display luminance              : min: 0.0001 cd/m2, max: 1000 cd/m2

Audio #1
ID                                       : 4352 (0x1100)
ID de menu                               : 1 (0x1)
Format                                   : DTS XLL
Format/Info                              : Digital Theater Systems
Nom commercial                           : DTS-HD Master Audio
Type de muxing                           : Stream extension
Identifiant du codec                     : 134
Durée                                    : 2 h 18 min
Type de débit                            : Variable
Canaux                                   : 8 canaux
Channel layout                           : C L R LFE Lb Rb Lss Rss
Echantillonnage                          : 48,0 kHz
Images par seconde                       : 93,750 Im/s (512 SPF)
Profondeur des couleurs                  : 24 bits
Mode de compression                      : Sans perte
Délai par rapport Vidéo                  : 6s 6 ms

Audio #2
ID                                       : 4353 (0x1101)
ID de menu                               : 1 (0x1)
Format                                   : DTS XLL
Format/Info                              : Digital Theater Systems
Nom commercial                           : DTS-HD Master Audio
Type de muxing                           : Stream extension
Identifiant du codec                     : 134
Durée                                    : 2 h 18 min
Type de débit                            : Variable
Canaux                                   : 8 canaux
Channel layout                           : C L R LFE Lb Rb Lss Rss
Echantillonnage                          : 48,0 kHz
Images par seconde                       : 93,750 Im/s (512 SPF)
Profondeur des couleurs                  : 24 bits
Mode de compression                      : Sans perte
Délai par rapport Vidéo                  : 6s 6 ms

Audio #3
ID                                       : 4354 (0x1102)
ID de menu                               : 1 (0x1)
Format                                   : DTS
Format/Info                              : Digital Theater Systems
Identifiant du codec                     : 130
Durée                                    : 2 h 18 min
Type de débit                            : Constant
Débit                                    : 768 kb/s
Canaux                                   : 2 canaux
Channel layout                           : Lt Rt
Echantillonnage                          : 48,0 kHz
Images par seconde                       : 93,750 Im/s (512 SPF)
Profondeur des couleurs                  : 16 bits
Mode de compression                      : Avec perte
Délai par rapport Vidéo                  : 6s 6 ms
Taille du flux                           : 759 Mio (1%)

Audio #4
ID                                       : 4355 (0x1103)
ID de menu                               : 1 (0x1)
Format                                   : DTS
Format/Info                              : Digital Theater Systems
Identifiant du codec                     : 130
Durée                                    : 2 h 18 min
Type de débit                            : Constant
Débit                                    : 255 kb/s
Canaux                                   : 2 canaux
Channel layout                           : Lt Rt
Echantillonnage                          : 48,0 kHz
Images par seconde                       : 93,750 Im/s (512 SPF)
Profondeur des couleurs                  : 16 bits
Mode de compression                      : Avec perte
Délai par rapport Vidéo                  : 6s 6 ms
Taille du flux                           : 252 Mio (0%)

Texte #1
ID                                       : 4768 (0x12A0)
ID de menu                               : 1 (0x1)
Format                                   : PGS
Identifiant du codec                     : 144

Texte #2
ID                                       : 4769 (0x12A1)
ID de menu                               : 1 (0x1)
Format                                   : PGS
Identifiant du codec                     : 144

Texte #3
ID                                       : 4770 (0x12A2)
ID de menu                               : 1 (0x1)
Format                                   : PGS
Identifiant du codec                     : 144
Délai par rapport Vidéo                  : 8s 133 ms

Image
So if I understood everything correctly :

I am using FFMPEG to extract the base layer :
ffmpeg -i path\to\the\file.m2ts -map 0:0 -c copy path\to\BL.hevc

I am using FFMPEG to extract the EL layer :
ffmpeg -i path\to\the\file.m2ts -map 0:1 -c copy path\to\EL.hevc

Is it this base layer (BL.hevc) that I encode with x265 ?
So I get BL.x265.hevc

After I mux with tsMuxeR EL.hevc and BL.hevc + path \\ to \\ the \\ file.m2ts remove duplicate video tracks and output to ISO
I use MakeMKV to convert iso to MKV

thank you in advance
yusesope
Posts: 221
Joined: Sun Jul 28, 2019 3:34 am

Re: Dolby Vision now possible through MP4 Mux.

Post by yusesope »

lexyz wrote:
Tue Sep 29, 2020 4:09 pm
Is it ok to demux m2ts by tsmuxer to avoid ffmpeg?
You can choose the program you prefer. The beauty of the command line is that, in addition to providing you great flexibility, it allows you to concatenate the various programs (in windows just use "&&", Google is your friend if you want to learn more) without waiting for the first one to finish and then start the second, etc., etc.

Code: Select all

ffmpeg && mytool && tsmuxer
In the folder I've put the "SHOW_HELP" file in the hope that someone will open it and start using the command line.

Tomas wrote:
Tue Sep 29, 2020 8:07 pm
Please, why is it throwing me such a bug in DEMUX.
It stops at the beginning. Thank you very much.
https://ibb.co/FqPw2jw
Please, list the steps you took before getting to use "DEMUX.bat"
Decidueye wrote:
Tue Sep 29, 2020 8:33 pm
Links expired. Any new links for this? Will be trying this method now that I got the first step working!
I've already solved that problem: you don't need those libraries anymore.

RESET_9999 wrote:
Tue Sep 29, 2020 11:42 pm
no problem on the x700 for the single track FEL or MEL profile 4
.........................
I'm not capturing any difference between FEL and MEL on the Shield suggesting it's ''maybe'' treating all the DV files as MEL.
I'm on my cell phone at the moment and I honestly don't see any difference between the files tested on the Shield and those tested on the X700 (I'm referring to London Has Fallen).
What do you gentlemen think about it?
Maybe it's not the best material for this kind of comparison?

ghostshadow wrote:
Wed Sep 30, 2020 7:47 am
Well, I want to encode my uhd blu-ray in x265
All seems right (in TsMuxeR you have to load BL.x265.hevc and not BL.hevc).
However, I repeat that the encoding of the Base Layer (BL) involves a complete reorganization of its internal structure.
The RPUs present in EL are no longer good.
From my point of view, the procedure is completely wrong!
Feel free to experiment...
Tomas
Posts: 46
Joined: Tue Aug 11, 2020 7:47 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Tomas »

Tomas wrote:
Tue Sep 29, 2020 8:07 pm
Please, why is it throwing me such a bug in DEMUX.
It stops at the beginning. Thank you very much.
https://ibb.co/FqPw2jw
Please, list the steps you took before getting to use "DEMUX.bat"


I extracted M2ts files. Then I inserted the HEVC files into MUX_AND_CONVERT_TO_MEL.bat which went well and I have the file. I open DEMUX.bat, insert the file, the program starts and stops for a while as you can see on the screen.
ghostshadow
Posts: 55
Joined: Sun Sep 13, 2020 10:25 am

Re: Dolby Vision now possible through MP4 Mux.

Post by ghostshadow »

yusesope wrote:
Wed Sep 30, 2020 8:48 am


ghostshadow wrote:
Wed Sep 30, 2020 7:47 am
Well, I want to encode my uhd blu-ray in x265
All seems right (in TsMuxeR you have to load BL.x265.hevc and not BL.hevc).
However, I repeat that the encoding of the Base Layer (BL) involves a complete reorganization of its internal structure.
The RPUs present in EL are no longer good.
From my point of view, the procedure is completely wrong!
Feel free to experiment...
ok I understand, well I think.
Donc et si je mux avec votre procédure avant :

Code: Select all

Extract the base layer and the enhancement layer

Code: Select all

ffmpeg -i path\to\the\file.m2ts  -map 0:0 -c copy path\to\BL.hevc
ffmpeg -i path\to\the\file.m2ts  -map 0:1 -c copy path\to\EL.hevc

Using my tool, double click on the MUX_AND_CONVERT_TO_MEL.bat file and follow the instructions on the screen.
You will get a BL_EL_RPU.hevc file
And I encode the BL_EL_RPU.hevc. So logically the complete reorganization of its internal structure will be done on the BL and EL not?

Or you have to encode the BL.hevc and the EL.hevc separately.
I ask you what you think of it, because yes I am testing but if I can be pointed in the right direction I would save time, because the encoding takes me 32 hours per tests in x265. I prefer not to cut pieces and do the entire coding of the film to be sure not to distort the results.

Then I have another lead to extract the RPU from a dolby vision UHD. I was able to make a dolby vision RPU Trim file, in xml, but I crashed somewhere in the software because apparently it extracted me only the metadata of an image, I had to select an image in the Trim.
userr
Posts: 63
Joined: Sat Apr 04, 2020 7:10 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by userr »

RESET_9999 wrote:
Tue Sep 29, 2020 11:42 pm
no problem on the x700 for the single track FEL or MEL profile 4
FEL:
https://screenshotcomparison.com/comparison/6715
https://screenshotcomparison.com/comparison/6727
MEL:
https://screenshotcomparison.com/comparison/6724

I'm not capturing any difference between FEL and MEL on the Shield suggesting it's ''maybe'' treating all the DV files as MEL.
London Has Fallen: https://screenshotcomparison.com/comparison/6723
Spears and Munsil: https://screenshotcomparison.com/comparison/6721
Thanks for excellent tests as usual.

Do we know if Zidoo Z9X can differentiate between MEL and FEL?
userr
Posts: 63
Joined: Sat Apr 04, 2020 7:10 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by userr »

Also, before i order one, can the Zidoo z9x play the following?:

- Profile7 DualLayer .ts .mp4 or .mkv?
- Profile 4/6/7 SingleLayer (made with bl_el_rpu_builder or ripped with latest mkv) .ts mp4 or .mkv?
Tomas
Posts: 46
Joined: Tue Aug 11, 2020 7:47 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Tomas »

userr wrote:
Wed Sep 30, 2020 11:51 am
RESET_9999 wrote:
Tue Sep 29, 2020 11:42 pm
no problem on the x700 for the single track FEL or MEL profile 4
FEL:
https://screenshotcomparison.com/comparison/6715
https://screenshotcomparison.com/comparison/6727
MEL:
https://screenshotcomparison.com/comparison/6724

I'm not capturing any difference between FEL and MEL on the Shield suggesting it's ''maybe'' treating all the DV files as MEL.
London Has Fallen: https://screenshotcomparison.com/comparison/6723
Spears and Munsil: https://screenshotcomparison.com/comparison/6721
Thanks for excellent tests as usual.

Do we know if Zidoo Z9X can differentiate between MEL and FEL?
While I was releasing everything on Zidoo z9x it played for me. No problem to try.
Tomas
Posts: 46
Joined: Tue Aug 11, 2020 7:47 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Tomas »

userr wrote:
Wed Sep 30, 2020 12:01 pm
Also, before i order one, can the Zidoo z9x play the following?:

- Profile7 DualLayer .ts .mp4 or .mkv?
- Profile 4/6/7 SingleLayer (made with bl_el_rpu_builder or ripped with latest mkv) .ts mp4 or .mkv?
While I was releasing everything on Zidoo z9x it played for me. No problem to try.
iamTa
Posts: 13
Joined: Sat Sep 19, 2020 10:13 am

Re: Dolby Vision now possible through MP4 Mux.

Post by iamTa »

yusesope wrote:
Wed Sep 30, 2020 8:48 am
In the folder I've put the "SHOW_HELP" file in the hope that someone will open it and start using the command line.
Ahhh good idea :)

I created a batch file to turn an M2TS into the required components (for remuxing into an ISO/MKV with HD audio) and load them up in txMuxerGUI:

Code: Select all

@echo off

SET FFMPEG="D:\FEL2MEL\ffmpeg.exe"
SET PYTHON="D:\FEL2MEL\python-3.7.6.amd64\python.exe"
SET TOOL="D:\FEL2MEL\src\app.py"
SET TMP=D:\FEL2MEL\
SET TSMGUI="D:\FEL2MEL\tsMuxeR\tsMuxerGUI.exe"

SET /P M2TS="Drag and drop M2TS file and press enter "

%FFMPEG% -i "%M2TS%" -map 0:0 -c copy "%TMP%BL.hevc" -map 0:1 -c copy "%TMP%EL.hevc" -map 0:2 && %PYTHON% %TOOL% -mux -fel_to_mel -bl "%TMP%BL.hevc" -el "%TMP%EL.hevc" -of "%TMP%BL_EL_RPU.hevc" && del "%TMP%BL.hevc" "%TMP%EL.hevc" && %PYTHON% %TOOL% -demux -if "%TMP%BL_EL_RPU.hevc" -bl_out "%TMP%BL.hevc" -el_out "%TMP%EL_RPU.hevc" && del "%TMP%BL_EL_RPU.hevc" && %TSMGUI% "%TMP%BL.hevc" "%TMP%EL_RPU.hevc" "%M2TS%"  && del "%TMP%BL.hevc" "%TMP%EL_RPU.hevc"
Unfortunately it wasn't possible to automate the entire tsMuxeR process as each M2TS contains different track IDs for audio, PGS etc.

If anyone would like to use the script just be sure to edit the top five variables to match your file locations and folder structure.

I also edited the second to last line in the app.py python script to remove the press any key prompt:

Code: Select all

if __name__ == '__main__':
	main()
	end = print("Completed!")
DaMacFunkin
Posts: 311
Joined: Tue Oct 30, 2018 4:17 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by DaMacFunkin »

Tomas wrote:
Wed Sep 30, 2020 3:59 pm
userr wrote:
Wed Sep 30, 2020 12:01 pm
Also, before i order one, can the Zidoo z9x play the following?:

- Profile7 DualLayer .ts .mp4 or .mkv?
- Profile 4/6/7 SingleLayer (made with bl_el_rpu_builder or ripped with latest mkv) .ts mp4 or .mkv?
While I was releasing everything on Zidoo z9x it played for me. No problem to try.
It wont play Profile 7 Dual layer in Dolby Vision, only HDR10.
Do you have output set to VS10 or LLDV?
mike admin
Posts: 4075
Joined: Wed Nov 26, 2008 2:26 am
Contact:

Re: Dolby Vision now possible through MP4 Mux.

Post by mike admin »

yusesope wrote:
Sat Sep 26, 2020 11:28 am
60 sec sample comes from the Spears & Munsil UHD-BD. It is a file with DV MEL but MakeMKV does not recognize it as such and generates a DV-free mkv.
This is FEL file, not MEL. The 1.15.3 recognizes it as such :)
RESET_9999
Posts: 2094
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

mike admin wrote:
Wed Sep 30, 2020 6:13 pm
yusesope wrote:
Sat Sep 26, 2020 11:28 am
60 sec sample comes from the Spears & Munsil UHD-BD. It is a file with DV MEL but MakeMKV does not recognize it as such and generates a DV-free mkv.
This is FEL file, not MEL. The 1.15.3 recognizes it as such :)
are you sure? because it does look like a MEL file and BDinfo sees it as MEL.

Disc Size: 4,968,806,400 bytes
Protection: AACS2
Extras: Ultra HD
BDInfo: 0.7.5.6

PLAYLIST REPORT:

Name: 00000.MPLS
Length: 0:07:45.381
Size: 4,967,024,640 bytes
Total Bitrate: 85.38 Mbps

VIDEO:

Codec Bitrate Description
----- ------- -----------
MPEG-H HEVC Video 75391 kbps 2160p / 23.976 fps / 16:9 / Main 10 @ Level 5.1 @ High / 4:2:0 / 10 bits / 10000nits / HDR10 / BT.2020
* MPEG-H HEVC Video 2124 kbps (2.74%) 1080p / 23.976 fps / 16:9 / Main 10 @ Level 5.1 @ High / 4:2:0 / 10 bits / 10000nits / Dolby Vision MEL / BT.2020

AUDIO:

Codec Language Bitrate Description
----- -------- ------- -----------
Dolby TrueHD Audio English 3537 kbps 5.1 / 48 kHz / 3537 kbps / 16-bit (AC3 Core: 5.1 / 48 kHz / 640 kbps)
Tomas
Posts: 46
Joined: Tue Aug 11, 2020 7:47 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Tomas »

DaMacFunkin wrote:
Wed Sep 30, 2020 5:35 pm
Tomas wrote:
Wed Sep 30, 2020 3:59 pm
userr wrote:
Wed Sep 30, 2020 12:01 pm
Also, before i order one, can the Zidoo z9x play the following?:

- Profile7 DualLayer .ts .mp4 or .mkv?
- Profile 4/6/7 SingleLayer (made with bl_el_rpu_builder or ripped with latest mkv) .ts mp4 or .mkv?
While I was releasing everything on Zidoo z9x it played for me. No problem to try.
It wont play Profile 7 Dual layer in Dolby Vision, only HDR10.
Do you have output set to VS10 or LLDV?
My output is set to AUTO. Dolby Vision MKV MEL plays it nicely. MKV FEE will not play seknes it. FEL in .ts or .mp4 plays it as HDR or HDR 10
Post Reply