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 | Q&A answers.ros.org |
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.
Please start posting anonymously - your entry will be published after you log in or create a new account.
Asked: 2011-02-16 12:09:41 -0600
Seen: 10,595 times
Last updated: Feb 16 '11
error compiling usb_cam on a mac?
Why can't I install usb-cam package at RPI3?
What are the next steps after stereo calibration?
Help with Installing packages and repositories
Camera calibration parameters not appropriate for SVO package
VIDIOC_S_FMT error 5 , Input/output error
I cannot view the image published by usb_cam
visp_auto_tracker does not output pose data and unable to track properly
usb_cam and image_view keeps giving "videre INI" error
dynamic_reconfigure parameters not known until runtime. How?