mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-13 21:56:11 +00:00
Fix playback for 4k force transcode
This commit is contained in:
parent
232daf8dbc
commit
4ed87e877c
1 changed files with 8 additions and 2 deletions
|
@ -147,7 +147,10 @@ class PlayUtils():
|
||||||
|
|
||||||
if transcodeH265 in ("1", "2", "3") and ("HEVC" in videotrack or "H265" in videotrack):
|
if transcodeH265 in ("1", "2", "3") and ("HEVC" in videotrack or "H265" in videotrack):
|
||||||
# Avoid H265/HEVC depending on the resolution
|
# Avoid H265/HEVC depending on the resolution
|
||||||
|
try:
|
||||||
resolution = int(videotrack.split("P", 1)[0])
|
resolution = int(videotrack.split("P", 1)[0])
|
||||||
|
except ValueError: # 4k resolution
|
||||||
|
resolution = 3064
|
||||||
res = {
|
res = {
|
||||||
|
|
||||||
'1': 480,
|
'1': 480,
|
||||||
|
@ -242,7 +245,10 @@ class PlayUtils():
|
||||||
|
|
||||||
if transcodeH265 in ("1", "2", "3") and ("HEVC" in videotrack or "H265" in videotrack):
|
if transcodeH265 in ("1", "2", "3") and ("HEVC" in videotrack or "H265" in videotrack):
|
||||||
# Avoid H265/HEVC depending on the resolution
|
# Avoid H265/HEVC depending on the resolution
|
||||||
|
try:
|
||||||
resolution = int(videotrack.split("P", 1)[0])
|
resolution = int(videotrack.split("P", 1)[0])
|
||||||
|
except ValueError: # 4k resolution
|
||||||
|
resolution = 3064
|
||||||
res = {
|
res = {
|
||||||
|
|
||||||
'1': 480,
|
'1': 480,
|
||||||
|
|
Loading…
Reference in a new issue