Taking still images from stream
Posted: 19 Feb 2016 15:47
Hi,
I'm looking for a way to take still images from a video stream on the command line, not capture the actual stream but just occasional frames.
Specifically: I have a web cam, which I want to use to create a time lapse video of plants growing, and in order to do this I want to take a photo every 5-10 minutes or so during daylight hours (that would be a cron job). Exact timing is not important. I'm not interested in the actual stream (way too much data; I'll have to record for 1-2 months), just a frame on a regular basis, saved to a specific directory, so later I can stitch them together to create a video.
This WiFi connected web cam streams at rtsp://user:password@IP-address:10554/tcp/av0_0 This stream I can see on the screen just fine using the VLC client. Of course I can then also take screen shots of the video manually. I assume capturing of the stream on the command line is easy, seen many references to that, but that's way too much data for me to handle.
Ideally: a single command that fires up VLC, connects to the web cam, takes a screen shot, and saves it.
Alternative: fire up VLC, capture and save a second or two of video before it quits again, take a single frame of that recorded video (the first would do), save the frame and delete the video.
Suggestions?
I'm looking for a way to take still images from a video stream on the command line, not capture the actual stream but just occasional frames.
Specifically: I have a web cam, which I want to use to create a time lapse video of plants growing, and in order to do this I want to take a photo every 5-10 minutes or so during daylight hours (that would be a cron job). Exact timing is not important. I'm not interested in the actual stream (way too much data; I'll have to record for 1-2 months), just a frame on a regular basis, saved to a specific directory, so later I can stitch them together to create a video.
This WiFi connected web cam streams at rtsp://user:password@IP-address:10554/tcp/av0_0 This stream I can see on the screen just fine using the VLC client. Of course I can then also take screen shots of the video manually. I assume capturing of the stream on the command line is easy, seen many references to that, but that's way too much data for me to handle.
Ideally: a single command that fires up VLC, connects to the web cam, takes a screen shot, and saves it.
Alternative: fire up VLC, capture and save a second or two of video before it quits again, take a single frame of that recorded video (the first would do), save the frame and delete the video.
Suggestions?