antelle / node-stream-zip

node.js library for fast reading of large ZIPs
Other
448 stars 63 forks source link

[Question] Can it work for video streamming? #40

Closed danimesq closed 5 years ago

danimesq commented 5 years ago

@antelle I'm creating a video format that uses frames (PNG images) inside a .zip file. Could the frames be extracted in live stream? I mean, stream the frame files without need to download the full .zip?

antelle commented 5 years ago

Hi! No, zip archives can’t be streamed. The header located in the end, and you need to download the whole file first.

danimesq commented 5 years ago

@antelle , thanks for your information. Not wanting to bother you, but is there a compressed format that supports streamming?

antelle commented 5 years ago

Almost all video formats are already compressed, wrapping them probably doesn’t make a lot of sense.

danimesq commented 5 years ago

Yes, it makes sense: https://usvformat.github.io/

danimesq commented 5 years ago

There is a streammable archive: https://stackoverflow.com/questions/48475351/untar-pack-a-tar-file-while-downloading-is-it-streamable