warren-bank / HLS-Proxy

Node.js server to proxy HLS video streams
http://webcast-reloaded.surge.sh/proxy.html
GNU General Public License v2.0
238 stars 68 forks source link

(request for feature) Option to prefetch data into disk (instead of memory) #30

Closed dur3x closed 1 year ago

dur3x commented 1 year ago

First of all, thanks a lot for all your great job, it's awesome and I use it everyday ;-)

This issue is just a request for feature about the prefetch option. The prefetch option works fine by using the memory but I have some case in which I'm limited with the memory but want to benefit from the prefetch option. So I think it would be great to have an option to be able to prefetch on disk

warren-bank commented 1 year ago

you got it..

v3.4.0 adds the ability to write the cache of video segments to the filesystem, rather than holding it in RAM.

for example:

hlsd --port 8080 -v 1 --prefetch --cache-storage "filesystem" --cache-storage-fs-dirpath "/path/to/cache/directory"
dur3x commented 1 year ago

Thank you so much :-) I can confirm, it works perfectly 🥇