mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 10:16:11 +00:00
Add AV1 as a preferred codec
This commit is contained in:
parent
efe059a34d
commit
f4048381f0
2 changed files with 6 additions and 1 deletions
|
@ -390,6 +390,11 @@ class PlayUtils(object):
|
||||||
elif not settings("transcode_h265.bool"):
|
elif not settings("transcode_h265.bool"):
|
||||||
codecs.insert(1, "hevc")
|
codecs.insert(1, "hevc")
|
||||||
|
|
||||||
|
if settings("videoPreferredCodec") == "AV1":
|
||||||
|
codecs.insert(0, "av1")
|
||||||
|
elif not settings("transcode_av1.bool"):
|
||||||
|
codecs.append("av1")
|
||||||
|
|
||||||
if settings("transcode_mpeg2.bool"):
|
if settings("transcode_mpeg2.bool"):
|
||||||
codecs.remove("mpeg2video")
|
codecs.remove("mpeg2video")
|
||||||
|
|
||||||
|
|
|
@ -54,7 +54,7 @@
|
||||||
<setting label="30524" id="transcode_vc1" 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="30525" id="transcode_vp9" type="bool" default="false" visible="true" />
|
||||||
<setting label="30526" id="transcode_av1" 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="30161" id="videoPreferredCodec" type="select" values="H264/AVC|H265/HEVC|AV1" 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" />
|
||||||
<setting label="30164" id="audioMaxChannels" type="slider" range="2,1,6" option="int" visible="true" default="6" />
|
<setting label="30164" id="audioMaxChannels" type="slider" range="2,1,6" option="int" visible="true" default="6" />
|
||||||
|
|
Loading…
Reference in a new issue