Page 1 of 1

Lua-VLC-Workflow

Posted: 09 Oct 2008 23:18
by jogi
Compliment and thanks for lua scripting - it's an impressive new feature in VLC!

I tried some setups and examples and was just wondering about some things:

1.) Access to Capture Cards / DVB via lua-scripting doesn't seem possible (I guess due to missing internal whitelisting, see viewtopic.php?f=7&t=50436, viewtopic.php?f=14&t=46296, http://article.gmane.org/gmane.comp.vid ... evel/49063) - or did I underestimate Lua-scripting (I tried lua-scripting that I placed in playlist-folder)? (my idea was setting up a script for parsing a config file with dvb-t channels, etc .. and returning a playlist and vlm configuration, etc ...)

2.) Are there any information describing how to write scripts similar to youtube.lua that enable playing embedded flash-videos from websites (for example such as http://www.fabchannel.com/the_gathering_concert, myspace, ... (I'm not sure if it's in general technical possible / restricted))? More specific, how do for example shockwafe-player arguments or information provided in the html-source need to be transformed to pass them correctly as playlist-item into vlc?

Are there perhaps further documents/information that reveal some more details about vlc-lua-scripts? The readme.txt files in the lua-folder and the wiki (http://wiki.videolan.org/Documentation: ... st_Scripts) were a good start. It would be nice to get some hints on the overall workflow of lua inside vlc. Thanks in advance.

Re: Lua-VLC-Workflow

Posted: 11 Oct 2008 14:54
by dionoea
1.) Access to Capture Cards / DVB via lua-scripting doesn't seem possible (I guess due to missing internal whitelisting, see viewtopic.php?f=7&t=50436, viewtopic.php?f=14&t=46296, http://article.gmane.org/gmane.comp.vid ... evel/49063) - or did I underestimate Lua-scripting (I tried lua-scripting that I placed in playlist-folder)? (my idea was setting up a script for parsing a config file with dvb-t channels, etc .. and returning a playlist and vlm configuration, etc ...)
That might be correct. I have a patch to whitelist a whole bunch of input options. I just need to clean it up a bit before applying it. I believe that most DVB settings can be set directly in the URL (ie not with a seperate option) so you should be able to work around most of your problems.

Note that VLC can already open channels.conf files.
2.) Are there any information describing how to write scripts similar to youtube.lua that enable playing embedded flash-videos from websites (for example such as http://www.fabchannel.com/the_gathering_concert, myspace, ... (I'm not sure if it's in general technical possible / restricted))? More specific, how do for example shockwafe-player arguments or information provided in the html-source need to be transformed to pass them correctly as playlist-item into vlc?
Hum, isn't that covered by the small wiki tutorial?
If you're asking about how to find the final flv (or whatever) url if it's not provided as is in the HTTP code, then it's either reading the javascript that builds it or, in youtube's case, using wireshark to analyze network packets and find how they build the URL in the swf code.
Are there perhaps further documents/information that reveal some more details about vlc-lua-scripts? The readme.txt files in the lua-folder and the wiki (http://wiki.videolan.org/Documentation: ... st_Scripts) were a good start. It would be nice to get some hints on the overall workflow of lua inside vlc. Thanks in advance.
Those are the only documents I wrote and I doubt that anyone else has written others. Feel free to ask specific questions and I'll answer them :)

Re: Lua-VLC-Workflow

Posted: 11 Oct 2009 22:23
by david4utv
how can i use (activate) the lua script when using the libvlc.dll object (i am using it in a c# platform)?...