From 989824a58a137a8710ac7ea4c81397b4c0fab8a8 Mon Sep 17 00:00:00 2001 From: Adam Mills Date: Fri, 18 Nov 2016 19:50:34 -0500 Subject: [PATCH] Ensure transcoding for hi10p videos when requested --- resources/lib/playutils.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/resources/lib/playutils.py b/resources/lib/playutils.py index e7b65af9..40b26024 100644 --- a/resources/lib/playutils.py +++ b/resources/lib/playutils.py @@ -303,6 +303,11 @@ class PlayUtils(): "%s&VideoCodec=h264&AudioCodec=ac3&MaxAudioChannels=6&deviceId=%s&VideoBitrate=%s" % (playurl, deviceId, self.getBitrate()*1000)) + # Limit to 8 bit if user selected transcode Hi10P + transcodeHi10P = settings('transcodeHi10P') + if transcodeHi10P == "true": + playurl = "%s&MaxVideoBitDepth=8" % playurl + return playurl def getBitrate(self):