Problems geting v4lctl to work corectly with Composite input

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



I developed a video image capture system for use at work.

It's inteded to use existing camears, that I've concected to the
composite (RCA jack) inputs on the cards. Not having a composite
source at home, I tested this code using the TV tuner input, and
all went well. However, now that I'm deploying it at work, I'm 
not getting sync. 

xawtv is able to display the images from the composite source just 
fine. My system uses a perl script that makes system() calls to
vmlctl, and that's not working. In troubleshooting I came up with
this:


Script started on Thu Nov 13 13:22:50 2003
stan@cogenvs:~$ uname -a
Linux cogenvs 2.4.22 #1 SMP Fri Oct 24 23:39:05 EDT 2003 i686 GNU/Linux
stan@cogenvs:~$ v4lctl list
attribute  | type   | current | default | comment
-----------+--------+---------+---------+-------------------------------------
input      | choice | (null)  | Televis | Television Composite1 S-Video Composite3
mute       | bool   | off     | off     |
audio mode | choice | mono    | auto    | auto mono stereo lang1 lang2
norm       | choice | NTSC    | PAL     | PAL NTSC SECAM PAL-NC PAL-M PAL-N NTSC-JP
bright     | int    |   32768 |       0 | range is 0 => 65535
hue        | int    |   32768 |       0 | range is 0 => 65535
color      | int    |   32512 |       0 | range is 0 => 65535
contrast   | int    |   27648 |       0 | range is 0 => 65535
stan@cogenvs:~$ v4lctl setinput Composite1
stan@cogenvs:~$ v4lctl list
attribute  | type   | current | default | comment
-----------+--------+---------+---------+-------------------------------------
input      | choice | (null)  | Televis | Television Composite1 S-Video Composite3
mute       | bool   | off     | off     |
audio mode | choice | mono    | auto    | auto mono stereo lang1 lang2
norm       | choice | NTSC    | PAL     | PAL NTSC SECAM PAL-NC PAL-M PAL-N NTSC-JP
bright     | int    |   32768 |       0 | range is 0 => 65535
hue        | int    |   32768 |       0 | range is 0 => 65535
color      | int    |   32512 |       0 | range is 0 => 65535
contrast   | int    |   27648 |       0 | range is 0 => 65535
stan@cogenvs:~$ v4lctl -v 2 setinput Composite1
vid-open: trying: v4l... 
v4l: open: /dev/video0 (BT878(Hauppauge (bt878)))
  capabilities:  capture tuner overlay clipping frameram scales
  size    : 48x32 => 768x480
  channels: 4
ioctl: VIDIOCGCHAN(0,Television,flags=0x3,type=1,norm=1): ok
    Television: 1 tuner audio  tv 
ioctl: VIDIOCGCHAN(1,Composite1,flags=0x2,type=2,norm=1): ok
    Composite1: 0 audio  camera 
ioctl: VIDIOCGCHAN(2,S-Video,flags=0x2,type=2,norm=1): ok
    S-Video: 0 audio  camera 
ioctl: VIDIOCGCHAN(3,Composite3,flags=0x2,type=2,norm=1): ok
    Composite3: 0 audio  camera 
  audios  : 1
ioctl: VIDIOCGAUDIO(0,TV,flags=0x2,vol=0,balance=0,bass=0,treble=0,mode=0x1,step=0): ok
    4 (TV): muted=no 
ioctl: VIDIOCGTUNER(0,Television,range=0--1,flags=0x7,mode=1,signal=65535): ok
  tuner   : Television 0-4294967295 PAL NTSC SECAM
v4l: bttv version 0.7.107
ioctl: VIDIOCGFBUF(base=0xf6000000,size=1024x768,depth=16,bpl=2048): ok
  fbuffer : base=0x0xf6000000 size=1024x768 depth=16 bpl=2048
ioctl: VIDIOCGPICT(params=32768/32768/32512/27648/0,depth=16,fmt=3): ok
  picture : brightness=32768 hue=32768 colour=32512 contrast=27648
  picture : whiteness=0 depth=16 palette=rgb16
ioctl: VIDIOCGMBUF(size=8519680,frames=4): ok
  mbuf: size=8519680 frames=4
  v4l: using mapped buffers for capture
vid-open: ok: v4l
ioctl: VIDIOCGAUDIO(0,TV,flags=0x2,vol=0,balance=0,bass=0,treble=0,mode=0x1,step=0): ok
ioctl: VIDIOCGCHAN(0,Television,flags=0x3,type=1,norm=1): ok
ioctl: VIDIOCGPICT(params=32768/32768/32512/27648/0,depth=16,fmt=3): ok
ioctl: VIDIOCGPICT(params=32768/32768/32512/27648/0,depth=16,fmt=3): ok
ioctl: VIDIOCGPICT(params=32768/32768/32512/27648/0,depth=16,fmt=3): ok
ioctl: VIDIOCGPICT(params=32768/32768/32512/27648/0,depth=16,fmt=3): ok
ioctl: VIDIOCGAUDIO(0,TV,flags=0x2,vol=0,balance=0,bass=0,treble=0,mode=0x1,step=0): ok
ioctl: VIDIOCGAUDIO(0,TV,flags=0x2,vol=0,balance=0,bass=0,treble=0,mode=0x1,step=0): ok
cmd: "setinput" "Composite1"
ioctl: VIDIOCSCHAN(1,Composite1,flags=0x2,type=2,norm=1): ok
v4l: close
stan@cogenvs:~$ v4lctl list
attribute  | type   | current | default | comment
-----------+--------+---------+---------+-------------------------------------
input      | choice | (null)  | Televis | Television Composite1 S-Video Composite3
mute       | bool   | off     | off     |
audio mode | choice | mono    | auto    | auto mono stereo lang1 lang2
norm       | choice | NTSC    | PAL     | PAL NTSC SECAM PAL-NC PAL-M PAL-N NTSC-JP
bright     | int    |   32768 |       0 | range is 0 => 65535
hue        | int    |   32768 |       0 | range is 0 => 65535
color      | int    |   32512 |       0 | range is 0 => 65535
contrast   | int    |   27648 |       0 | range is 0 => 65535
stan@cogenvs:~$ 
Script done on Thu Nov 13 13:24:39 2003

So,it appeasr to me, that I'm somehow failing to set the input to composite. Am
I interpeting this corectly?

If so, what might I do to corect the problem. If I'm not 
interpeting this corectly, then what else might casue v4lctl capture
to fail when xawtv is working?

Any furthe info I can provide? Test to run?



-- 
"They that would give up essential liberty for temporary safety deserve
neither liberty nor safety."
						-- Benjamin Franklin




[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