Will it say something like SDR, HDR, or only HDR?
HDR
Re: HDR
HDR or nothing, so you can do this:
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.
Code: Select all
any{hdr}{'SDR'}
Please read the FAQ and How to Request Help.
Re: HDR
As of 19.04 Mediainfo offers way more information regarding HDR.
Namely:
Which should also detect
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.
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
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
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)
Re: HDR
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;
});
}
Please read the FAQ and How to Request Help.