From d5a9a52a7d4b9105e0372ec6fc3372bb60513d04 Mon Sep 17 00:00:00 2001 From: Matt Date: Sun, 4 Jul 2021 11:45:44 -0400 Subject: [PATCH] Add option to transcode vp9 and av1 --- build.py | 0 jellyfin_kodi/helper/playutils.py | 8 +++++++- resources/language/resource.language.en_gb/strings.po | 8 ++++++++ resources/language/resource.language.en_us/strings.po | 8 ++++++++ resources/settings.xml | 2 ++ 5 files changed, 25 insertions(+), 1 deletion(-) mode change 100644 => 100755 build.py diff --git a/build.py b/build.py old mode 100644 new mode 100755 diff --git a/jellyfin_kodi/helper/playutils.py b/jellyfin_kodi/helper/playutils.py index afbbe2d4..4f27eb5e 100644 --- a/jellyfin_kodi/helper/playutils.py +++ b/jellyfin_kodi/helper/playutils.py @@ -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): diff --git a/resources/language/resource.language.en_gb/strings.po b/resources/language/resource.language.en_gb/strings.po index c7571fe4..b11a1baa 100644 --- a/resources/language/resource.language.en_gb/strings.po +++ b/resources/language/resource.language.en_gb/strings.po @@ -305,6 +305,14 @@ msgctxt "#30524" msgid "Transcode VC-1" msgstr "Transcode VC-1" +msgctxt "#30525" +msgid "Transcode VP9" +msgstr "Transcode VP9" + +msgctxt "#30526" +msgid "Transcode AV1" +msgstr "Transcode AV1" + msgctxt "#30527" msgid "Ignore specials in next episodes" msgstr "Ignore specials in next episodes" diff --git a/resources/language/resource.language.en_us/strings.po b/resources/language/resource.language.en_us/strings.po index c8bb7a0d..55723e8f 100644 --- a/resources/language/resource.language.en_us/strings.po +++ b/resources/language/resource.language.en_us/strings.po @@ -957,6 +957,14 @@ msgctxt "#30524" msgid "Transcode VC-1" msgstr "Transcode VC-1" +msgctxt "#30525" +msgid "Transcode VP9" +msgstr "Transcode VP9" + +msgctxt "#30526" +msgid "Transcode AV1" +msgstr "Transcode AV1" + msgctxt "#30523" msgid "Transcode MPEG2" msgstr "Transcode MPEG2" diff --git a/resources/settings.xml b/resources/settings.xml index 9d9fc100..1d43f1c3 100644 --- a/resources/settings.xml +++ b/resources/settings.xml @@ -48,6 +48,8 @@ + +