mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
Merge pull request #76 from armills/hi10p-transcode
Ensure transcoding for hi10p videos when requested
This commit is contained in:
commit
39ccf258fa
1 changed files with 5 additions and 0 deletions
|
@ -308,6 +308,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):
|
||||
|
|
Loading…
Reference in a new issue