mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-05 20:51:15 -07:00
detect HDR transcodes via colorTrc attribute (#2466)
This commit is contained in:
parent
37ef098718
commit
b7c4f2eefe
1 changed files with 2 additions and 2 deletions
|
@ -3386,10 +3386,10 @@ class PmsConnect(object):
|
||||||
def get_dynamic_range(stream):
|
def get_dynamic_range(stream):
|
||||||
extended_display_title = helpers.get_xml_attr(stream, 'extendedDisplayTitle')
|
extended_display_title = helpers.get_xml_attr(stream, 'extendedDisplayTitle')
|
||||||
bit_depth = helpers.cast_to_int(helpers.get_xml_attr(stream, 'bitDepth'))
|
bit_depth = helpers.cast_to_int(helpers.get_xml_attr(stream, 'bitDepth'))
|
||||||
color_space = helpers.get_xml_attr(stream, 'colorSpace')
|
color_trc = helpers.get_xml_attr(stream, 'colorTrc')
|
||||||
DOVI_profile = helpers.get_xml_attr(stream, 'DOVIProfile')
|
DOVI_profile = helpers.get_xml_attr(stream, 'DOVIProfile')
|
||||||
|
|
||||||
HDR = bool(bit_depth > 8 and 'bt2020' in color_space)
|
HDR = bool(bit_depth > 8 and (color_trc == 'smpte2084' or color_trc == 'arib-std-b67'))
|
||||||
DV = bool(DOVI_profile)
|
DV = bool(DOVI_profile)
|
||||||
|
|
||||||
if not HDR and not DV:
|
if not HDR and not DV:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue