mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
Convert Force transcode to an option
Only for 1080p/H265
This commit is contained in:
parent
d07816d7fb
commit
73d3974e39
2 changed files with 5 additions and 4 deletions
|
@ -60,8 +60,8 @@ class PlayUtils():
|
|||
return False
|
||||
|
||||
# Avoid H265 1080p
|
||||
if result['MediaSources'][0]['Name'].startswith("1080P/H265"):
|
||||
self.logMsg("Skip direct play for 1080P/H265 since format playback is not stable.", 1)
|
||||
if utils.settings('transcodeH265') == "true":
|
||||
self.logMsg("Option to transcode 1080P/H265 enabled.", 1)
|
||||
return False
|
||||
|
||||
canDirectPlay = result['MediaSources'][0]['SupportsDirectPlay']
|
||||
|
@ -131,8 +131,8 @@ class PlayUtils():
|
|||
# FileSystem or Remote, BitRate, supported encoding
|
||||
|
||||
# Avoid H265 1080p
|
||||
if result['MediaSources'][0]['Name'].startswith("1080P/H265"):
|
||||
self.logMsg("Skip direct stream for 1080P/H265 since format playback is not stable.", 1)
|
||||
if utils.settings('transcodeH265') == "true":
|
||||
self.logMsg("Option to transcode 1080P/H265 enabled.", 1)
|
||||
return False
|
||||
|
||||
canDirectStream = result['MediaSources'][0]['SupportsDirectStream']
|
||||
|
|
|
@ -43,6 +43,7 @@
|
|||
<setting id="resumeJumpBack" type="slider" label="On Resume Jump Back Seconds" default="10" range="0,1,120" option="int" visible="true" enable="true" />
|
||||
<setting id="playFromStream" type="bool" label="30002" visible="true" enable="true" default="false" />
|
||||
<setting id="videoBitRate" type="enum" label="30160" values="664 Kbps SD|996 Kbps HD|1.3 Mbps HD|2.0 Mbps HD|3.2 Mbps HD|4.7 Mbps HD|6.2 Mbps HD|7.7 Mbps HD|9.2 Mbps HD|10.7 Mbps HD|12.2 Mbps HD|13.7 Mbps HD|15.2 Mbps HD|16.7 Mbps HD|18.2 Mbps HD|20.0 Mbps HD|40.0 Mbps HD|100.0 Mbps HD [default]|1000.0 Mbps HD" visible="eq(-1,true)" default="17" />
|
||||
<setting id="transcodeH265" type="bool" label="Force transcode 1080p/H265" default="false" />
|
||||
<setting id="markPlayed" type="number" visible="false" default="90" />
|
||||
<setting id="directSteamFailedCount" type="number" visible="false" default="0" />
|
||||
</category>
|
||||
|
|
Loading…
Reference in a new issue