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 @@
+