settings: Add an option to transcode VC-1

This commit is contained in:
Michal Chvíla 2020-09-24 17:38:28 +02:00
parent fea6fc4cf1
commit 0fc908ec85
3 changed files with 11 additions and 0 deletions

View file

@ -319,6 +319,9 @@ class PlayUtils(object):
if settings('transcode_mpeg2.bool'): if settings('transcode_mpeg2.bool'):
codecs.remove('mpeg2video') codecs.remove('mpeg2video')
if settings('transcode_vc1.bool'):
codecs.remove('vc1')
return ','.join(codecs) return ','.join(codecs)
def get_transcoding_video_codec(self): def get_transcoding_video_codec(self):
@ -334,6 +337,9 @@ class PlayUtils(object):
if settings('transcode_mpeg2.bool'): if settings('transcode_mpeg2.bool'):
codecs.remove('mpeg2video') codecs.remove('mpeg2video')
if settings('transcode_vc1.bool'):
codecs.remove('vc1')
return ','.join(codecs) return ','.join(codecs)
def get_transcoding_audio_codec(self): def get_transcoding_audio_codec(self):

View file

@ -301,6 +301,10 @@ msgctxt "#30523"
msgid "Transcode MPEG2" msgid "Transcode MPEG2"
msgstr "Transcode MPEG2" msgstr "Transcode MPEG2"
msgctxt "#30524"
msgid "Transcode VC-1"
msgstr "Transcode VC-1"
msgctxt "#30527" msgctxt "#30527"
msgid "Ignore specials in next episodes" msgid "Ignore specials in next episodes"
msgstr "Ignore specials in next episodes" msgstr "Ignore specials in next episodes"

View file

@ -46,6 +46,7 @@
<setting label="30537" id="transcodeHi10P" type="bool" default="false" visible="true" /> <setting label="30537" id="transcodeHi10P" type="bool" default="false" visible="true" />
<setting label="30522" id="transcode_h265" type="bool" default="false" visible="true" /> <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="30523" id="transcode_mpeg2" type="bool" default="false" visible="true" />
<setting label="30524" id="transcode_vc1" 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="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="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" /> <setting label="30163" id="audioBitrate" type="enum" values="96|128|160|192|256|320|384" visible="true" default="4" />