Add Dolby Vision info to media info

This commit is contained in:
JonnyWong16 2024-03-24 16:36:18 -07:00
commit de3121cba9
No known key found for this signature in database
GPG key ID: B1F1F9807184697A
2 changed files with 21 additions and 0 deletions

View file

@ -1516,6 +1516,13 @@ class PmsConnect(object):
'video_color_space': helpers.get_xml_attr(stream, 'colorSpace'),
'video_color_trc': helpers.get_xml_attr(stream, 'colorTrc'),
'video_dynamic_range': self.get_dynamic_range(stream),
'video_dovi_bl_present': int(helpers.get_xml_attr(stream, 'DOVIBLPresent') == '1'),
'video_dovi_el_present': int(helpers.get_xml_attr(stream, 'DOVIELPresent') == '1'),
'video_dovi_level': helpers.cast_to_int(helpers.get_xml_attr(stream, 'DOVILevel')),
'video_dovi_present': int(helpers.get_xml_attr(stream, 'DOVIPresent') == '1'),
'video_dovi_profile': helpers.cast_to_int(helpers.get_xml_attr(stream, 'DOVIProfile')),
'video_dovi_rpu_present': int(helpers.get_xml_attr(stream, 'DOVIRPUPresent') == '1'),
'video_dovi_version': helpers.cast_to_float(helpers.get_xml_attr(stream, 'DOVIVersion')),
'video_frame_rate': helpers.get_xml_attr(stream, 'frameRate'),
'video_ref_frames': helpers.get_xml_attr(stream, 'refFrames'),
'video_height': helpers.get_xml_attr(stream, 'height'),
@ -1949,6 +1956,13 @@ class PmsConnect(object):
'stream_video_color_space': helpers.get_xml_attr(video_stream_info, 'colorSpace'),
'stream_video_color_trc': helpers.get_xml_attr(video_stream_info, 'colorTrc'),
'stream_video_dynamic_range': self.get_dynamic_range(video_stream_info),
'stream_video_dovi_bl_present': int(helpers.get_xml_attr(video_stream_info, 'DOVIBLPresent') == '1'),
'stream_video_dovi_el_present': int(helpers.get_xml_attr(video_stream_info, 'DOVIELPresent') == '1'),
'stream_video_dovi_level': helpers.cast_to_int(helpers.get_xml_attr(video_stream_info, 'DOVILevel')),
'stream_video_dovi_present': int(helpers.get_xml_attr(video_stream_info, 'DOVIPresent') == '1'),
'stream_video_dovi_profile': helpers.cast_to_int(helpers.get_xml_attr(video_stream_info, 'DOVIProfile')),
'stream_video_dovi_rpu_present': int(helpers.get_xml_attr(video_stream_info, 'DOVIRPUPresent') == '1'),
'stream_video_dovi_version': helpers.cast_to_float(helpers.get_xml_attr(video_stream_info, 'DOVIVersion')),
'stream_video_height': helpers.get_xml_attr(video_stream_info, 'height'),
'stream_video_width': helpers.get_xml_attr(video_stream_info, 'width'),
'stream_video_ref_frames': helpers.get_xml_attr(video_stream_info, 'refFrames'),

View file

@ -5464,6 +5464,13 @@ class WebInterface(object):
"video_color_space": "bt709",
"video_color_trc": "",
"video_dynamic_range": "SDR",
"video_dovi_bl_present": 0,
"video_dovi_el_present": 0,
"video_dovi_level": 0,
"video_dovi_present": 0,
"video_dovi_profile": 0,
"video_dovi_rpu_present": 0,
"video_dovi_version": 0,
"video_frame_rate": "23.976",
"video_height": "1078",
"video_language": "",