Getting information about your v4l device

You can use the “v4l2-ctl” command to get information about your device:

$ v4l2-ctl -d /dev/video0 --all -L
Driver Info:
	Driver name   : pwc
	Card type     : Logitech QuickCam Notebook Pro
	Bus info      : usb-0000:00:1d.0-2
	Driver version: 655372
	Capabilities  : 0x05000001
		Video Capture
Format Video Capture:
	Width/Height  : 160/120
	Pixel Format  : YU12
	Field         : None
	Bytes per Line: 240
	Size Image    : 28800
	Colorspace    : Unknown (00000000)
Video input : 0 (usb)
Video Standard = 0x00000000
                     brightness (int)  : min=0 max=128 step=1 default=64 value=63
                       contrast (int)  : min=0 max=64 step=1 default=0 value=50
                     saturation (int)  : min=-100 max=100 step=1 default=0 value=0
             auto_white_balance (bool) : default=0 value=1
                       red_gain (int)  : min=0 max=256 step=1 default=0 value=128
                      blue_gain (int)  : min=0 max=256 step=1 default=0 value=128
                          gamma (int)  : min=0 max=32 step=1 default=0 value=9
       shutter_speed_(exposure) (int)  : min=0 max=256 step=1 default=200 value=227
              auto_gain_enabled (bool) : default=1 value=1
                     gain_level (int)  : min=0 max=256 step=1 default=0 value=-5
error 22 getting ctrl Save User Settings
error 22 getting ctrl Restore User Settings
error 22 getting ctrl Restore Factory Settings
                    colour_mode (bool) : default=0 value=1
                   auto_contour (bool) : default=0 value=1
                        contour (int)  : min=0 max=63 step=1 default=0 value=-1
         backlight_compensation (bool) : default=0 value=0
                    flickerless (bool) : default=0 value=0
                noise_reduction (int)  : min=0 max=3 step=1 default=0 value=1

In order to use this program you need to install the ivtv-utils package:

$ sudo apt-get install ivtv-utils