From 3c5e2d0a7ea369e94dcee2389c031e3caa0c49ff Mon Sep 17 00:00:00 2001 From: Edi Turn Date: Mon, 4 Apr 2022 19:38:51 +0800 Subject: [PATCH] Add an option to transcode HEVC RExt --- jellyfin_kodi/helper/playutils.py | 15 +++++++++++++++ .../language/resource.language.en_gb/strings.po | 4 ++++ resources/settings.xml | 1 + 3 files changed, 20 insertions(+) diff --git a/jellyfin_kodi/helper/playutils.py b/jellyfin_kodi/helper/playutils.py index fa43bc4e..a40e6f2b 100644 --- a/jellyfin_kodi/helper/playutils.py +++ b/jellyfin_kodi/helper/playutils.py @@ -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'] = [] diff --git a/resources/language/resource.language.en_gb/strings.po b/resources/language/resource.language.en_gb/strings.po index 7d86542b..63a2b915 100644 --- a/resources/language/resource.language.en_gb/strings.po +++ b/resources/language/resource.language.en_gb/strings.po @@ -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" diff --git a/resources/settings.xml b/resources/settings.xml index ad337517..046481eb 100644 --- a/resources/settings.xml +++ b/resources/settings.xml @@ -46,6 +46,7 @@ +