MediaInfoLib icon indicating copy to clipboard operation
MediaInfoLib copied to clipboard

[Feature Request] Report correct dolby vision information in raw HEVC file

Open jessielw opened this issue 3 years ago • 8 comments

When test file is in .mkv format HDR format : Dolby Vision, Version 1.0, dvhe.07.06, BL+EL+RPU, Blu-ray compatible / SMPTE ST 2086, HDR10 compatible

When test file is in .hevc format (extracted from the above mkv) HDR format : SMPTE ST 2086, HDR10 compatible

Samples https://www.mediafire.com/file/m70xj085hchbk82/samples.zip/file

This was already posted here (https://github.com/MediaArea/MediaInfo/issues/587#issuecomment-1015003888)

However, as quietvoid stated here https://github.com/MediaArea/MediaInfo/issues/587#issuecomment-1015003888 both FFMPEG and MKVToolNix is capable of doing this. Dolby decided to use a specific NALU type (62) to carry the data. I would love for this to be added to mediainfo!

jessielw avatar Jan 18 '22 02:01 jessielw

Looks like some people found how to decode, e.g. with mkvmerge DOVI parser, from a guy who has a DOVI tools repo. example of parsing.

Looks like a part of the parsing comes from DASH-IF-IOP but no idea about the source of the RPU header and CM_Data() modifications, anyway it is enough for implementing the feature.

JeromeMartinez avatar Jan 19 '22 07:01 JeromeMartinez

Looks like some people found how to decode, e.g. with mkvmerge DOVI parser, from a guy who has a DOVI tools repo. example of parsing.

Looks like a part of the parsing comes from DASH-IF-IOP but no idea about the source of the RPU header and CM_Data() modifications, anyway it is enough for implementing the feature.

Awesome I'm glad to hear it!

jessielw avatar Jan 19 '22 12:01 jessielw

See also https://git.ffmpeg.org/gitweb/ffmpeg.git/commit/fe0403373964f6a5e633eb7adf9aa104cf9d59ff. It all comes from a patent, not DASH-IF's specification which refers to Dolby Vision within ITU-T.35 SEI messages.

quietvoid avatar Jan 19 '22 13:01 quietvoid

It all comes from a patent

I missed it :). Great.

not DASH-IF's specification which refers to Dolby Vision within ITU-T.35 SEI messages.

I was mentioning it only because there are similar field names (but not positioned at the same place), I guess that some parts are common. BTW, if someone has files with Dolby Vision within ITU-T.35 SEI messages, I am interested.

JeromeMartinez avatar Jan 19 '22 13:01 JeromeMartinez

I was mentioning it only because there are similar field names (but not positioned at the same place), I guess that some parts are common. BTW, if someone has files with Dolby Vision within ITU-T.35 SEI messages, I am interested.

The only source I've found for those is here https://dash.akamaized.net/dash264/TestCasesMCA/dolby/6. The EL file contains the SEI.

quietvoid avatar Jan 19 '22 13:01 quietvoid

The only source I've found for those is here

Thanks!

JeromeMartinez avatar Jan 19 '22 13:01 JeromeMartinez

For reference, the DOVI RPU patent.

JeromeMartinez avatar Jan 19 '22 13:01 JeromeMartinez

You can just parse NAL 63 for EL, NAL 62 for RPU and look into RPU to know what color space is used. Mpv decoder of that space and MMR reshaping are reference.

ValZapod avatar Feb 11 '22 06:02 ValZapod

I believe the same issue applies to the detection of Dolby Vision in .m2ts files as found on 4K UHD discs. Mediainfo doesn't see it, while MakeMKV reports it

medikoo avatar Sep 21 '22 09:09 medikoo