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 |
When using usb_cam package, I get the following error message:
VIDIOC_S_FMT error 22, Invalid argument
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,238 times
Last updated: Feb 16 '11