Invalid Argument

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hi

I'm trying to port an v4l application to v4l2 but in first calls my application crash with:

   "Invalid argument" when i use :

    if ( ioctl(grab_fd,VIDIOC_G_INPUT,&index) == -1)
   {
     perror("VIDIOC_G_INPUT error!!!");
     exit (-1);
   }

and in others calls i obtain the same. I think it must be because of the device video0 is wrong (but i can open it without problems).

I've installed kernel 2.4.20 patched with patch-2.4.20-kraxel.gz <http://bytesex.org/patches/2.4/patch-2.4.20-kraxel.gz> and bttv 0.9.9.

   Using v4l2 is this right?:

   dev]$ ll vide*
lr-xr-xr-x 1 root root 10 mar 27 10:01 video -> v4l/video0 lr-xr-xr-x 1 root root 10 mar 27 10:01 video0 -> v4l/video0

Thanks







[Index of Archives]     [Linux DVB]     [Video Disk Recorder]     [Asterisk]     [Photo]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Free Photo Albums]     [Fedora Users]     [Fedora Women]     [ALSA Users]     [ALSA Devel]     [Linux USB]

Powered by Linux