tiny-pilot / tinypilot

Use your Raspberry Pi as a browser-based KVM.
https://tinypilotkvm.com
MIT License
3.02k stars 252 forks source link

Stop video capture when no clients are active #514

Open GeorgeHahn opened 3 years ago

GeorgeHahn commented 3 years ago

Pausing video capture while no clients are active would reduce power usage & heat production from the Pi's processor and the capture card.

This seems related to https://github.com/mtlynch/tinypilot/issues/317 since it also involves dynamically altering the stream.

mtlynch commented 3 years ago

Thanks for filing this!

I thought the current behavior was to pause video capture when no clients are connected, but I just tested it and was able to verify that it continues processing video on zero clients.

I'll look into how to remediate this.