[DOCS] {hdr} binding
Posted: 10 Jan 2025, 06:41
The {hdr} binding is based on the HDR_Format and HDR_Format_Commercial
video properties.
e.g.
UPDATE: Due to popular request, in FileBot 5.1.8 (r10539) or higher, the {hdr} binding will now print DV or DV+HDR10 instead of Dolby Vision.
If you want to add a DV+HDR10 (Dolby Vision with HDR10 fallback) marker then you can add a custom check like so:

Properties: Select all
HDR_Format : SMPTE ST 2086
HDR_Format_Commercial : HDR10
Properties: Select all
HDR_Format : Dolby Vision
HDR_Format_Commercial : Dolby Vision
Console Output: Select all
$ filebot -mediainfo -r /path/to/files --filter f.video --format '{hdr}' | sort -u
HDR
HDR10
HDR10+
Dolby Vision
UPDATE: Due to popular request, in FileBot 5.1.8 (r10539) or higher, the {hdr} binding will now print DV or DV+HDR10 instead of Dolby Vision.

Format: Select all
{ video.HDR_Format =~ /Dolby Vision/ ? video.HDR_Format_Compatibility =~ /HDR10/ ? 'DV+HDR10' : 'DV' : hdr }
Properties: Select all
HDR_Format : Dolby Vision / SMPTE ST 2086
HDR_Format_Commercial : HDR10 / HDR10
HDR_Format_Compatibility : HDR10 / HDR10