Can VLC stream files via XML?

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
Espionage724
New Cone
New Cone
Posts: 6
Joined: 17 Oct 2012 04:28

Can VLC stream files via XML?

Postby Espionage724 » 17 Oct 2012 04:36

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?

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Can VLC stream files via XML?

Postby Jean-Baptiste Kempf » 17 Oct 2012 08:45

This XML is not standard. Create a lua playlist parser to read it.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

Espionage724
New Cone
New Cone
Posts: 6
Joined: 17 Oct 2012 04:28

Re: Can VLC stream files via XML?

Postby Espionage724 » 17 Oct 2012 21:16

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?

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Can VLC stream files via XML?

Postby Jean-Baptiste Kempf » 17 Oct 2012 23:48

There are a few of them in the share/lua/playlist folder.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

Espionage724
New Cone
New Cone
Posts: 6
Joined: 17 Oct 2012 04:28

Re: Can VLC stream files via XML?

Postby Espionage724 » 18 Oct 2012 00:48

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


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 95 guests