From 9c4c6bf07f05a88dc9effa343be5eb82eee628d8 Mon Sep 17 00:00:00 2001 From: croneter Date: Sun, 14 Apr 2019 11:37:03 +0200 Subject: [PATCH] Fix 4k H265 not being transcoded --- resources/lib/playutils.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/resources/lib/playutils.py b/resources/lib/playutils.py index e5780051..773f9fb8 100644 --- a/resources/lib/playutils.py +++ b/resources/lib/playutils.py @@ -124,8 +124,11 @@ class PlayUtils(): try: resolution = int(videoCodec['resolution']) except (TypeError, ValueError): - LOG.info('No video resolution from PMS, not transcoding.') - return False + if videoCodec['resolution'] == '4k': + resolution = 2160 + else: + LOG.info('No video resolution from PMS, not transcoding.') + return False if 'h265' in codec or 'hevc' in codec: if resolution >= self.getH265(): LOG.info('Option to transcode h265/HEVC enabled. Resolution '