Taking single images from webcam: Less bizarre way of doing it?
I have a usb camera streaming with mjpg_streamer. How can I get a snapshot file saved that is less bizarre than how I am doing it now.
How I am doing it now:
mjpg_streamer -b -i "input_uvc.so -d /dev/video0"
and then every time I want a snapshot I do:
wget -O /tmp/capture.jpg http://127.0.0.1:8080/?action=snapshot
This works but it offends my sensibilities. Isn't there a cleaner way to do this?
Thanks in advance,
@Alan-Smith I think thats the way how you shot images with webcams - thats why i decided to use gphoto2 library to shot photos from a camera.
Well, that wont be an alternative for you if you need to take videos also. Anyway it may be worth to have a look on the library because some webcams are supported also: