mpromonet / v4l2rtspserver

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

FR: get an image/snapshot during RTSP streaming #263

Open Ph1975 opened 2 years ago

Ph1975 commented 2 years ago

I use a raspberry as a door-bell with camera (DoorPi). During my absence i´d like to get a Snapshot of the camera as soon as someone rings the door. The v4l2rtspserver is running and blocks the camera (busy device) so i cannot use any of the standard tools to get a quick snapshot. It is also not an option to shutdown the rtsp server, take a snapshot and put it back on - too time consuming.

On the other hand using ffmpeg to grab a snapshot from the stream takes quite some time until the image is pulled/converted/saved - so the visitor already might be out of sight of the camera (with my installation it is around 8-10 seconds from sending the shell-command until the file is stored).

It would be great to have a possibility to get a fast snapshot (2-3 seconds) out of the stream directly through the server.

I use a raspi 3, GBit LAN

ricardoboss commented 2 years ago

I'm having a similar use-case with octoprint, where I want to be able to stream the webcam feed as well as take regular snapshots to create a time lapse.

mpromonet commented 2 years ago

Hi @ricardoboss

Please read the CONTRIBUTING.md, it is really short.

Best Regards, Michel.