Dolby Vision now possible through MP4 Mux.

Please post here for issues related to UHD discs
yusesope
Posts: 221
Joined: Sun Jul 28, 2019 3:34 am

Re: Dolby Vision now possible through MP4 Mux.

Post by yusesope »

blenky wrote:
Fri Oct 16, 2020 7:02 pm
@yusesope I followed your steps in the post above to the letter.
.........................................
However the resultant files play back in HDR10 on my Zidoo Z9X.
Thanks for trying!
It amazes me that it is even recognized as a valid file.
Unfortunately a few bytes are lost along the way during the process and I really don't understand what happens to them ...
I will continue to work on it ....

quietvoid wrote:
Sun Oct 11, 2020 1:49 pm
Maybe a good starting point is to just accept a MKV (in addition to raw that exists already) and be able to output the raw converted HEVC file. That on its own would save a lot of time (demuxing MKV, demuxing BL/EL, converting/remuxing 8.1), and might be simpler to do.
In the meantime I have further updated the test version (v0.0.4 BETA in the usual POST).

MUX_EXPERIMENTAL.bat accepts as input a DTDL file (ex: m2ts) and returns a HEVC stream (saving you a lot of time).
I left the instructions inside (right click -> edit): modify it according to your needs.
The only precaution: -mode is become, only in this case, -mode_exp

If you want to try it, I kindly ask you to import the HEVC file into MkvToolNix, add the audio tracks, subtitles, etc... and then, in the "Output" tab, fill in the "File title" box by entering the title you want followed by 73 underscores in the case of a profile 7 file or by 37 underscores in the case of a profile 8.

Code: Select all

#profile 7
Movie Title_________________________________________________________________________

#profile 8
Movie Title_____________________________________

After generating the file, use my "MKV_Patcher.bat" (takes you 0.1 seconds).
yusesope wrote:
Fri Oct 16, 2020 1:37 pm
Open the "MKV_Patcher.bat" file, drag and drop the MKV file obtained in step ONE, press ENTER and, when prompted, enter 7 if you are creating a FEL\MEL file or 8 in the case of an 8.1 profile file. Other values ​​are not allowed!
The process will become automatic in the future: it will understand what type of file you created in step ONE and will behave accordingly!
Is the patched file played with Dolby Vision?
Thank you.


For those using the command line, pay attention to the switches (take a look at the help).
For those who use linux, remember to give the correct permissions to the version of ffmpeg that I have attached!

Code: Select all

chmod +x src/FFmpeg/ffmpeg_lin_x64
The script require also psutil

Code: Select all

python3 -m pip install psutil
Manixx2020beyound
Posts: 127
Joined: Thu Oct 08, 2020 5:19 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Manixx2020beyound »

blenky wrote:
Fri Oct 16, 2020 7:02 pm
@yusesope I followed your steps in the post above to the letter.

I ran through the steps twice to create 8.1 profile and the second created MEL from FEL.

The first I added '-mode 2' into first script and type 8 in final step.

The second I added fel_to_mel to first script and typed 7 in final step

However the resultant files play back in HDR10 on my Zidoo Z9X.


Media info of 8.1 profile file below

Code: Select all

General
Unique ID                                : 85570055583739472865028318079082573192 (0x406031781F223E48541393937F542D88)
Complete name                            : Y:\1917.mkv
Format                                   : Matroska
Format version                           : Version 4
File size                                : 61.6 GiB
Duration                                 : 1 h 58 min
Overall bit rate mode                    : Variable
Overall bit rate                         : 74.1 Mb/s
Movie name                               : 1917______________________________________________________________________________________________________
Writing application                      : Lavf58.45.100
Writing library                          : Lavf58.45.100
ErrorDetectionType                       : Per level 1

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.08.06, BL+RPU, HDR10 compatible / SMPTE ST 2094 App 4, Version 1, HDR10+ Profile B compatible
Codec ID                                 : V_MPEGH/ISO/HEVC
Duration                                 : 1 h 58 min
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
Default                                  : Yes
Forced                                   : No
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        : 168 cd/m2
SEI_rbsp_stop_one_bit                    : Missing

Audio
ID                                       : 2
Format                                   : MLP FBA 16-ch
Format/Info                              : Meridian Lossless Packing FBA with 16-channel presentation
Commercial name                          : Dolby TrueHD with Dolby Atmos
Codec ID                                 : A_TRUEHD
Duration                                 : 1 h 58 min
Bit rate mode                            : Variable
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                               : 1 200.000 FPS (40 SPF)
Bit depth                                : 24 bits
Compression mode                         : Lossless
Default                                  : Yes
Forced                                   : No
Number of dynamic objects                : 11
Bed channel count                        : 1 channel
Bed channel configuration                : LFE
Media info of FEL to MEL

Code: Select all

General
Unique ID                                : 319733252171936484108131698166622884465 (0xF08A626BCD421651424781590BD09271)
Complete name                            : D:\Newsbin\1917.mkv
Format                                   : Matroska
Format version                           : Version 4
File size                                : 67.5 GiB
Duration                                 : 1 h 58 min
Overall bit rate mode                    : Variable
Overall bit rate                         : 81.3 Mb/s
Movie name                               : 1917__________________________________________________________________
Writing application                      : Lavf58.45.100
Writing library                          : Lavf58.45.100
ErrorDetectionType                       : Per level 1

Video
ID                                       : 1
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Format profile                           : Main 10@L5.1@High
HDR format                               : Dolby Vision, Version 1.0, dvhe.07.06, BL+EL+RPU, Blu-ray compatible / SMPTE ST 2094 App 4, Version 1, HDR10+ Profile B compatible
Codec ID                                 : V_MPEGH/ISO/HEVC
Duration                                 : 1 h 58 min
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
Default                                  : Yes
Forced                                   : No
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        : 168 cd/m2

Audio
ID                                       : 2
Format                                   : MLP FBA 16-ch
Format/Info                              : Meridian Lossless Packing FBA with 16-channel presentation
Commercial name                          : Dolby TrueHD with Dolby Atmos
Codec ID                                 : A_TRUEHD
Duration                                 : 1 h 58 min
Bit rate mode                            : Variable
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                               : 1 200.000 FPS (40 SPF)
Bit depth                                : 24 bits
Compression mode                         : Lossless
Default                                  : Yes
Forced                                   : No
Number of dynamic objects                : 11
Bed channel count                        : 1 channel
Bed channel configuration                : LFE

Did u edit hdr10 plus this would only play hdr10/hdr10 plus
I have both uhd hdr10+ & dv tv feed at the same time hdr10/dv tv plays same file in hdr10 only while the other hdr10+/dv tv triggers hdr10 plus
Hdr10plus is the issue here I think.
codeXRes
Posts: 20
Joined: Mon Jan 20, 2020 1:10 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by codeXRes »

The latest Plex Beta is not playing my old Profile 6 TS rips. Profile 4/7 in TS/MKV working though. Any one else noticed this? :roll:
blenky
Posts: 24
Joined: Fri Oct 02, 2020 12:29 am

Re: Dolby Vision now possible through MP4 Mux.

Post by blenky »

Manixx2020beyound wrote:
Sat Oct 17, 2020 12:36 pm
blenky wrote:
Fri Oct 16, 2020 7:02 pm
@yusesope I followed your steps in the post above to the letter.

I ran through the steps twice to create 8.1 profile and the second created MEL from FEL.

The first I added '-mode 2' into first script and type 8 in final step.

The second I added fel_to_mel to first script and typed 7 in final step

However the resultant files play back in HDR10 on my Zidoo Z9X.


Media info of 8.1 profile file below

Code: Select all

General
Unique ID                                : 85570055583739472865028318079082573192 (0x406031781F223E48541393937F542D88)
Complete name                            : Y:\1917.mkv
Format                                   : Matroska
Format version                           : Version 4
File size                                : 61.6 GiB
Duration                                 : 1 h 58 min
Overall bit rate mode                    : Variable
Overall bit rate                         : 74.1 Mb/s
Movie name                               : 1917______________________________________________________________________________________________________
Writing application                      : Lavf58.45.100
Writing library                          : Lavf58.45.100
ErrorDetectionType                       : Per level 1

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.08.06, BL+RPU, HDR10 compatible / SMPTE ST 2094 App 4, Version 1, HDR10+ Profile B compatible
Codec ID                                 : V_MPEGH/ISO/HEVC
Duration                                 : 1 h 58 min
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
Default                                  : Yes
Forced                                   : No
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        : 168 cd/m2
SEI_rbsp_stop_one_bit                    : Missing

Audio
ID                                       : 2
Format                                   : MLP FBA 16-ch
Format/Info                              : Meridian Lossless Packing FBA with 16-channel presentation
Commercial name                          : Dolby TrueHD with Dolby Atmos
Codec ID                                 : A_TRUEHD
Duration                                 : 1 h 58 min
Bit rate mode                            : Variable
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                               : 1 200.000 FPS (40 SPF)
Bit depth                                : 24 bits
Compression mode                         : Lossless
Default                                  : Yes
Forced                                   : No
Number of dynamic objects                : 11
Bed channel count                        : 1 channel
Bed channel configuration                : LFE
Media info of FEL to MEL

Code: Select all

General
Unique ID                                : 319733252171936484108131698166622884465 (0xF08A626BCD421651424781590BD09271)
Complete name                            : D:\Newsbin\1917.mkv
Format                                   : Matroska
Format version                           : Version 4
File size                                : 67.5 GiB
Duration                                 : 1 h 58 min
Overall bit rate mode                    : Variable
Overall bit rate                         : 81.3 Mb/s
Movie name                               : 1917__________________________________________________________________
Writing application                      : Lavf58.45.100
Writing library                          : Lavf58.45.100
ErrorDetectionType                       : Per level 1

Video
ID                                       : 1
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Format profile                           : Main 10@L5.1@High
HDR format                               : Dolby Vision, Version 1.0, dvhe.07.06, BL+EL+RPU, Blu-ray compatible / SMPTE ST 2094 App 4, Version 1, HDR10+ Profile B compatible
Codec ID                                 : V_MPEGH/ISO/HEVC
Duration                                 : 1 h 58 min
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
Default                                  : Yes
Forced                                   : No
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        : 168 cd/m2

Audio
ID                                       : 2
Format                                   : MLP FBA 16-ch
Format/Info                              : Meridian Lossless Packing FBA with 16-channel presentation
Commercial name                          : Dolby TrueHD with Dolby Atmos
Codec ID                                 : A_TRUEHD
Duration                                 : 1 h 58 min
Bit rate mode                            : Variable
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                               : 1 200.000 FPS (40 SPF)
Bit depth                                : 24 bits
Compression mode                         : Lossless
Default                                  : Yes
Forced                                   : No
Number of dynamic objects                : 11
Bed channel count                        : 1 channel
Bed channel configuration                : LFE

Did u edit hdr10 plus this would only play hdr10/hdr10 plus
I have both uhd hdr10+ & dv tv feed at the same time hdr10/dv tv plays same file in hdr10 only while the other hdr10+/dv tv triggers hdr10 plus
Hdr10plus is the issue here I think.
I did not try to remove HDR10+. I will try that and see what happens
jlpsvk
Posts: 50
Joined: Thu Sep 06, 2018 11:33 am

Re: Dolby Vision now possible through MP4 Mux.

Post by jlpsvk »

ok... some shit is happening...

JOKER UHD with MEL...

after "convert to 81" and then demux, EL_RPU is about halfsize... and when I am trying remux again to 8.1, if fails.

Code: Select all

Exception in thread Thread-5:SIS: 0.0%    BL_EL_RPU WRITING: 0.0%    (BL AUs: 516     EL AUs: 1)
Traceback (most recent call last):
  File "c:\ysst\python-3.7.6.amd64\lib\threading.py", line 926, in _bootstrap_inner
    self.run()
  File "src\app.py", line 929, in run
    self.write(access_unit)
  File "src\app.py", line 912, in write
    nalu.data.prepend("0x00000001")
AttributeError: 'int' object has no attribute 'prepend'
BL_ANALYSIS: 0.0%    EL_ANALYSIS: 0.0%    BL_EL_RPU WRITING: 0.0%    (BL AUs: 516     EL AUs: 1)
BL_ANALYSIS: 0.0%    EL_ANALYSIS: 0.0%    BL_EL_RPU WRITING: 0.0%    (BL AUs: 516     EL AUs: 1)
and one more question... do I need convert FEL to MEL first and then "convert to 8.1" or "convert to 8.1" converts FEL to MEL automatically?

and is it possible to demux the 8.1 profile????
blenky
Posts: 24
Joined: Fri Oct 02, 2020 12:29 am

Re: Dolby Vision now possible through MP4 Mux.

Post by blenky »

yusesope wrote:
Sat Oct 17, 2020 11:19 am
In the meantime I have further updated the test version (v0.0.4 BETA in the usual POST).

MUX_EXPERIMENTAL.bat accepts as input a DTDL file (ex: m2ts) and returns a HEVC stream (saving you a lot of time).
I left the instructions inside (right click -> edit): modify it according to your needs.
The only precaution: -mode is become, only in this case, -mode_exp

If you want to try it, I kindly ask you to import the HEVC file into MkvToolNix, add the audio tracks, subtitles, etc... and then, in the "Output" tab, fill in the "File title" box by entering the title you want followed by 73 underscores in the case of a profile 7 file or by 37 underscores in the case of a profile 8.

Code: Select all

#profile 7
Movie Title_________________________________________________________________________

#profile 8
Movie Title_____________________________________

After generating the file, use my "MKV_Patcher.bat" (takes you 0.1 seconds).
yusesope wrote:
Fri Oct 16, 2020 1:37 pm
Open the "MKV_Patcher.bat" file, drag and drop the MKV file obtained in step ONE, press ENTER and, when prompted, enter 7 if you are creating a FEL\MEL file or 8 in the case of an 8.1 profile file. Other values ​​are not allowed!
The process will become automatic in the future: it will understand what type of file you created in step ONE and will behave accordingly!
Is the patched file played with Dolby Vision?
Thank you.


For those using the command line, pay attention to the switches (take a look at the help).
For those who use linux, remember to give the correct permissions to the version of ffmpeg that I have attached!

Code: Select all

chmod +x src/FFmpeg/ffmpeg_lin_x64
The script require also psutil

Code: Select all

python3 -m pip install psutil
OK I got hold of your 0.0.4 beta package and did the following
  • Ran MUX_EXPERIMENTAL.bat adding in the main M2TS file from the movie 1917. I updated the script within the .bat file to

    Code: Select all

    python-3.7.6.amd64\python.exe src\app.py -mode_exp 2 -skip_hdr10plus -mux_exp
  • Imported the resultant HEVC file into latest version of MKVToolNix and added film title followed by 37 underscores. I added the M2TS file from 1917 into MKVToolNix excluding everything except Atmos audio and one subtitle track.
  • ran MKV_Patcher.bat dropping in the MKV file created and typed 8.
Unfortunately the end result MKV file does not play at all. It freezes with black screen

mediainfo below. What am I doing wrong?

Code: Select all

General
Unique ID                                : 12818517988367686864411367271213056704 (0x9A4C1BB4327FCBFB039476A7A2042C0)
Complete name                            : Y:\1917.mkv
Format                                   : Matroska
Format version                           : Version 4
File size                                : 61.5 GiB
Duration                                 : 1 h 58 min
Overall bit rate mode                    : Variable
Overall bit rate                         : 74.1 Mb/s
Movie name                               : 1917
Encoded date                             : UTC 2020-10-17 19:57:07
Writing application                      : mkvmerge v51.0.0 ('I Wish') 64-bit
Writing library                          : libebml v1.4.0 + libmatroska v1.6.2

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.08.06, BL+RPU, HDR10 compatible / SMPTE ST 2086, HDR10 compatible
Codec ID                                 : V_MPEGH/ISO/HEVC
Duration                                 : 1 h 58 min
Bit rate                                 : 70.2 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.353
Stream size                              : 58.3 GiB (95%)
Default                                  : Yes
Forced                                   : No
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        : 168 cd/m2

Audio
ID                                       : 2
Format                                   : MLP FBA 16-ch
Format/Info                              : Meridian Lossless Packing FBA with 16-channel presentation
Commercial name                          : Dolby TrueHD with Dolby Atmos
Codec ID                                 : A_TRUEHD
Duration                                 : 1 h 58 min
Bit rate mode                            : Variable
Bit rate                                 : 3 810 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                               : 1 200.000 FPS (40 SPF)
Compression mode                         : Lossless
Delay relative to video                  : 17 ms
Stream size                              : 3.17 GiB (5%)
Language                                 : English
Default                                  : Yes
Forced                                   : No
Number of dynamic objects                : 11
Bed channel count                        : 1 channel
Bed channel configuration                : LFE

Text
ID                                       : 3
Format                                   : PGS
Muxing mode                              : zlib
Codec ID                                 : S_HDMV/PGS
Codec ID/Info                            : Picture based subtitle format used on BDs/HD-DVDs
Duration                                 : 1 h 45 min
Bit rate                                 : 28.0 kb/s
Count of elements                        : 2202
Stream size                              : 21.2 MiB (0%)
Language                                 : English
Default                                  : Yes
Forced                                   : No

kazuma
Posts: 132
Joined: Fri Nov 08, 2019 9:51 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by kazuma »

man, so many pages already... there is not a better soluction for the LG C9 than the command>profile 7 i suppose so far?
yusesope
Posts: 221
Joined: Sun Jul 28, 2019 3:34 am

Re: Dolby Vision now possible through MP4 Mux.

Post by yusesope »

jlpsvk wrote:
Sat Oct 17, 2020 4:12 pm
JOKER UHD with MEL...
after "convert to 81" and then demux, EL_RPU is about halfsize... and when I am trying remux again to 8.1, if fails.
You're making a mess! :lol:

After converting to profile 8.1, STOP!
You are done with my tool!
jlpsvk wrote:
Sat Oct 17, 2020 4:12 pm
and one more question... do I need convert FEL to MEL first and then "convert to 8.1" or "convert to 8.1" converts FEL to MEL automatically?
and is it possible to demux the 8.1 profile????
What's the point of demuxing a profile 8.1? There is no longer an EL to demux!

No, it is not necessary to convert a FEL to MEL and then to profile 8.1
The possible conversions are:
FEL -> FEL
FEL -> MEL
MEL -> MEL
FEL\MEL -> profile 8.1

HERE you will find the instructions to follow!


blenky wrote:
Sat Oct 17, 2020 10:11 pm
OK I got hold of your 0.0.4 beta package and did the following
  • Ran MUX_EXPERIMENTAL.bat adding in the main M2TS file from the movie 1917. I updated the script within the .bat file to

    Code: Select all

    python-3.7.6.amd64\python.exe src\app.py -mode_exp 2 -skip_hdr10plus -mux_exp
  • Imported the resultant HEVC file into latest version of MKVToolNix and added film title followed by 37 underscores. I added the M2TS file from 1917 into MKVToolNix excluding everything except Atmos audio and one subtitle track.
  • ran MKV_Patcher.bat dropping in the MKV file created and typed 8.
Unfortunately the end result MKV file does not play at all. It freezes with black screen
No, you didn't do anything wrong!
I'm just looking for a way to save you time!
I can't directly test what I write that's why your feedback is important!
We are in a testing phase, it is normal for something not to work.

If you want a playable file, you can find the latest operating instructions HERE.

Now, I'm more than sure the experimental muxer works ...
If you feed the broken MKV file to MakeMKV (version> = 1.15.3), do you get a playable MKV?

The more practical ones could also try to use the experimental muxer by replacing the first steps of the instructions (always this POST) with it.
jlpsvk
Posts: 50
Joined: Thu Sep 06, 2018 11:33 am

Re: Dolby Vision now possible through MP4 Mux.

Post by jlpsvk »

yusesope wrote:
Sun Oct 18, 2020 9:23 am
What's the point of demuxing a profile 8.1? There is no longer an EL to demux!

No, it is not necessary to convert a FEL to MEL and then to profile 8.1
The possible conversions are:
FEL -> FEL
FEL -> MEL
MEL -> MEL
FEL\MEL -> profile 8.1
ok... so when I want to encode BL, i need the original EL and mux with encoded BL to have profile 8.1 again, right?
PlatypusW
Posts: 50
Joined: Mon Aug 03, 2020 2:14 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by PlatypusW »

How are others testing the fire stick? Using plex?

I’ve installed Kodi and got the custom exoplayer setup the same as my shield, but unlike my shield I can’t plug any external storage into it so I’m forced to use the network. Can’t seem to get samba or ftp to work correctly. I managed to get something off my local http web server but that’s not exactly ideal :P

Just wondering if there’s a way to get network storage to work with exoplayer on the firestick? I know on the shield you had to mount the share via the shield itself rather than through Kodi, but I think the firestick is too locked down for that?
blenky
Posts: 24
Joined: Fri Oct 02, 2020 12:29 am

Re: Dolby Vision now possible through MP4 Mux.

Post by blenky »

yusesope wrote:
Sun Oct 18, 2020 9:23 am
[
blenky wrote:
Sat Oct 17, 2020 10:11 pm
OK I got hold of your 0.0.4 beta package and did the following
  • Ran MUX_EXPERIMENTAL.bat adding in the main M2TS file from the movie 1917. I updated the script within the .bat file to

    Code: Select all

    python-3.7.6.amd64\python.exe src\app.py -mode_exp 2 -skip_hdr10plus -mux_exp
  • Imported the resultant HEVC file into latest version of MKVToolNix and added film title followed by 37 underscores. I added the M2TS file from 1917 into MKVToolNix excluding everything except Atmos audio and one subtitle track.
  • ran MKV_Patcher.bat dropping in the MKV file created and typed 8.
Unfortunately the end result MKV file does not play at all. It freezes with black screen
No, you didn't do anything wrong!
I'm just looking for a way to save you time!
I can't directly test what I write that's why your feedback is important!
We are in a testing phase, it is normal for something not to work.

If you want a playable file, you can find the latest operating instructions HERE.

Now, I'm more than sure the experimental muxer works ...
If you feed the broken MKV file to MakeMKV (version> = 1.15.3), do you get a playable MKV?

The more practical ones could also try to use the experimental muxer by replacing the first steps of the instructions (always this POST) with it.
OK I made change to my process that works - note change made in bold:

Using 0.0.4 beta package and did the following
  • Ran MUX_EXPERIMENTAL.bat adding in the main M2TS file from the movie 1917. I updated the script within the .bat file to

Code: Select all

python-3.7.6.amd64\python.exe src\app.py -mode_exp 2 -skip_hdr10plus -mux_exp
  • Demuxed Atmos track from 1917 .M2TS file using TSMuxer
  • Imported the resultant HEVC file into latest version of MKVToolNix and added demuxed .ac3 file generated by Tsmuxer.
  • Added film title followed by 37 underscores and create MKV
  • ran MKV_Patcher.bat dropping in the MKV file created and typed 8.
The resultant MKV plays in DV with Dolby Atmos track! Result. However as I have a Z9X and a LG CX TV there is a known issue. The TV keeps resyncing and after about 5 minutes playback gets choppy. Hopefully at some point this will get fixed
jlpsvk
Posts: 50
Joined: Thu Sep 06, 2018 11:33 am

Re: Dolby Vision now possible through MP4 Mux.

Post by jlpsvk »

just a though....

it would be nice to have .BAT for the following operations (if possible)...

1) convert BL.hevc with HDR10+ to BL.hevc without HDR10+ (separately, without muxing to DV file)
2) convert EL (FEL).hevc to EL (MEL).hevc (separately, without muxing to DV file)

The first should be possible I think, the second... I really don't know...

Right now, if I want to create Profile 8.1 without HDR10+, i need to use MUX.bat with -skip_hdr10plus, then demux, and then use MUX_AND_CONVERT_TO_PROFILE_81.bat and use BL.hevc without HDR10+
blenky
Posts: 24
Joined: Fri Oct 02, 2020 12:29 am

Re: Dolby Vision now possible through MP4 Mux.

Post by blenky »

jlpsvk wrote:
Sun Oct 18, 2020 2:19 pm
just a though....

it would be nice to have .BAT for the following operations (if possible)...

1) convert BL.hevc with HDR10+ to BL.hevc without HDR10+ (separately, without muxing to DV file)
2) convert EL (FEL).hevc to EL (MEL).hevc (separately, without muxing to DV file)

The first should be possible I think, the second... I really don't know...

Right now, if I want to create Profile 8.1 without HDR10+, i need to use MUX.bat with -skip_hdr10plus, then demux, and then use MUX_AND_CONVERT_TO_PROFILE_81.bat and use BL.hevc without HDR10+
For 1) above couldn't you do what I did with the FEL movie 1917? See post above.
yusesope
Posts: 221
Joined: Sun Jul 28, 2019 3:34 am

Re: Dolby Vision now possible through MP4 Mux.

Post by yusesope »

blenky wrote:
Sun Oct 18, 2020 1:37 pm
The resultant MKV plays in DV with Dolby Atmos track! Result. However as I have a Z9X and a LG CX TV there is a known issue. The TV keeps resyncing and after about 5 minutes playback gets choppy. Hopefully at some point this will get fixed
Great result! Thanks for not giving up! It's a shame about the Z9X + LG CX problem.
So, are you telling me the only difference was the way you imported the audio into MkvToolNix?
Strange!
When someone with a FireStick 4K\Shield 2019\Ugoos tries it, maybe we'll have some more data to think about!
To you others, which of the following two approaches works?
blenky wrote:
Sat Oct 17, 2020 10:11 pm
OK I got hold of your 0.0.4 beta package and did the following
  • Ran MUX_EXPERIMENTAL.bat adding in the main M2TS file from the movie 1917. I updated the script within the .bat file to

    Code: Select all

    python-3.7.6.amd64\python.exe src\app.py -mode_exp 2 -skip_hdr10plus -mux_exp
  • Imported the resultant HEVC file into latest version of MKVToolNix and added film title followed by 37 underscores. I added the M2TS file from 1917 into MKVToolNix excluding everything except Atmos audio and one subtitle track.
  • ran MKV_Patcher.bat dropping in the MKV file created and typed 8.
Unfortunately the end result MKV file does not play at all. It freezes with black screen
blenky wrote:
Sun Oct 18, 2020 1:37 pm
Using 0.0.4 beta package and did the following
  • Ran MUX_EXPERIMENTAL.bat adding in the main M2TS file from the movie 1917. I updated the script within the .bat file to

Code: Select all

python-3.7.6.amd64\python.exe src\app.py -mode_exp 2 -skip_hdr10plus -mux_exp
  • Demuxed Atmos track from 1917 .M2TS file using TSMuxer
  • Imported the resultant HEVC file into latest version of MKVToolNix and added demuxed .ac3 file generated by Tsmuxer.
  • Added film title followed by 37 underscores and create MKV
  • ran MKV_Patcher.bat dropping in the MKV file created and typed 8.
The resultant MKV plays in DV with Dolby Atmos track
I am glad that both the experimental muxer and the Patcher are working correctly!
The second is still not perfect: in case it returns an error, attach the first 20 seconds of the mkv to your post so I can improve it!



jlpsvk wrote:
Sun Oct 18, 2020 11:29 am
ok... so when I want to encode BL, i need the original EL and mux with encoded BL to have profile 8.1 again, right?
Quite right (mux in -mode 2 for profile 8.1).
However, I do not recommend video encoding: it is technically wrong in the case of DoVi and my tool is not designed for this type of use!
Just my two cents, you are free to do what you want!
jlpsvk wrote:
Sun Oct 18, 2020 2:19 pm
just a though....

it would be nice to have .BAT for the following operations (if possible)...

1) convert BL.hevc with HDR10+ to BL.hevc without HDR10+ (separately, without muxing to DV file)
2) convert EL (FEL).hevc to EL (MEL).hevc (separately, without muxing to DV file)

The first should be possible I think, the second... I really don't know...

Right now, if I want to create Profile 8.1 without HDR10+, i need to use MUX.bat with -skip_hdr10plus, then demux, and then use MUX_AND_CONVERT_TO_PROFILE_81.bat and use BL.hevc without HDR10+
All those ".bat" files are USELESS!
They just generate confusion and I certainly will not create new ones!
The only useful one is "SHOW_HELP.bat": it tells you what to use to build a simple command line.

In your specific case, is it so complicated to open a Command Prompt window in my tool folder (tutorial HERE) and paste the following command line into it?

Code: Select all

python-3.7.6.amd64\python.exe src\app.py -mode 2 -skip_hdr10plus -mux -bl \path\to\your\BL.hevc -el \path\to\your\EL_RPU.hevc  -of \path\to\your\output\file.hevc
Or even better, use the experimental muxer and save yourself the trouble of demuxing BL and EL?

Code: Select all

python-3.7.6.amd64\python.exe src\app.py -mode_exp 2 -skip_hdr10plus -mux_exp -if_exp \path\to\your\input\file.m2ts -of_exp \path\to\your\output\file.hevc
Read the two command lines aloud: it's English ... not ancient Aramaic!


PlatypusW wrote:
Sun Oct 18, 2020 12:57 pm
I managed to get something off my local http web server but that’s not exactly ideal :P
You just need a simple DLNA server (the DLNA capabilities of Windows, Plex Media Server, Serviio, minidlna, etc ...)
jlpsvk
Posts: 50
Joined: Thu Sep 06, 2018 11:33 am

Re: Dolby Vision now possible through MP4 Mux.

Post by jlpsvk »

blenky wrote:
Sun Oct 18, 2020 3:31 pm
jlpsvk wrote:
Sun Oct 18, 2020 2:19 pm
just a though....

it would be nice to have .BAT for the following operations (if possible)...

1) convert BL.hevc with HDR10+ to BL.hevc without HDR10+ (separately, without muxing to DV file)
2) convert EL (FEL).hevc to EL (MEL).hevc (separately, without muxing to DV file)

The first should be possible I think, the second... I really don't know...

Right now, if I want to create Profile 8.1 without HDR10+, i need to use MUX.bat with -skip_hdr10plus, then demux, and then use MUX_AND_CONVERT_TO_PROFILE_81.bat and use BL.hevc without HDR10+
For 1) above couldn't you do what I did with the FEL movie 1917? See post above.
I saw that.. with experimental muxer... with the default one, you cannot use "skip_hdr10plus" with "mode 2"
Post Reply