Add HEVC transcode setting

This commit is contained in:
angelblue05 2016-01-09 19:41:00 -06:00
parent 950ae74939
commit 86f4039b89
2 changed files with 11 additions and 0 deletions

View file

@ -96,6 +96,11 @@ class PlayUtils():
# Avoid H265 1080p
self.logMsg("Option to transcode 1080P/H265 enabled.", 1)
return False
elif (utils.settings('transcodeHEVC') == "true" and
item['MediaSources'][0]['Name'].startswith("1080P/HEVC")):
# Avoid H265 1080p
self.logMsg("Option to transcode 1080P/HEVC enabled.", 1)
return False
canDirectPlay = item['MediaSources'][0]['SupportsDirectPlay']
# Make sure direct play is supported by the server
@ -196,6 +201,11 @@ class PlayUtils():
# Avoid H265 1080p
self.logMsg("Option to transcode 1080P/H265 enabled.", 1)
return False
elif (utils.settings('transcodeHEVC') == "true" and
item['MediaSources'][0]['Name'].startswith("1080P/HEVC")):
# Avoid H265 1080p
self.logMsg("Option to transcode 1080P/HEVC enabled.", 1)
return False
# Requirement: BitRate, supported encoding
canDirectStream = item['MediaSources'][0]['SupportsDirectStream']