Skip to content

Commit

Permalink
write dvhe codec for hevc-dv* (Dolby Vision) in manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
liberty-developer committed Nov 17, 2019
1 parent f77f6f3 commit 1dc0ee8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions resources/lib/MSLv2.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1dc0ee8

Please sign in to comment.