mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-12-13 02:23:18 +00:00
add av1,vp9 support #545
This commit is contained in:
parent
2023188e30
commit
20a6d65386
1 changed files with 14 additions and 2 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', 'vp9', 'av1', 'mpeg2video', 'vc1']
|
||||
|
||||
if settings('transcode_h265.bool'):
|
||||
codecs.remove('hevc')
|
||||
|
|
@ -309,10 +309,16 @@ 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):
|
||||
codecs = ['h264', 'hevc', 'h265', 'mpeg4', 'mpeg2video', 'vc1']
|
||||
codecs = ['h264', 'hevc', 'h265', 'mpeg4', 'vp9', 'av1','mpeg2video', 'vc1']
|
||||
|
||||
if settings('transcode_h265.bool'):
|
||||
codecs.remove('hevc')
|
||||
|
|
@ -327,6 +333,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_audio_codec(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue