Skip to content

Commit c88be9f

Browse files
authored
Merge pull request #344 from vpeter4/Piers-ffmpeg-options
DVDDemuxFFmpeg: New addon setting to set ffmpeg option 'extension_picky'
2 parents 4dfe657 + df3d7a7 commit c88be9f

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

inputstream.ffmpegdirect/resources/language/resource.language.en_gb/strings.po

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,12 @@ msgctxt "#30046"
133133
msgid "For catchup streams report stream is not realtime"
134134
msgstr ""
135135

136-
#empty strings from id 30047 to 30599
136+
#. help: Advanced - disableStrictHLSfileExtensionCheck
137+
msgctxt "#30047"
138+
msgid "Disable strict HLS file extension check"
139+
msgstr ""
137140

141+
# empty strings from id 30048 to 30599
138142
#. ############
139143
#. help info #
140144
#. ############
@@ -233,3 +237,8 @@ msgstr ""
233237
msgctxt "#30645"
234238
msgid "For certain catchup streams such as HLS reporting that a live stream is not live can improve stream open times. If testing this option works for a catchup stream/provider, then add a [I]\"#KODIPROP=inputstream.ffmpegdirect.is_realtime_stream=false\"[/I] to the M3U entry in question. This setting should not be left enabled for all streams."
235239
msgstr ""
240+
241+
#. help: Advanced - disableStrictHLSfileExtensionCheck
242+
msgctxt "#30646"
243+
msgid "Allows playing HLS streams without file extension or with unsuported file extension. This lowers the security requirements in ffmpeg."
244+
msgstr ""

inputstream.ffmpegdirect/resources/settings.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,11 @@
140140
<default>false</default>
141141
<control type="toggle" />
142142
</setting>
143+
<setting id="disableStrictHLSfileExtensionCheck" type="boolean" label="30047" help="30646">
144+
<level>2</level>
145+
<default>false</default>
146+
<control type="toggle" />
147+
</setting>
143148
</group>
144149
</category>
145150
</section>

src/stream/FFmpegStream.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2287,6 +2287,10 @@ AVDictionary* FFmpegStream::GetFFMpegOptionsFromInput()
22872287
if (url.GetProtocol().empty() || url.IsProtocol("file"))
22882288
av_dict_set(&options, "protocol_whitelist", "file,http,https,tcp,tls,crypto", 0);
22892289

2290+
// Disable strict HLS file extension check
2291+
if (kodi::addon::GetSettingBoolean("disableStrictHLSfileExtensionCheck"))
2292+
av_dict_set(&options, "extension_picky", "0", 0);
2293+
22902294
if (url.IsProtocol("http") || url.IsProtocol("https"))
22912295
{
22922296
std::map<std::string, std::string> protocolOptions;

0 commit comments

Comments
 (0)