From 7b0d810202a448a30c205087fd736f3743ad0fab Mon Sep 17 00:00:00 2001 From: tomkat83 Date: Sun, 15 May 2016 18:01:13 +0200 Subject: [PATCH] New setting: Force transcode HEVC --- resources/language/English/strings.xml | 1 + resources/language/German/strings.xml | 1 + resources/lib/playutils.py | 5 +++++ resources/settings.xml | 1 + 4 files changed, 8 insertions(+) diff --git a/resources/language/English/strings.xml b/resources/language/English/strings.xml index 59659754..390a0a47 100644 --- a/resources/language/English/strings.xml +++ b/resources/language/English/strings.xml @@ -409,6 +409,7 @@ Sync when screensaver is deactivated Force Transcode Hi10P Recently Added: Also show already watched episodes + Force Transcode HEVC Log-out Plex Home User diff --git a/resources/language/German/strings.xml b/resources/language/German/strings.xml index d5f45fff..16499a00 100644 --- a/resources/language/German/strings.xml +++ b/resources/language/German/strings.xml @@ -348,6 +348,7 @@ Sync wenn Bildschirmschoner deaktiviert wird Hi10p Codec Transkodierung erzwingen "Zuletzt hinzugefĆ¼gt": gesehene Folgen anzeigen + HEVC Codec Transkodierung erzwingen Plex Home Benutzer abmelden: diff --git a/resources/lib/playutils.py b/resources/lib/playutils.py index db59a5a4..a2585f56 100644 --- a/resources/lib/playutils.py +++ b/resources/lib/playutils.py @@ -166,6 +166,7 @@ class PlayUtils(): Returns True if we need to transcode because - codec is in h265 - 10bit video codec + - HEVC codec if the corresponding file settings are set to 'true' """ videoCodec = self.API.getVideoCodec() @@ -189,6 +190,10 @@ class PlayUtils(): videoCodec['bitDepth'] == '10'): self.logMsg('Option to transcode 10bit video content enabled.', 1) return True + if (utils.settings('transcodeHEVC') == 'true' and + codec == 'hevc'): + self.logMsg('Option to transcode HEVC video content enabled.', 1) + return True return False diff --git a/resources/settings.xml b/resources/settings.xml index ea3866bb..4de1aa92 100644 --- a/resources/settings.xml +++ b/resources/settings.xml @@ -99,6 +99,7 @@ +