I was wondering if it's possible to save a periodic JPEG snapshot of an RTP stream to disk with VLC?
I have an IP security camera which I can configure to provide an MJPEG stream at 1-12fps, and I'd to end up with a folder containing a series of jpeg files taken from the stream at, say, 10 second intervals, named with a timestamp.
I don't want to just save the stream at 1fps because I need to record 24 hours a day for several years from a number of cameras, and minimising storage space while maximising snapshot quality is important.
It'd also be great if the snapshot would save the actual JPEG encoded in the MJPEG stream, rather than re-encoding the frame, as image quality is important.
An example of what I'd like to end up with:
Code: Select all
2013-05-24 17.30.00.jpg
2013-05-24 17.30.30.jpg
2013-05-24 17.31.00.jpg
2013-05-24 17.31.30.jpg
...
Code: Select all
vlc.exe "rtsp://111.222.333.444/live.sdp" :sout=#file{dst="%logtime% stream.mp4"}}
Any help in the right direction here is most appreciated - I've spent a day or so trying various command line options and settings in the GUI streaming options, but haven't managed to get quite what I'm after.
Thanks in advance,
Sam.