View Single Post
Posts: 482 | Thanked: 550 times | Joined on Oct 2010
#5
Originally Posted by nicholes View Post
is there anything which a noob can understand?
The shell script idea seems pretty simple. Unfortunately I don't know enough of gstreamer to completely work it out. Here's my take (two scripts):

update.sh:
Code:
#!/bin/bash
rm twominutesold.avi
mv oneminuteold.avi twominutesold.avi
mv current.avi oneminuteold.avi
(crazy gstreamer stuff to record a minute of video to current.avi)
record.sh:
Code:
#!/bin/bash
watch -n 60 ./update.sh
Record.sh is what you run; every minute it runs update.sh, which deletes the oldest recording and starts a new one. Control-c stops and leaves you with between 2 and 3 minutes of the most recent video.

Anyone want to figure out the gstreamer command?
 

The Following 2 Users Say Thank You to skykooler For This Useful Post: