For a project, i need a script to take a picture from a webcam continuously, as fast as possible. Right now, i am only getting about 3 fps, where the camera (Logitech QuickCam Chat) should be able to do 30fps.

my current script:
Code:
count=0
while [ true ]
do
streamer -q -o zpic.jpeg
echo "Took Picture $count"
count=`expr $count + 1`
done
It's not the camera, as Cheese Webcam Booth is very smooth, and im pretty sure, 30fps. In addition streamer is giving me sweeping lighter bar (insignificant).

What could i use?