diff --git a/resources/language/English/strings.xml b/resources/language/English/strings.xml
index 3a8d7ba4..1a145adc 100644
--- a/resources/language/English/strings.xml
+++ b/resources/language/English/strings.xml
@@ -299,6 +299,7 @@
Server messages
Generate a new device Id
Sync when screensaver is deactivated
+ Force Transcode Hi10P
Welcome
diff --git a/resources/lib/playutils.py b/resources/lib/playutils.py
index 622781d2..a1de2948 100644
--- a/resources/lib/playutils.py
+++ b/resources/lib/playutils.py
@@ -18,7 +18,6 @@ class PlayUtils():
def __init__(self, item):
self.item = item
-
self.clientInfo = clientinfo.ClientInfo()
self.addonName = self.clientInfo.getAddonName()
@@ -102,6 +101,11 @@ class PlayUtils():
videotrack = self.item['MediaSources'][0]['Name']
transcodeH265 = settings('transcodeH265')
+ videoprofiles = [x['Profile'] for x in self.item['MediaSources'][0]['MediaStreams'] if 'Profile' in x]
+ transcodeHi10P = utils.settings('transcodeHi10P')
+
+ if transcodeHi10P == "true" and "H264" in videotrack and "High 10" in videoprofiles:
+ return False
if transcodeH265 in ("1", "2", "3") and ("HEVC" in videotrack or "H265" in videotrack):
# Avoid H265/HEVC depending on the resolution
@@ -207,6 +211,11 @@ class PlayUtils():
videotrack = self.item['MediaSources'][0]['Name']
transcodeH265 = utils.settings('transcodeH265')
+ videoprofiles = [x['Profile'] for x in self.item['MediaSources'][0]['MediaStreams'] if 'Profile' in x]
+ transcodeHi10P = utils.settings('transcodeHi10P')
+
+ if transcodeHi10P == "true" and "H264" in videotrack and "High 10" in videoprofiles:
+ return False
if transcodeH265 in ("1", "2", "3") and ("HEVC" in videotrack or "H265" in videotrack):
# Avoid H265/HEVC depending on the resolution
@@ -423,4 +432,4 @@ class PlayUtils():
else:
playurlprefs += "&AudioBitrate=192000"
- return playurlprefs
\ No newline at end of file
+ return playurlprefs
diff --git a/resources/settings.xml b/resources/settings.xml
index 24458165..77d57a33 100644
--- a/resources/settings.xml
+++ b/resources/settings.xml
@@ -55,6 +55,7 @@
+