Last active
August 2, 2023 12:39
-
-
Save westonruter/4508842 to your computer and use it in GitHub Desktop.
Grab a snapshot from an RTSP video stream every 1 second.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
url='rtsp://10.0.1.10:554/video-stream' | |
avconv -i $url -r 1 -vsync 1 -qscale 1 -f image2 images%09d.jpg |
Just dumped a Gist for reference here:
Do you have a command line example of use? I get name 'STREAM_URL' is not defined
Ronald
PS. I find that ffmpeg causes Fedora 33 to crash after a day (running it permanently) and Raspbian ffmpeg never gets a result (too old?)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Most is probably protocol overhead and initial negotiation. I ended up using OpenCV for the task + additional motion detection.
Just dumped a Gist for reference here: https://gist.github.com/alfonsrv/a788f8781fb1616e81a6b9cebf1ea2fa