Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux User
    Join Date
    Mar 2008

    [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.

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    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!

  3. #3
    Linux User
    Join Date
    Mar 2008

    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.

  4. $spacer_open

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts