Gentoo Archives: gentoo-user

From: Nick Rout <nick@×××××××.nz>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] BTTV Mini-HOWTO -- how do I use multiple inputs?
Date: Wed, 30 Nov 2005 18:41:31
Message-Id: 20051201073319.0bd6efbb.nick@rout.co.nz
In Reply to: RE: [gentoo-user] BTTV Mini-HOWTO -- how do I use multiple inputs? by Daevid Vincent
1 On Mon, 28 Nov 2005 23:09:31 -0800
2 "Daevid Vincent" <daevid@××××××.com> wrote:
3
4 > > > If I try to take a picture:
5 > > >
6 > > > /usr/bin/v4lctl -c /dev/video0 snap jpeg 320x240
7 > > > /home/dae51d/public_html/nokia_cam.jpg
8 > > > /usr/bin/v4lctl -c /dev/video1 snap jpeg 320x240
9 > > > /home/dae51d/public_html/ittybitty_cam.jpg
10 > > >
11 > > > Then the first one works fine, but the second one is failing with:
12 > > >
13 > > > v4l2: open /dev/video1: No such device
14 > > > v4l2: open /dev/video1: No such device
15 > > > v4l: open /dev/video1: No such device
16 > > > no grabber device available
17 > >
18 > > yes, you probably have one bttv device with a number of inputs. you
19 > > need to switch inputs. they are usually called TV, Composite, S-Video
20 > > etc. If there is more than one composite they might be called
21 > > Composite-1, Composite-2 etc
22 > >
23 > > On the other hand they may be audio inputs? 4 composite inputs is
24 > > rather excessive I would have thought.
25 >
26 > The PCI card looks kind of like this one:
27 > http://www.hauppauge.com/pages/products/data_impactvcb.html
28 > But it has 3 RCA Inputs and and S-VIDEO input (see bottom of page)
29 >
30 > > By the way which package does v4lctl come in?
31 >
32 > # equery belongs v4lctl
33 > [ Searching for file(s) v4lctl in *... ]
34 > media-tv/xawtv-3.94-r1 (/usr/bin/v4lctl)
35 >
36 > > ok it is part of xawtv. just refreshing myself, you can see a list of
37 > > available parameters with
38 > >
39 > > v4lctl -c /dev/video0 list
40 >
41 > attribute | type | current | default | comment
42 > -----------+--------+---------+---------+-----------------------------------
43 > --
44 > norm | choice | PAL | PAL | PAL NTSC SECAM PAL-Nc PAL-M PAL-N
45 > NTSC-JP PAL-60
46 > input | choice | Televis | Televis | Television Composite1 S-Video
47 > Composite3
48 > audio mode | choice | mono | mono | mono stereo lang1 lang2
49 > bright | int | 32768 | 32768 | range is 0 => 65535
50 > contrast | int | 32768 | 32768 | range is 0 => 65535
51 > color | int | 32768 | 32768 | range is 0 => 65535
52 > hue | int | 32768 | 32768 | range is 0 => 65535
53 > mute | bool | off | off |
54 > chroma agc | bool | off | off |
55 > combfilter | bool | off | off |
56 > automute | bool | on | off |
57 > luma decim | bool | off | off |
58 > agc crush | bool | on | off |
59 > vcr hack | bool | off | off |
60 > whitecrush | int | 207 | 207 | range is 0 => 255
61 > whitecrush | int | 127 | 127 | range is 0 => 255
62 >
63 > So this doesn't mention anything about the inputs.
64
65 Read again, it says you have inputs called "Television, Composite1,
66 S-Video and Composite3".
67
68 Do not confuse your video device with the card's input.
69
70 You get one video device, and unless you have another v4l device
71 present it certainly will be /dev/video0
72
73 You get a number of inputs to that device, which controls what is seen
74 on /dev/video0.
75
76 I note that on your device there are 4 physical composite inputs, but
77 only two compsite inputs are exposed by the driver. This may be because
78 no-one ever wrote the bttv driver expecting a card with 4 composite
79 inputs, or it may be because the kernel has not recognised the card
80 properly and has set up the driver wrong.
81
82
83 Take a look at the kernel documentation in Documentation/videoforlinux,
84 in particular CARDLSIST.bttv. If you can find your card number you can
85 add it to your module loading line as is well documented for these
86 cards.
87
88
89 >
90 > I would have thought they would be /dev/video0 ... Video2
91 >
92 > Since the way that I take a snap with one camera attached to the card is
93 > like this:
94 > /usr/bin/v4lctl -c /dev/video0 snap jpeg 320x240
95 > /home/dae51d/public_html/nokia_cam.jpg
96 >
97 > Notice the "-c /dev/video0"
98 >
99 >
100 > --
101 > gentoo-user@g.o mailing list
102 >
103 --
104 gentoo-user@g.o mailing list