From 1dc0ee867a166a4eb4b7209be5718977274bbc0a Mon Sep 17 00:00:00 2001 From: libdev Date: Sun, 17 Nov 2019 21:06:37 +0100 Subject: [PATCH] write dvhe codec for hevc-dv* (Dolby Vision) in manifest --- resources/lib/MSLv2.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/resources/lib/MSLv2.py b/resources/lib/MSLv2.py index dfaf35ec9..c6ce7bfe4 100644 --- a/resources/lib/MSLv2.py +++ b/resources/lib/MSLv2.py @@ -403,8 +403,11 @@ def __tranform_to_dash(self, manifest): for stream in video_track['streams']: codec = 'h264' - if 'hevc' in stream['content_profile']: - codec = 'hevc' + if stream['content_profile'].startswith('hevc'): + if stream['content_profile'].startswith('hevc-dv'): + codec = 'dvhe' + else: + codec = 'hevc' elif 'vp9' in stream['content_profile']: lp = re.search('vp9-profile(.+?)-L(.+?)-dash', stream['content_profile']) codec = 'vp9.' + lp.group(1) + '.' + lp.group(2)