Page 1 of 1

Load subtitles from http:// stopped working

Posted: 04 Oct 2013 23:48
by black3r
Hi,

I have some videos (with subtitles in external .srt files) located online. I want to play them with VLC. A while ago, I was testing this usage case with an older version of VLC (2.0.8.a), now I have the latest (2.1.0) and this is not working anymore...

Example use-case:

/home/roman$ vlc http://192.168.1.2/file.mkv :sub-file=http://192.168.1.2/file.srt
[0x7f9e94c9c2e8] filesystem access error: cannot open file /home/roman/http://192.168.1.2/subs.srt (No such file or directory)
[0x7f9eac008c48] main input error: open of `file:///home/roman/http%3A//192.168.1.2/subs.srt' failed

Looks like it is ignoring the fact that I've given a MRL address and just tries to find it locally, in current directory..
I tested Windows version of 2.1.0 and it is not working there either (with similar error message, also trying to find http:// something locally).

Now I can temporarily downgrade to 2.0.8, but I would like to use the latest version with new features (better HW acceleration with GPU i think) some day + I've created script to create playlists for these files and .html pages with VLC web plug-in so I could share these videos with friends, and I do not want to force them to use earlier version in which this works..

Is this a bug? Is it known? Will it be fixed?

Re: Load subtitles from http:// stopped working

Posted: 05 Oct 2013 09:49
by Rémi Denis-Courmont
sub-file always took a file path as far as I know, as the name implies. input-slave is the more generic option.

Re: Load subtitles from http:// stopped working

Posted: 06 Oct 2013 15:14
by black3r
Well, i currently have VLC 2.0.8.a installed on my Arch Linux and loading subtitles from MRL using sub-file is working here.. I haven't tried the same version on Windows nor any other versions.. I've just tried 2.1.0 on both operating systems and this feature is not working.. I'm aware that the feature name implies loading from file but I don't think it's hard to implement loading from MRL when it already worked (at least in one version)

I've also tried input-slave, but input-slave is not able to load raw .srt subtitles... I've managed to load subtitles using input-slave only when i wrapped them into .mkv container (which is something i would like to avoid..)

Re: Load subtitles from http:// stopped working

Posted: 06 Oct 2013 16:42
by Rémi Denis-Courmont
In any case the sub-file option has been intended for and explicitly marked as a file path for over 10 years...

Re: Load subtitles from http:// stopped working

Posted: 20 Oct 2013 20:34
by Wargasm
Same thing happened to me! I was embedding to a web page but with v2.1 subtitles dont work anymore with the sub-file command.

i would like to avoid to wrapped them into .mkv container too :( HELP!

Re: Load subtitles from http:// stopped working

Posted: 22 Oct 2013 19:32
by Rémi Denis-Courmont
You need to use an input slave then.