[vlc-devel] A ZIP demux / access module inside VLC ?

Remi Denis-Courmont rdenis at simphalempin.com
Thu Feb 28 14:05:21 CET 2008


On Wed, 27 Feb 2008 18:01:40 +0100, Jean-Philippe ANDRÉ <jpeg at via.ecp.fr>
wrote:
> * What I would want to do now is to write a better module that would be
> able to unzip on-the-fly files. For example, if you insert a .zip file
> in you playlist, then VLC reads what files are in it, adds them to the
> playlist. And if you want to read one of these new elements, then it is
> totally transparent for the user. The behavior of a .zip file would be
> the same as for a folder.
> 
> Do you think it is a good/bad idea ?

If VLC already depends on a ZIP-library (because of skins2??), yes.

> Here is what I think possible to do :
> * Create a demux "zip" which would only read the list of files in a .zip
> * Add this list to the playlist (like modules/access/directory.c does),
>   with a special form (like zip://mycoolzipfile.zip/fileinzip.avi ...)
> * Use an access module to read zip:// URIs.
> 
> Can this work ? Any better solution ?

Yes, as long as you only read local files, as Pierre pointed out.

-- 
Rémi Denis-Courmont
http://www.remlab.net




More information about the vlc-devel mailing list