parent
3e9e572e3c
commit
f86582689b
1 changed files with 5 additions and 4 deletions
|
@ -130,15 +130,16 @@ class PlayUtils():
|
||||||
if window('plex_forcetranscode') == 'true':
|
if window('plex_forcetranscode') == 'true':
|
||||||
log.info('User chose to force-transcode')
|
log.info('User chose to force-transcode')
|
||||||
return True
|
return True
|
||||||
if (settings('transcodeHi10P') == 'true' and
|
|
||||||
videoCodec['bitDepth'] == '10'):
|
|
||||||
log.info('Option to transcode 10bit video content enabled.')
|
|
||||||
return True
|
|
||||||
codec = videoCodec['videocodec']
|
codec = videoCodec['videocodec']
|
||||||
if codec is None:
|
if codec is None:
|
||||||
# e.g. trailers. Avoids TypeError with "'h265' in codec"
|
# e.g. trailers. Avoids TypeError with "'h265' in codec"
|
||||||
log.info('No codec from PMS, not transcoding.')
|
log.info('No codec from PMS, not transcoding.')
|
||||||
return False
|
return False
|
||||||
|
if ((settings('transcodeHi10P') == 'true' and
|
||||||
|
videoCodec['bitDepth'] == '10') and
|
||||||
|
('h265' in codec or 'hevc' in codec)):
|
||||||
|
log.info('Option to transcode 10bit h265 video content enabled.')
|
||||||
|
return True
|
||||||
try:
|
try:
|
||||||
bitrate = int(videoCodec['bitrate'])
|
bitrate = int(videoCodec['bitrate'])
|
||||||
except (TypeError, ValueError):
|
except (TypeError, ValueError):
|
||||||
|
|
Loading…
Reference in a new issue