Hi,
The VIDEOSYNC ioctl() is used to free the previous frame I believe. =20
My understanding is that there is some kind of double buffering =20
happening, and this is used to coordinate it.
I've tried ARToolKit with quite a few V4L cameras many years ago, and =20=
we never had this problem. For some reason it appears as though your =20
video capture card does not support this ioctl(), perhaps you could =20
email the driver author. While commenting out that line of code might =20=
work for you, I believe it is needed to make all other V4L cameras =20
work properly, so I doubt we can change the CVS source code.
regards,
Wayne
------------------------------------------------------------------------=20=
-
Dr Wayne Piekarski pho: =20
+61-8-8302-5070
Researcher and Senior Lecturer fax: =20
+61-8-8302-3381
Co Director - Wearable Computer Lab mob: =20
+61-407-395-889
School of Computer and Information Science ema: =20
wayne@c ..............
University of South Australia www: http://=20
www.tinmith.net
On 16/05/2007, at 2:30 AM, JS wrote:
> Hi,
>
> I post this message on this list as I found a fix for a problem that I
> had and that I think other people might come upon. I couldn't find =20
> a fix
> on the web, so here it is.
>
> I have Linux Debian on an Intel, with NVIDIA video card and a =20
> Hauppauge
> Video capture card.
>
> The problem arise when I'm trying to calibrate my camera.
> When lauching calib_camera2, I first have a blue screen: I need to
> launch xawtv _after_ the calib_camera2 program. The problem is that =20=
> when
> I first click on the image, an error message:
> error: videosync
>
> starts to print and I can't do anything.
>
> The trick was simply to comment out the following lines (582-585) in
> lib/SRC/VideoLinuxV4L/video.c:
> if(ioctl(vid->fd, VIDIOCSYNC, &vid->video_cont_num) < 0){
> printf("error: videosync\n");
> return NULL;
> }
>
> ie.
> // if(ioctl(vid->fd, VIDIOCSYNC, &vid->video_cont_num) < 0){
> // printf("error: videosync\n");
> // return NULL;
> // }
>
> I don't know exactly what this line checks for, but in my case
> commenting it out just closed the issue.
>
> Best,
>
>
> --=20
> J. S. Sen=E9cal
> http://drone.ws
>
>
>
|