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)?
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:
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:
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:Then use the
Bus
andDevice
numbers to get more information on that device:Which should print the height, width pairs the camera is capable of - in this case, 1280x1024 plus some smaller ones.
This is also possible with
ffmpeg
, which also gives information on the video encoding (e.g. raw vs mjpeg).Example output:
If you have gstreamer installed with plugin gstreamer1.0-plugins-base-apps you can use gst-device-monitor-1.0 binary.
example output:
this is especially interesting because it shows possible resolutions and FPS and video-format (e.g. MJPEG/YUY2) required FPS can be reached with.
This worked for me:
First get the Bus and Device ID:
lsusb
Which will print something like the following:
In my case I have the Venus USB2.0 Camera attached. So now I run this command:
lsusb -s 001:011 -v | grep -E "Width|Height"
Which produces the following list:
Source: raymii.org