Merge pull request #545 from mcarlton00/transcode-codecs

Add option to transcode vp9 and av1
This commit is contained in:
Odd Stråbø 2021-07-18 11:17:49 +02:00 committed by GitHub
commit 8072595c17
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 25 additions and 1 deletions

0
build.py Normal file → Executable file
View file

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):

View file

@ -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"

View file

@ -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"

View file

@ -48,6 +48,8 @@
<setting label="30522" id="transcode_h265" type="bool" default="false" visible="true" />
<setting label="30523" id="transcode_mpeg2" type="bool" default="false" visible="true" />
<setting label="30524" id="transcode_vc1" type="bool" default="false" visible="true" />
<setting label="30525" id="transcode_vp9" type="bool" default="false" visible="true" />
<setting label="30526" id="transcode_av1" type="bool" default="false" visible="true" />
<setting label="30161" id="videoPreferredCodec" type="select" values="H264/AVC|H265/HEVC" visible="eq(-2,false)" default="H264/AVC" />
<setting label="30162" id="audioPreferredCodec" type="select" values="AAC|AC3|MP3|Opus|FLAC|Vorbis" visible="true" default="AAC" />
<setting label="30163" id="audioBitrate" type="enum" values="96|128|160|192|256|320|384" visible="true" default="4" />