mpromonet / v4l2rtspserver

RTSP Server for V4L2 device capture supporting HEVC/H264/JPEG/VP8/VP9
The Unlicense
1.86k stars 428 forks source link

Turn on web cam only during streaming . . . #254

Open zinahe opened 3 years ago

zinahe commented 3 years ago

Hi,

First of all, thank you for all the hard work. I have found v4l2rtspserver to be a very useful tool. I'm running it on RPi-3B with Logitec C920 which does hardware h264 compression and it works beautifully.

Now to my question; I have noticed that the v4l2rtspserver turns on the webcam /dev/video0 as soon as I start the server and keeps it running whether there is a client connected to it or not. The C920 is a beast and draws significant current from the raspberry pi. I am wondering if there is a way to make the server turn on the webcam only when it is actually streaming to a client.

Regards,

Zinahe A.