I was able to make some video capture using ffmpeg the code of which I posted below.
My question is, would it be possible for me to make ffmpeg take shots every 3 seconds or so instead of a continues video? Thanks! :)
jun@jun:~$ ffmpeg -t 00:00:30 -f video4linux2 -s 128x96 -r ntsc -i /dev/video0 -f alsa -ac 2 -i pulse -qscale 3 sample_output.avi