mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-05-30 04:46:13 +00:00
Add option to transcode vp9 and av1
This commit is contained in:
parent
2023188e30
commit
d5a9a52a7d
5 changed files with 25 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue