iv-org / invidious

Invidious is an alternative front-end to YouTube
https://invidious.io
GNU Affero General Public License v3.0
16.18k stars 1.79k forks source link

[Feature request] Video cache #4903

Closed mooleshacat closed 2 weeks ago

mooleshacat commented 3 weeks ago

Is your feature request related to a problem? Please describe. No. Just an idea that may help with busy public instances.

Describe the solution you'd like

Video caching on disk. Ability to limit size. Prioritize by busiest videos (least busy video gets pruned if too large).

Describe alternatives you've considered

considered yt, but liking invidious much more 👍

Additional context

I think this feature would be good for those with some disk space, and who run busy / public instances

Fijxu commented 2 weeks ago

Sound cool, but IMO this will not be useful to reduce the load of public instances. Why? Because there is a lot of people watching different videos, so if invidious caches a video in disk, that video will be fetched by only a very small percent of the people using the instances. This could work for videos on the popular page.

unixfox commented 2 weeks ago

That's out of scope. Invidious is only meant to be a proxy.

Also by storing the stream the invidious instance would be liable for the accessible content because it doesn't just proxy the stream anymore.