Re: setting video input with v4l2

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



Justin Schoeman wrote:
> > I cannot change the video input with
> > 
> >     ...
> >     err = ioctl (pcapt_d->fd_video, VIDIOC_S_INPUT, &input);
> >     ...
> 
> What is the return value of this ioctl?
It is 0. No errors!

>  Also, make sure capture is not active when you issue this ioctl, otherwise
> channel change may be defferred until capture is stopped.
Good hint, but I always close the video device before I change settings. I use
the sample code from http://www.thedirks.org/v4l2/. Therefore I think, I do
everything right.

I tested some more things:

With the card type 0, I only can use the plug 3 (available: 0-3)
With type 1, I only can use plug 2.
Changing the port with 'ioctl' has no effect!

What are the differences between the different cards with respect to switching
the input ports?

Thanx for help

Michael Kellner





[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