My first V4l app.

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



I'm trying to write my first v4l application.  The goal right now is to simply 
do individual image capturing.  As you might suspect, it isn't working 
properly.

This is being done on a Hauppauge tuner card with the bt878 chipset.

So far, I am able to open the device, set the video input and set the video 
standard to V4L2_STD_NTSC_M;

My next step is to try and set the capture format

My code is roughly:

v4l2_format retval
retval.fmt.pix.sizeimage=0;
retval.fmt.pix.bytesperline = 0;
retval.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
retval.fmt.pix.width = 640;
retval.fmt.pix.height = 480;
retval.fmt.pix.pixelformat = V4L2_PIX_FMT_RGB24;
retval.fmt.pix.field = V4L2_FIELD_ANY;
retval.fmt.pix.priv = 0;

Unfortunately, the ioctl fails with EINVAL

Where am I going wrong?

Thanks for the help.

-	Garrett Kajmowicz




[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