Ensure transcoding for hi10p videos when requested

This commit is contained in:
Adam Mills 2016-11-18 19:50:34 -05:00
parent 62c284fdd7
commit 989824a58a

View file

@ -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):