Results 1 to 3 of 3
I see examples of how to take snapshots from a file being played with mplayer.
Is it possible to take snapshots while just displaying what the web camera sees (i.e. ...
- 07-22-2010 #1Linux User
- Join Date
- Mar 2008
- Posts
- 287
[SOLVED]Photos with mplayer
I see examples of how to take snapshots from a file being played with mplayer.
Is it possible to take snapshots while just displaying what the web camera sees (i.e. the input)?Last edited by clickit; 07-23-2010 at 06:13 AM.
- 07-23-2010 #2Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,943
Yes, no, it depends. You can take a snapshot using one of the system tools, such as ksnapshot, if the camera is displaying to the screen. If not, then it depends upon what application you are running with the camera. So, please be more precise in describing what you are doing with the camera, and provide details of how your are doing it.
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 07-23-2010 #3Linux User
- Join Date
- Mar 2008
- Posts
- 287
Photos with mplayer
Hey thanks Rubberman. After I posted this, I found the solution late this am. Here it is:
mplayer tv:// -tv driver=v4l2:width=640:height=480:fps=30:device=/dev/video0 -vo xv -ao alsa -hue 0 -contrast 0 -vf screenshot
While watching what the cam sees on screen, press "s" and a sequentially numbered file is created with the image. Files start as shot0001.png and increment.
Note in the above: hue and contrast need not be given as that is the default.
width and height can be stipulated for a smaller/larger image.
I have not proved that -ao alsa works. My messages indicate that sound is muted.
There are a few messages I have yet to resolve also but IT WORKS! Finally.


Reply With Quote
