How can I find out the supported webcam resolutions?

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)?


If you have video4linux installed try this:

v4l2-ctl -d /dev/video0 --list-formats-ext

Specify your camera device with -d argument, however it can be ommited if you are convinced that there's only one video device connected.

You should get something like:

    ioctl: VIDIOC_ENUM_FMT
    Type: Video Capture

    [0]: 'JPEG' (JFIF JPEG, compressed)
            Size: Discrete 320x240
            Size: Discrete 640x480

Source : How can I list the available video modes for a USB webcam in Linux?


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 Bus and 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.