Skip to content

Commit

Permalink
Merge pull request #303 from njanke96/master
Browse files Browse the repository at this point in the history
Add 'Force transcode av1' setting
  • Loading branch information
mcarlton00 authored Dec 11, 2023
2 parents 6269b28 + b36cb88 commit 60936a7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions resources/language/resource.language.en_gb/strings.po
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,10 @@ msgctxt "#30241"
msgid "Force transcode mpeg4"
msgstr "Force transcode mpeg4"

msgctxt "#30242"
msgid "Force transcode av1"
msgstr "Force transcode av1"

msgctxt "#30246"
msgid "Search"
msgstr "Search"
Expand Down
2 changes: 2 additions & 0 deletions resources/lib/play_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1515,6 +1515,8 @@ def get_item_playback_info(item_id, force_transcode):
filtered_codecs.append("msmpeg4v3")
if settings.getSetting("force_transcode_mpeg4") == "true":
filtered_codecs.append("mpeg4")
if settings.getSetting("force_transcode_av1") == "true":
filtered_codecs.append("av1")

if not force_transcode:
bitrate = get_bitrate(settings.getSetting("max_stream_bitrate"))
Expand Down
1 change: 1 addition & 0 deletions resources/settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
<setting id="force_transcode_mpeg2" type="bool" label="30239" default="false" visible="true" enable="true" />
<setting id="force_transcode_msmpeg4v3" type="bool" label="30240" default="false" visible="true" enable="true" />
<setting id="force_transcode_mpeg4" type="bool" label="30241" default="false" visible="true" enable="true" />
<setting id="force_transcode_av1" type="bool" label="30242" default="false" visible="true" enable="true" />
<setting id="direct_stream_sub_select" type="select" label="30379" lvalues="30380|30381|30382" default="0" visible="true"/>

<setting label="30211" type="lsep"/>
Expand Down

0 comments on commit 60936a7

Please sign in to comment.