From 7bd02861dc58576372e1d1dac2cee520d9691bce Mon Sep 17 00:00:00 2001 From: croneter Date: Sun, 8 Sep 2019 11:58:09 +0200 Subject: [PATCH] Allow for 4k transcoding and direct streaming --- resources/lib/playback_decision.py | 4 ++++ resources/settings.xml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/resources/lib/playback_decision.py b/resources/lib/playback_decision.py index bf4bec0a..b7058558 100644 --- a/resources/lib/playback_decision.py +++ b/resources/lib/playback_decision.py @@ -249,6 +249,8 @@ def get_bitrate(): '8': 12000, '9': 20000, '10': 40000, + '11': 35000, + '12': 50000 } # max bit rate supported by server (max signed 32bit integer) return bitrate.get(videoQuality, MAX_SIGNED_INT) @@ -271,6 +273,8 @@ def get_resolution(): '8': '1920x1080', '9': '1920x1080', '10': '1920x1080', + '11': '3840x2160', + '12': '3840x2160' } return res[chosen] diff --git a/resources/settings.xml b/resources/settings.xml index ff43590b..a71ba967 100644 --- a/resources/settings.xml +++ b/resources/settings.xml @@ -112,7 +112,7 @@ - +