Page 2 of 2

Re: HDR

Posted: 17 Jun 2018, 18:11
by poochie2
rednoah wrote: 17 Jun 2018, 16:54 OK. The new {hdr} binding will require bitdepth >= 10 and BT.2020 Color Primaries.
Will it say something like SDR, HDR, or only HDR?

Re: HDR

Posted: 17 Jun 2018, 18:18
by rednoah
HDR or nothing, so you can do this:

Code: Select all

any{hdr}{'SDR'}
:idea: While HDR is a proper term, a Google search for SDR yields nothing, so I guess there's no proper tag for non-HDR content.

Re: HDR

Posted: 17 Jun 2018, 18:48
by poochie2
KK!

Re: HDR

Posted: 18 Jun 2018, 08:32
by sighunter
very nice, thanks!

Re: HDR

Posted: 02 Sep 2019, 18:39
by devster
As of 19.04 Mediainfo offers way more information regarding HDR.
Namely:

Code: Select all

HDR_Format                       : SMPTE ST 2086
HDR_Format/String                : SMPTE ST 2086, HDR10 compatible
HDR_Format_Commercial            : HDR10
HDR_Format_Compatibility         : HDR10
Which should also detect

Code: Select all

+ HDR: SMPTE ST 2094 App 4 (including HDR10+) support
+ HDR: move HDR10, Dolby Vision and SL-HDR meta to specific generic "HDR Format" lines
+ Matroska: SMPTE ST 2086 (HDR10) support
Official changelog here: https://mediaarea.net/MediaInfo/ChangeLog

From what I can see from https://www.filebot.net/docs/api/src-ht ... l#line.432 this info isn't currently being used.

Re: HDR

Posted: 03 Sep 2019, 10:39
by rednoah
I've updated {hdr} accordingly:

Code: Select all

@Define("hdr")
public String getHighDynamicRange() {
	// try HDR_Format_Commercial (requires MediaInfo 19.04)
	return getMediaInfo(StreamKind.Video, "HDR_Format_Commercial").findFirst().orElseGet(() -> {
		// fallback for legacy libmediainfo
		return getVideoBitDepth() >= 10 ? "HDR" : null;
	});
}