RE: Video::Capture::V4l

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



Hey Ryan,

On Tue, 2003-06-10 at 16:28, Ryan Ayers wrote:
> Could you send me a working code snippet for NTSC?  The grab program in the
> examples dir just produces black images.  The capture program appears to
> work, but I can't view any of the files to determine if it does.

For C, you would do:

struct video_channel vchan;

/* set preferred input/norm.
 * for BTTV - 0 = tv tuner input, 1 = composite, 2 = svideo */
vchan.channel = 0; 
vchan.norm = VIDEO_MODE_NTSC;
ioctl(fd, VIDIOCSCHAN, &vcan);

I have no clue how this would look in whatever language you're using
(Perl?), but I'm sure the idea is largely the same there.

Ronald

-- 
Ronald Bultje <rbultje@xxxxxxxxxxxxxxxxxxx>




[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