HDR

All your suggestions, requests and ideas for future development
poochie2
Posts: 21
Joined: 16 Jun 2018, 13:55

Re: HDR

Post 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?
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: HDR

Post 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.
:idea: Please read the FAQ and How to Request Help.
poochie2
Posts: 21
Joined: 16 Jun 2018, 13:55

Re: HDR

Post by poochie2 »

KK!
User avatar
sighunter
Posts: 22
Joined: 26 Aug 2016, 08:08

Re: HDR

Post by sighunter »

very nice, thanks!
devster
Posts: 417
Joined: 06 Jun 2017, 22:56

Re: HDR

Post 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.
I only work in black and sometimes very, very dark grey. (Batman)
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: HDR

Post 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;
	});
}
:idea: Please read the FAQ and How to Request Help.
Post Reply