Error Calling Vidioc_qbuf 22
Contents |
Hi, I'm trying to configure ARtoolkit on Ubuntu 8.10 "Intrepid" (Linux 2.6.27-11-generic on x86_64). In configure I choose 1, n, y, vidioc_streamon y. When I run the simplTest, I get an
Struct V4l2_buffer
error : ubuntu@u .....:/usr/local/ARToolKit/bin$ ./simpleTest Using supplied video config string [-dev=/dev/video0 -channel=0 -debug -palette=YUV420P -width=640
V4l2_buffer Structure
-height=480]. === debug info === vd.name = Philips SPC 1330NC vd.channels = 1 vd.maxwidth = 1600 vd.maxheight = 1200 vd.minwidth = 48 vd.minheight =
Vidioc_querybuf
32 arVideoOpen: width/height adjusted to (640, 480) arVideoOpen: channel adjusted to 0 ==== capture device channel info === error: acquireing channel(0) info How can I solve it ? Thx so much _______________________________________________ ARToolKit mailing list ARToolKit@l ................. http://lists.hitlabnz.org/mailman/listinfo.cgi/artoolkit From: Zorgh
on mplayer Post a reply 26 posts Page 1 of v4l2_requestbuffers 2 1, 2 by piglet » Thu Sep 13, vidioc_reqbufs 2012 9:15 pm I read about "motion" being used by someone else on the forum v4l2_memory_userptr and thought I'd have a try connecting my Logitech Clicksmart 510 webcam.sudo apt-get updatesudo apt-get install mplayermplayer tv:// driver=412:width=640:height=480:device=/dev/video0 -fps 10Success - video across the http://www.hitl.washington.edu/artoolkit/mail-archive/message-thread-01943--ARToolKit--error--acqui.html screen.However when I did:sudo apt-get motion(edited motion.conf for same resolution as worked above, and format JPEG)sudo motion -ncouldn't drive the camera (full details of output below).[1] v4l2_next: VIDIOC_QBUF: Invalid argument[1] Video device fatal error - Closing video device[1] Closing video device /dev/video0Do you have any idea how to get it https://www.raspberrypi.org/forums/viewtopic.php?t=17308&p=178372 working? I don't see any error that I understand.Thanks in advanceOutput from successful mplayer:Code: Select allSelected driver: v4l2
name: Video 4 Linux 2 input
author: Martin Olschewski
comment: first try, more to come ;-)
v4l2: your device driver does not support VIDIOC_G_STD ioctl, VIDIOC_G_PARM was used instead.
Selected device: USB Camera (046d:0901)
Capabilities: video capture read/write streaming
supported norms:
inputs: 0 = spca500;
Current input: 0
Current format: unknown (0x4745504a)
tv.c: norm_from_string(pal): Bogus norm parameter, setting default.
v4l2: ioctl enum norm failed: Inappropriate ioctl for device
Error: Cannot set norm!
Selected input hasn't got a tuner!
v4l2: ioctl set mute failed: Invalid argument
v4l2: ioctl query control failed: Invalid argument
vo: couldn't open the X11 display ()!
vo: couldn't open the X11 display ()!
vo: couldn't open the X11 display ()!vailable
VO XOverlay need a subdriver
[VO_SDL] Using driver: fbcon.
vo: couldn't open the X11 display ()!
==============
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack http://stackoverflow.com/questions/4009439/v4l2-very-simple-example Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up v4l2 very simple example [closed] up vote 15 down vote favorite 7 I'm looking for a error calling simple example for camera access in Linux using V4L2. Where I can find it? As simple, as possible. Thanks, c++ c linux v4l2 v4l share|improve this question asked Oct 24 '10 at 17:26 Alex Ivasyuv 2,748134172 closed as off-topic by genpfault, tmyklebu, lpapp, Divi, Lee Taylor Jun 27 '14 at 1:49 This question appears to be off-topic. The users who voted to close gave this specific reason:"Questions asking us to recommend or error calling vidioc_qbuf find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it." – genpfault, tmyklebu, lpapp, Divi, Lee TaylorIf this question can be reworded to fit the rules in the help center, please edit the question. add a comment| 3 Answers 3 active oldest votes up vote 15 down vote Try the uvccapture code here -> http://staticwave.ca/source/uvccapture/ It is very small yet very concrete example which makes use of all the V4l2 concepts (open,set format, allocate memory, Request Buffer, Dqbuffer and Query-buffer - all intems of ioclts). uvcgrab() function is the one to look for which makes use of Dqbuffer and Query-buffer. ioctl (vd->fd, VIDIOC_DQBUF, &vd->buf); ioctl (vd->fd, VIDIOC_QBUF, &vd->buf) While Studying it you can keep looking for the ioctl definition in this link which will ease your understanding. share|improve this answer edited Aug 1 at 9:50 Patrick B. 5,32531950 answered May 17 '12 at 18:37 Raulp 2,24353062 1 Thanks, I'll check it out! –Alex Ivasyuv Jun 5 '12 at 9:12 add a comment| up vote 2 down vote In the API specification, there is an example, also downloadable as a C file share|improve this answer answer