mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 02:36:10 +00:00
Ensure transcoding for hi10p videos when requested
This commit is contained in:
parent
62c284fdd7
commit
989824a58a
1 changed files with 5 additions and 0 deletions
|
@ -303,6 +303,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):
|
||||||
|
|
Loading…
Reference in a new issue