Skip to content

Commit 1dc0ee8

Browse files
write dvhe codec for hevc-dv* (Dolby Vision) in manifest
1 parent f77f6f3 commit 1dc0ee8

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

resources/lib/MSLv2.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,8 +403,11 @@ def __tranform_to_dash(self, manifest):
403403
for stream in video_track['streams']:
404404

405405
codec = 'h264'
406-
if 'hevc' in stream['content_profile']:
407-
codec = 'hevc'
406+
if stream['content_profile'].startswith('hevc'):
407+
if stream['content_profile'].startswith('hevc-dv'):
408+
codec = 'dvhe'
409+
else:
410+
codec = 'hevc'
408411
elif 'vp9' in stream['content_profile']:
409412
lp = re.search('vp9-profile(.+?)-L(.+?)-dash', stream['content_profile'])
410413
codec = 'vp9.' + lp.group(1) + '.' + lp.group(2)

0 commit comments

Comments
 (0)