Merge pull request #631 from EdiTurn/master

Add an option to transcode HEVC RExt
This commit is contained in:
mcarlton00 2022-04-06 19:00:38 -04:00 committed by GitHub
commit 50c91eba71
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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']: if self.info['ForceTranscode']:
profile['DirectPlayProfiles'] = [] profile['DirectPlayProfiles'] = []

View file

@ -988,3 +988,7 @@ msgstr "Select the libraries to remove"
msgctxt "#33201" msgctxt "#33201"
msgid "Max artwork resolution" msgid "Max artwork resolution"
msgstr "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="33115" type="lsep" />
<setting label="30537" id="transcodeHi10P" type="bool" default="false" visible="true" /> <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="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="30523" id="transcode_mpeg2" type="bool" default="false" visible="true" />
<setting label="30524" id="transcode_vc1" 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" /> <setting label="30525" id="transcode_vp9" type="bool" default="false" visible="true" />