Page 1 of 1

Can VLC stream files via XML?

Posted: 17 Oct 2012 04:36
by Espionage724
I recently found a way to stream files from a TV streaming service without using their Java program + WMP, but I would also be interested in trying to figure out how to basically have VLC keep playing back stream files from a certain URL listed on a XML on a website.

To give a very specific example of the XML I'm referring to: http://61.172.249.113:8080/jptv24vod/TBS01.xml

And in order to playback said files on that XML, the format is baseUrl + File.asf so an example would be: mms://61.172.249.113/jptv24vod/TBS01_20121017_0900.asf

Ideally, I would like VLC to read the XML, play a file I specify, and then VLC will continue streaming the files, in order, until I close it, or the connection becomes unavailable. The closest I've come so far was making a Playlist of 10 streams from that XML in a row, which seem to playback one after another nicely, but this requires me to manually copy/paste/alter links one-by-one, and may not work if a filename happens to change (rarely that site will give a 45-minute video instead of 1-hour).

Any suggestions?

Re: Can VLC stream files via XML?

Posted: 17 Oct 2012 08:45
by Jean-Baptiste Kempf
This XML is not standard. Create a lua playlist parser to read it.

Re: Can VLC stream files via XML?

Posted: 17 Oct 2012 21:16
by Espionage724
This XML is not standard. Create a lua playlist parser to read it.
Hmm, I don't have too much experience with lua, so I don't believe I could easily make a parser :/ Would there happen to be a guide somewhere that might explain how to do so, or even a pre-existing project that I could possibly modify (with permission) to do so?

Re: Can VLC stream files via XML?

Posted: 17 Oct 2012 23:48
by Jean-Baptiste Kempf
There are a few of them in the share/lua/playlist folder.

Re: Can VLC stream files via XML?

Posted: 18 Oct 2012 00:48
by Espionage724
There are a few of them in the share/lua/playlist folder.
I took a look there, and still really don't have that great of an idea how to get started :/ (took a look at most of the lua's there). Thanks for pointing out that lua folder though, maybe I can take a look at it later for reference or something.

Perhaps someone more knowledgeable in this matter might be able to make a quick script? To put it simply:

VLC reads: http://61.172.249.113:8080/jptv24vod/TBS01.xml
Takes the value of "playList baseUrl": mms://61.172.249.113/jptv24vod/
Starts streaming the latest file available: (currently) TBS01_20121018_0600.asf
And then at some point either during or after the stream (1-hour timeframe), re-scans the XML for the next video title and then streams it