Page 1 of 1

Unable to open subtitles from HTTP

Posted: 18 Mar 2021 16:58
by PiRomant
"Your input can't be opened: VLC is unable to open the MRL 'file:///C:/Windows/System32/%22http%3A%2F%2F... " while opening file with arg :sub-file=http://...
VLC 3.0.12

Re: Unable to open subtitles from HTTP

Posted: 19 Mar 2021 15:53
by RĂ©mi Denis-Courmont
Does http://... look like a file path to you? You probably need to use input-slave.

Re: Unable to open subtitles from HTTP

Posted: 19 Mar 2021 16:22
by PiRomant
Does http://... look like a file path to you? You probably need to use input-slave.
The link looks like http:// ... DLRip.srt?link=3678f5f889a6db1fac6e0af9e1b440b7b0d00ea6&index=8&play
:input-slave= dont let me open local subtitles at all?

Re: Unable to open subtitles from HTTP

Posted: 21 Mar 2021 08:51
by PiRomant
VLC for Linux has the same problem. This might be a general problem.

Code: Select all

VLC is unable to open the MRL 'file:///home/oem/http%3A//...

Re: Unable to open subtitles from HTTP

Posted: 31 May 2021 18:00
by Miyuri
https://forum.videolan.org/viewtopic.php?t=138120
mederi's answer may help for you.
About input-slave, I have tested some other cases that work well.

1. subtitle from http

Code: Select all

vlc http://127.0.0.1:8080/video/demo.mkv :input-slave=http/subtitle://127.0.0.1:8080/video/demo.ass :sub-track=0
2. audio from http

Code: Select all

vlc http://127.0.0.1:8080/video/demoFromYoutube-dl.f303.webm :input-slave=http://127.0.0.1:8080/video/demoFromYoutube-dl.f251.webm :audio-track=0
3. subtitle from local

Code: Select all

vlc http://127.0.0.1:8080/video/demo.mkv :input-slave=/home/demo.ass :sub-track=0
4. audio from local

Code: Select all

vlc http://127.0.0.1:8080/video/demoFromYoutube-dl.f303.webm :input-slave=/home/demoFromYoutube-dl.f251.webm :audio-track=0
5. two subtitles from http

Code: Select all

vlc http://127.0.0.1:8080/video/demo.mkv :input-slave="http/subtitle://127.0.0.1:8080/video/demo.en.ass#http/subtitle://127.0.0.1:8080/video/demo2.fr.ass" :sub-track=0
Other combinations are possible. Attention that use "#" split different inputs, and "#" must be included in quotation mark. You can always use quotation mark to avoid special characters cause some error.

"webm" was downloaded from youtube-dl, video and audio both end with "webm".
I tested the local files with "file:///home/audio.webm", "file/subtitle:///home/demo.ass" that not work, after reading https://superuser.com/questions/685507/ ... -same-time I know local files just use path. Hope these help for you and other searchers.

Re: Unable to open subtitles from HTTP

Posted: 31 May 2021 18:28
by PiRomant
One part of problem has been fixed in https://code.videolan.org/videolan/vlc/-/issues/25549
Another one is https://code.videolan.org/videolan/vlc/-/issues/25645

Code: Select all

main error: unsafe option "input-slave" has been ignored for security reasons