HDR

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

Re: HDR

Post by poochie2 » 17 Jun 2018, 18:11

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: 16821
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: HDR

Post by rednoah » 17 Jun 2018, 18:18

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 » 17 Jun 2018, 18:48

KK!

User avatar
sighunter
Posts: 17
Joined: 26 Aug 2016, 08:08

Re: HDR

Post by sighunter » 18 Jun 2018, 08:32

very nice, thanks!

devster
Posts: 335
Joined: 06 Jun 2017, 22:56

Re: HDR

Post by devster » 02 Sep 2019, 18:39

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: 16821
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: HDR

Post by rednoah » 03 Sep 2019, 10:39

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