Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use less resources while idle? #27

Open
epheterson opened this issue May 26, 2022 · 1 comment
Open

Use less resources while idle? #27

epheterson opened this issue May 26, 2022 · 1 comment

Comments

@epheterson
Copy link

epheterson commented May 26, 2022

Is it possible for this docker container to react to the need for a stream instead of always being available, and maintain it for a period of time after the last request then stop again? It's my only docker container that has a constant relatively-high CPU usage of 7-9%.

I do like how responsive the stream is and how little latency is added due to the conversion, so I wouldn't want it to come at the cost of losing those benefits, but perhaps it could ramp up when needed, maintain for 30m or so after the last request, then shut down until a new request comes in. Not sure how complicated that would be to implement but would save a lot of resources.

For context, I'm using this with OctoPrint, so I want it responsive while a print is going on (which is pretty rare) and idle otherwise.

@epheterson
Copy link
Author

This project implements streaming only when requested, can yours do the same? Yours is much simpler to implement.

https://github.com/Roverr/rtsp-stream

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant