BTW, that dosen't works neither: local archive_url = "http://www.website.org/download/somearchive.zip" local zipped_data = get_data(archive_url) local stream = vlc.memory_stream(zipped_data) stream:addfilter("zip") Right now I dump the zipped data in a temporary file, then use vl...
Hi I want to use vlc.stream to download data contained in a file in an remote zipped file, but it return an error if the file name containe a dash: - it seems --That works local url = "zip://http://www.example.com/download/somearchive!/somefile.txt" local stream = vlc.stream(url) local dat...
This is an working example of "net.poll" that I wrote for Vlsub. It just perform a get, using "vlc.net.send(fd, request)" to send request and vlc.net.POLLIN + "vlc.net.recv(fd, 1024)" to get data from the server. If it doesn't suit you, you need to be more specific. fun...
That's would be nice! I took a quick look at the code, the function does exist here: https://www.videolan.org/developers/vlc/modules/access/zip/unzip/ioapi.c Somethind else; I suppose it would not be possible to do something like this: os.execute("cvlc -vvv file:////home/vlc/dummy_file.txt --so...
If I understood it correctly, the problem is there isn't an implementation of the hash function in Lua (and I don't even know if it will be fast enough). I will try to implement it and eventually post it here so others can contribute. Hi I just discovered your post and I wanted to tell you that I a...
Well, it use XML-RPC protocol so binary/zipped data needs to be base64-encoded. And gzip encoding is used to speed up data transfer. It seems this format is pretty common with this protocol.
I'd like to offer the possibility to upload data to a website. The website require the data to be gzipped + base64 encoded. Base64 encode is easy with LUA. For the deflate algorithm, I could use a library like "lua-zlib" but I'd rather not because that means compile it under each OS (it se...
I noticed that vlc use the zlib library. Is that a method to gzip compress data with zlib through vlc_object in LUA scripis?
If not what would be the most portable way to achieve that in a script?
I intend to use this function for the extension VLsub.