Add option to transcode vp9 and av1

This commit is contained in:
Matt 2021-07-04 11:45:44 -04:00
parent 2023188e30
commit d5a9a52a7d
5 changed files with 25 additions and 1 deletions

View file

@ -297,7 +297,7 @@ class PlayUtils(object):
return int(xbmc.getInfoLabel('System.ScreenWidth')), int(xbmc.getInfoLabel('System.ScreenHeight'))
def get_directplay_video_codec(self):
codecs = ['h264', 'hevc', 'h265', 'mpeg4', 'mpeg2video', 'vc1']
codecs = ['h264', 'hevc', 'h265', 'mpeg4', 'mpeg2video', 'vc1', 'vp9', 'av1']
if settings('transcode_h265.bool'):
codecs.remove('hevc')
@ -309,6 +309,12 @@ class PlayUtils(object):
if settings('transcode_vc1.bool'):
codecs.remove('vc1')
if settings('transcode_vp9.bool'):
codecs.remove('vp9')
if settings('transcode_av1.bool'):
codecs.remove('av1')
return ','.join(codecs)
def get_transcoding_video_codec(self):