datarhei / restreamer

The Restreamer is a complete streaming server solution for self-hosting. It has a visually appealing user interface and no ongoing license costs. Upload your live stream to YouTube, Twitch, Facebook, Vimeo, or other streaming solutions like Wowza. Receive video data from OBS and publish it with the RTMP and SRT server.
https://docs.datarhei.com/restreamer/
Apache License 2.0
3.79k stars 438 forks source link

Stream processing even if no client is connected #744

Closed cecchisandrone closed 4 months ago

cecchisandrone commented 4 months ago

Subject of the issue Maybe I'm missing something but while using iftop I discovered that even if no client is connected to the playersite there is a constant 2MB/s bandwidth RX utilisation in the server. It is traffic sent from ip cameras to the server. In theory this should only happen if a client is connected and watching the stream, am I wrong?

Your environment Raspberry PI 5 with dockerized datarhei-core v16.14.0 (linux/arm64)

ioppermann commented 4 months ago

This is true. Restreamer keeps pulling the stream from the camera even if there's nobody watching.

cecchisandrone commented 4 months ago

Is there a way to make this "on demand" to save processing/network resources?

ioppermann commented 4 months ago

Currently not. However, it is already on our feature requests list.