usb_cam: VIDIOC_S_FMT error 22
When using usb_cam package, I get the following error message:
VIDIOC_S_FMT error 22, Invalid argument
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
asked 2011-02-16 12:09:41 -0600
This post is a wiki. Anyone with karma >75 is welcome to improve it.
When using usb_cam package, I get the following error message:
VIDIOC_S_FMT error 22, Invalid argument
answered 2011-02-16 13:15:04 -0600
This post is a wiki. Anyone with karma >75 is welcome to improve it.
I've seen this error on a lot of my student's computers -- try setting the "pixel_format" parameter to "yuyv"-- this fixed it on all computers I've seen.
Did not work for me, but that it is because my QuickCam outputs in the YUV420 format, which usb_cam does not support. So if anyone else is trying to use a Logitech QuickCam with ROS, you can get usb_cam working by implementing a YUV420 to RGB conversion (not trival) and adding a YUV420 parameter.
in my Ubuntu desktop, I have face the same problem and fixed by the following steps... 1. plug in your usb camera to your computer 2. check whether you have installed any other camera apps like droidcam, etc on your system with the command " ls /dev/video* " without the double quotes.. if you see more than one video devices listed on the terminal then remove any unnecessary camera apps from your system with the command " sudo apt-get autoremove droidcam " assuming that you installed droidcam.. it may be any other camera app in your case... 3. check again your camera device by using the command " ls /dev/video* " without the double quotes.. if you steal see more than one video camera listed on the terminal repeat the procedure in step 2... until you see only one camera which you connected to your computer via usb port remains... this fixed my problem and i am happy to share it to those in the same boat with me.,, Remember: first of all plug in your usb web camera to your system...
Or you can simply go to the launch file and change device name () to one of the available video devices if you are not willing to remove other apps.
worked for me.
I've seen this error on a lot of my student's computers -- try setting the "pixel_format" parameter to "yuyv"-- this fixed it on all computers I've seen.
Asked: 2011-02-16 12:09:41 -0600
Seen: 12,239 times
Last updated: Feb 16 '11
error compiling usb_cam on a mac?
How can I speed up image rectification?
What driver should I use for my USB camera?
camera_calibration for multiple camera setup
camera1394 timestamps for Point Grey USB cameras
getting video from canon vc-c50i camera and sensoray framegrabber