I have a web camera on my T500 Thinkpad. I would like to know its supported resolutions. Is there a way to find it out by means of software (and without having to consult the documentation)?
Two possible approaches:
Use any software which can interact with the webcam (eg,
cheese), save an image and look at the resolution.
Examine the output of
lsusb in a terminal, to find a line describing a webcam:
$ lsusb Bus 001 Device 002: ID 5986:0241 Acer, Inc BisonCam, NB Pro ...
Then use the
Device numbers to get more information on that device:
$ lsusb -s 001:002 -v | egrep "Width|Height" wWidth 640 wHeight 480 wWidth 1280 wHeight 1024 ...
Which should print the height, width pairs the camera is capable of - in this case, 1280x1024 plus some smaller ones.
if you have video 4 linux try this
Also possible with ffmpeg:
ffmpeg -f video4linux2 -list_formats all -i /dev/video0
... [video4linux2,v4l2 @ 0x7fa3a8000b40] Raw : yuyv422 : YUYV 4:2:2 : 640x480 320x240 800x600 1024x600 1024x768 1280x800 1280x1024 [video4linux2,v4l2 @ 0x7fa3a8000b40] Compressed: mjpeg : Motion-JPEG : 640x480 320x240 800x600 1024x600 1024x768 1280x800 1280x1024 ...