Please add full HDR and Dolby Vision Support to next kodi major Version
#16
How to tell if DV is single or more layers?

Extra output from MediaInfo;

Code:
Video #2
ID : 2
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main [email protected]@high
HDR format : Dolby Vision, Version 1.0, dvhe.07.06, EL+RPU / SMPTE ST 2086, HDR10 compatible
Codec ID : dvhe
Codec ID/Info : High Efficiency Video Coding with Dolby Vision
Duration : 1 h 36 min
Bit rate : 7 340 kb/s
Maximum bit rate : 13.5 Mb/s
Width : 1 920 pixels
Height : 1 080 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.148
Stream size : 4.92 GiB (10%)
Title : Enhancement Layer
Default : No
Encoded date : UTC 2019-11-22 22:54:38
Tagged date : UTC 2019-11-22 23:20:24
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
Codec configuration box : hvcC+dvcC
Reply
#17
On the Shield 2019 Pro, Kodi 18.5 reports a 4K video track with DV as "unknown 1920x1080" and when playing it just outputs a black screen.
Reply
#18
(2019-11-26, 18:23)bleze Wrote: On the Shield 2019 Pro, Kodi 18.5 reports a 4K video track with DV as "unknown 1920x1080" and when playing it just outputs a black screen.
Because it's not supported yet.
Reply
#19
(2019-11-26, 18:21)bleze Wrote: How to tell if DV is single or more layers?

Extra output from MediaInfo;

Code:
Video #2
ID : 2
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main [email protected]@high
HDR format : Dolby Vision, Version 1.0, dvhe.07.06, EL+RPU / SMPTE ST 2086, HDR10 compatible
Codec ID : dvhe
Codec ID/Info : High Efficiency Video Coding with Dolby Vision
Duration : 1 h 36 min
Bit rate : 7 340 kb/s
Maximum bit rate : 13.5 Mb/s
Width : 1 920 pixels
Height : 1 080 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.148
Stream size : 4.92 GiB (10%)
Title : Enhancement Layer
Default : No
Encoded date : UTC 2019-11-22 22:54:38
Tagged date : UTC 2019-11-22 23:20:24
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
Codec configuration box : hvcC+dvcC
Codec string examples:
• dvav.09.04 This string represents a single-layer SDR backward-compatible Dolby Vision stream encoded as 8-bit AVC video with a pixel rate that does not exceed 62,208,000 pixels/sec (for example, 1920 × 1080 at 30 fps).
• dvhe.05.07 This string represents a single-layer incompatible Dolby Vision stream encoded as 10-bit HEVC video with a pixel rate that does not exceed 248,832,000 pixels/sec (for example, 3840 × 2160 at 30 fps).
• dvhe.07.06 This string represents a dual-layer Blu-ray HDR10 compatible Dolby Vision stream encoded as 10-bit HEVC video with a pixel rate that does not exceed 299,065,600 pixels/sec (for example, 3840 × 2160 at 24 fps).

https://www.dolby.com/us/en/technologies...levels.pdf
Reply
#20
(2019-11-26, 19:49)Hitcher Wrote:
(2019-11-26, 18:23)bleze Wrote: On the Shield 2019 Pro, Kodi 18.5 reports a 4K video track with DV as "unknown 1920x1080" and when playing it just outputs a black screen.
Because it's not supported yet. 
Yes, I know this. Just describing what happens now. What's strange is that MediaInfo and MKVToolNix both report this video stream as Full HD and not 4K.
Reply
#21
(2019-11-26, 19:58)bleze Wrote: Yes, I know this. Just describing what happens now. What's strange is that MediaInfo and MKVToolNix both report this video stream as Full HD and not 4K. 
Digging deeper into this, it's not a video stream but an enhancement layer for the 4K SD video stream. So probably same as on the original
Reply
#22
Video 
@bleze As you already found out, there are several formats and possibilities to integrate Dolby Vision.

For the Shield 2019 we need a single layer version (dvhe.05.06).
How to create one, I have already described in #15

Currently only Plex is able to play DV videos on the shield (from version 7.24).

Here is an excerpt from the MediaInfo of such a video:
Code:

Video
ID                                       : 1
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Format profile                           : Main [email protected]@high
HDR format                               : Dolby Vision, Version 1.0, dvhe.05.06, BL+RPU / SMPTE ST 2086, HDR10 compatible
Codec ID                                 : dvhe
Codec ID/Info                            : High Efficiency Video Coding with Dolby Vision
Duration                                 : 2 h 1 min
Source duration                          : 2 h 1 min
Bit rate                                 : 45.2 Mb/s
Maximum bit rate                         : 97.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.227
Stream size                              : 38.5 GiB (91%)
Source stream size                       : 38.5 GiB (91%)
Encoded date                             : UTC 2019-11-17 12:13:04
Tagged date                              : UTC 2019-11-19 22:40:49
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              : 9927 cd/m2
Maximum Frame-Average Light Level        : 697 cd/m2
Codec configuration box                  : hvcC+dvcC

In MKVToolNix it looks like this:
Image

Here you can see the TrueHD soundtrack, which is saved as a mlpa codec. This is expected to be integrated from Plex version 7.26.
Code:

Audio #2
ID                                       : 3
Format                                   : mlpa
Codec ID                                 : mlpa
Duration                                 : 2 h 1 min
Source duration                          : 2 h 1 min
Maximum bit rate                         : 6 008 kb/s
Source stream size                       : 3.16 GiB (7%)
Language                                 : German
Default                                  : Yes
Alternate group                          : 1
Tagged date                              : UTC 2019-11-19 22:40:49

Here the complete MediaInfo file sldv_mediainfo.txt

If you want, I also like to create test files or answer questions or submit for tests.
Reply
#23
Didn't know Plex supported it. MX Player should also support DV on Shield and also a dude called yusesope on the MakeMKV forum has made a player for Shield. So hopefully Kodi will be patched soon to playback single layer rips in MP4 as well.
In the meantime I will need to replace MakeMKV with DVDFav and redo my rips. Oh well, the learning curve Smile
Reply
#24
(2019-11-27, 10:28)bleze Wrote: MX Player should also support DV on Shield and also a dude called yusesope on the MakeMKV forum has made a player for Shield.

Thanks for the info, I did not know that yet. Can you send me a link to this program by yusesope? I will test it on occasion. However, they are only interesting if I can play/stream the videos directly from my server.
Reply
#25
https://www.makemkv.com/forum/viewtopic....&start=765

Start reading from page 52.

I have not tried it but it has a windows server and the player.
Reply
#26
(2019-11-26, 20:07)bleze Wrote:
(2019-11-26, 19:58)bleze Wrote: Yes, I know this. Just describing what happens now. What's strange is that MediaInfo and MKVToolNix both report this video stream as Full HD and not 4K. 
Digging deeper into this, it's not a video stream but an enhancement layer for the 4K SD video stream. So probably same as on the original 

Yes - and DV enhancement layers can be lower resolution than the (often HDR or SDR backwards compatible) core layer.

AIUI a common DV dual stream format is 3840x2160 HEVC/h.265 HDR10 base layer, with a 1920x1080 DV enhancement layer.
Reply
#27
(2019-11-25, 12:10)KingCarstonoX Wrote: So I'll turn me on here. I have a new Shield 2019 Pro and I'm also a Plex Pass (Beta) Member. I'm a big fan of Kodi since XBMC times. Unfortunately, I'm currently very dissatisfied with the Plex Android TV app, as many soundtracks are not working properly or incorrectly via HDMI passthrough. Kodi with the Plex addon is currently the best solution for me, because everything works wonderfully. Now only the Dolby Vision Support is missing Big Grin As already mentioned, an MP4 in single layer format is needed.

First, here's a very important link on Dolby Vision Rips:
https://forum.mrmc.tv/viewtopic.php?f=15...&start=310

What you need and how to create a perfect DV single layer rip with and without HD sound:
- DVDFab (current)
- FFmpeg (current)
- mp4box (from GPAC SDK - gpac-0.9.0-DEV-latest-filters-x64.exe)
- MediaInfo (for control)

The simple variant:
You can create a single layer rip with DVDFab. Attention you have to set this first, because the standard dvdfab profile creates a dual layer MP4! Disables Web optimization. At the soundtrack you can click on "copy". In that case, you will receive an AC3 from a TrueHD and a DTS from a DTS-HD soundtrack (I'll be right on the subject of hd sound). The subtitles are extracted and saved separately. Here you choose SRT subtitles! This is the easy way that is currently possible. However, without HD sound and without chapters. This does not make DVD Fab currently. I hope it will follow.

The ultimate variant:Step 1 - Extracts the HD sound from the ISO or from the disk with FFmpeg.
### How to find the correct stream id ###
ffprobe -i bluray:\path\to\bluray
Now find the right track and notice the AUDIO_STREAM_ID like 0:2

### DTS HD Commad ###
ffmpeg.exe -i bluray:\path\to\bluray -map 0:AUDIO_STREAM_ID -c copy %userprofile%\Desktop\dtshd.mp4

### TrueHD (Atmos) Commad ### #EXPERIMENTAL# - You get a soundtrack in the format: mlpaffmpeg.exe -i bluray:\path\to\bluray -map 0:AUDIO_STREAM_ID -c:a copy -strict -2 %userprofile%\Desktop\atmos.mp4

Now you have your HD soundtrack in a MP4: atmos.mp4 or dtshd.mp4

Step 2 - Creates a chapter TXT file and call it "chapters.txt"
I always find the times of the chapters with MediaInfo. If you have the times and if necessary the names of the chapters, write the following points in the TXT:
Example:
CHAPTER01=00:00:00.000
CHAPTER01NAME=Chapter1
CHAPTER02=00:10:15.698
CHAPTER02NAME=Chapter2
CHAPTER03=00:22:39.399
CHAPTER03NAME=Chapter3
CHAPTER04=00:35:53.276
CHAPTER04NAME=Chapter4
CHAPTER05=00:43:55.007
CHAPTER05NAME=Chapter5
CHAPTER06=00:55:19.357
CHAPTER06NAME=Chapter6
CHAPTER07=01:03:10.161
CHAPTER07NAME=Chapter7
CHAPTER08=01:14:12.364
CHAPTER08NAME=Chapter8
CHAPTER09=01:26:01.698
CHAPTER09NAME=Chapter9
CHAPTER10=01:37:16.080
CHAPTER10NAME=Chapter10
CHAPTER11=01:48:24.456
CHAPTER11NAME=Chapter11


Now you have a chapter file

Step 3 - Created with DVDFab a single layer rip (including external subtitles) as already described in the simple variant. For example, call it "dvdfab_out.mp4".

Step 4 - Now create the ultimate Dolby Vision Rip for the Shield 2019 with the mp4box:

mp4box.exe -add %userprofile%\Desktop\dvdfab_out.mp4 -add %userprofile%\Desktop\atmos.mp4:lang=eng -add %userprofile%\Desktop\chapters.txt:chap -brand mp42isom -ab dby1 %userprofile%\Desktop\mp4box_out.mp4(Varying commands depending on the language = atmos.mp4:lang=Language_Code like eng or ger)

Now you have a 4K single layer Dolby Vision MP4 with AC3 and TrueHD (mlpa) including chapters and external subtitles. Cool

If you want, you can also muxe the subtitles. But for me that has no added value compared to external subtitles. Name the subtitles exactly like your video (and if necessary additions) so they will be recognized.

Example in my case:
Hellboy 2019.mp4
Hellboy 2019 .ger.srt
Hellboy 2019 .ger.forced.srt


I hope I did not forget anything - if questions are just ask.... Wink

Thats awesome dude thx, where can i get mp4box for windows? and do i need a "plugin" or something to use it in this case?
Reply
#28
(2019-11-26, 19:49)Hitcher Wrote:
(2019-11-26, 18:23)bleze Wrote: On the Shield 2019 Pro, Kodi 18.5 reports a 4K video track with DV as "unknown 1920x1080" and when playing it just outputs a black screen.
Because it's not supported yet. 

But there are plans?
Reply
#29
(2019-11-29, 20:15)box4m Wrote: Thats awesome dude thx, where can i get mp4box for windows? and do i need a "plugin" or something to use it in this case? 
You do not need a plugin .. everything as described by me.
Here the mp4box Win Datas: https://drive.google.com/drive/folders/1...4sSsc1TIRL Wink


Officially: https://gpac.wp.imt.fr/downloads/gpac-nightly-builds/ BUT:
Quote:/!\ Due to difficulties in the migration of our download server, binaries installers are currently unavailable. Service should resume soon, please check back this page.
In the meantime you can find backups of the latest installers here.
Reply
#30
(2019-11-30, 23:31)KingCarstonoX Wrote:
(2019-11-29, 20:15)box4m Wrote: Thats awesome dude thx, where can i get mp4box for windows? and do i need a "plugin" or something to use it in this case? 
You do not need a plugin .. everything as described by me.
Here the mp4box Win Datas: https://drive.google.com/drive/folders/1...4sSsc1TIRL Wink


Officially: https://gpac.wp.imt.fr/downloads/gpac-nightly-builds/ BUT:
Quote:/!\ Due to difficulties in the migration of our download server, binaries installers are currently unavailable. Service should resume soon, please check back this page.
In the meantime you can find backups of the latest installers here.

Thx! Did u hear or read anything more about dolby vision mp4 support?
Reply
 
Thread Rating:
  • 1 Vote(s) - 5 Average



Logout Mark Read Team Forum Stats Members Help
Please add full HDR and Dolby Vision Support to next kodi major Version51