e42.uk Circle Device

 

Quick Reference

title>mplayer v4l2 snapshots

mplayer v4l2 snapshots

Taking snapshots from webcam or tv tuner through Video For Linux v2 (v4l2).

mplayer -vf screenshot \
-tv driver=v4l2:width=1280:height=1024:device=/dev/video1:outfmt=yuy2 \
tv://1

Now line up the thing you want a picture of and press 's', to continually take snapshots press 'S' and to stop press 'S' again.

Want to see some information about your device?

v4l2-ctl --device /dev/video0 --all

List supported pixel formats:

v4l2-ctl --list-formats

List resolutions (gives lots of detail!):

v4l2-ctl --list-formats-ext

Quick Links: Techie Stuff | General | Personal | Quick Reference