webcam ffmpeg snapshot make it work in person window
It is working using Mplayer, need to fix it for ffmpeg.
Linux: this make the photo: ffmpeg -f v4l2 -i /dev/video0 -vframes 1 test.jpeg -y
this shows some errors ffmpeg -ss 1 -f v4l2 -i /dev/video0 test.jpeg -y
Windows: ffmpeg -ss 1 -f dshow -i video="HP Webcam [2 MP Fixed]" "c:\Users<username>\Desktop\test.jpg" -y
procedure will be to open camera with ffplay and then when user wants the snapshot, close the camera, and call one of above commands