[DOCS] {hdr} binding

All about user-defined episode / movie / file name format expressions
Post Reply
User avatar
rednoah
The Source
Posts: 23853
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

[DOCS] {hdr} binding

Post by rednoah »

The {hdr} binding is based on the HDR_Format and HDR_Format_Commercial Icon video properties.

Properties: Select all

HDR_Format                       : SMPTE ST 2086
HDR_Format_Commercial            : HDR10

Properties: Select all

HDR_Format                       : Dolby Vision
HDR_Format_Commercial            : Dolby Vision
e.g.

Console Output: Select all

$ filebot -mediainfo -r /path/to/files --filter f.video --format '{hdr}' | sort -u
HDR
HDR10
HDR10+
Dolby Vision



:idea: If you want to add a DV+HDR10 (Dolby Vision with HDR10 fallback) marker then you can add a custom check like so:

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