Merge pull request #76 from armills/hi10p-transcode

Ensure transcoding for hi10p videos when requested
This commit is contained in:
Shaun 2017-01-10 10:55:40 +11:00 committed by GitHub
commit 39ccf258fa

View file

@ -308,6 +308,11 @@ class PlayUtils():
"%s&VideoCodec=h264&AudioCodec=ac3&MaxAudioChannels=6&deviceId=%s&VideoBitrate=%s" "%s&VideoCodec=h264&AudioCodec=ac3&MaxAudioChannels=6&deviceId=%s&VideoBitrate=%s"
% (playurl, deviceId, self.getBitrate()*1000)) % (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 return playurl
def getBitrate(self): def getBitrate(self):