Add an option to transcode HEVC RExt

This commit is contained in:
Edi Turn 2022-04-04 19:38:51 +08:00
parent c3136752dd
commit 3c5e2d0a7e
3 changed files with 20 additions and 0 deletions

View file

@ -480,6 +480,21 @@ class PlayUtils(object):
}
)
if settings('transcode_h265_rext.bool'):
profile['CodecProfiles'].append(
{
'Type': 'Video',
'codec': 'h265,hevc',
'Conditions': [
{
'Condition': "EqualsAny",
'Property': "VideoProfile",
'Value': "main|main 10"
}
]
}
)
if self.info['ForceTranscode']:
profile['DirectPlayProfiles'] = []