Fix playback for 4k force transcode

This commit is contained in:
angelblue05 2017-05-29 23:13:56 -05:00
parent 232daf8dbc
commit 4ed87e877c

View file

@ -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,