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'] = []

View File

@ -988,3 +988,7 @@ msgstr "Select the libraries to remove"
msgctxt "#33201"
msgid "Max artwork resolution"
msgstr "Max artwork resolution"
msgctxt "#33202"
msgid "Transcode H265/HEVC RExt"
msgstr "Transcode H265/HEVC RExt"

View File

@ -46,6 +46,7 @@
<setting label="33115" type="lsep" />
<setting label="30537" id="transcodeHi10P" type="bool" default="false" visible="true" />
<setting label="30522" id="transcode_h265" type="bool" default="false" visible="true" />
<setting label="33202" id="transcode_h265_rext" type="bool" default="false" visible="eq(-1,false)" />
<setting label="30523" id="transcode_mpeg2" type="bool" default="false" visible="true" />
<setting label="30524" id="transcode_vc1" type="bool" default="false" visible="true" />
<setting label="30525" id="transcode_vp9" type="bool" default="false" visible="true" />