Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question
up vote 15 down vote accepted

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.

share|improve this answer
    
Thanks, I got WWidth 640 WHeight 480 WWidth 320 WHeight 240 WWidth 800 WHeight 600 WWidth 1024 WHeight 600 WWidth 1024 WHeight 768 WWidth 1280 WHeight 800 WWidth 1280 WHeight 1024 WWidth 640 WHeight 480 WWidth 320 WHeight 240 WWidth 800 WHeight 600 WWidth 1024 WHeight 600 WWidth 1024 WHeight 768 WWidth 1280 WHeight 800 WWidth 1280 WHeight 1024 I guess I can assume that the highest combination is the physical resolution. – sup Nov 10 '12 at 9:48

Note that the lsusb solution doesn't seem to work for all webcams — it doesn't output Width and Height for my Hercules Deluxe, for instance. The cheese solution works though, available resolutions are available under Edit > Preferences.

share|improve this answer

if you have video 4 linux try this

v4l2-ctl --list-formats-ext

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

share|improve this answer
    
First you need to install the utility: sudo apt-get install v4l-utils – sup Feb 21 at 13:31

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.