Sunday, March 13, 2022

Save security camera stream video to disk

 I have a security camera that streams video. I can view the video on a web browser but I have searched up and down to find a way to save the video. I have tried VLC. It worked for a while but the newer version doesn't seem to work anymore. I've tried ZoneMinder, but it only captures when there is movement. And it doesn't manage storage space very well. 

It turns out I only need to use curl to capture the video and write to disk. I made a simple script to save videos for the last 7 days only.

curl "http://192.168.1.123/videostream.cgi" --output "file"

it's that simple.

No comments: