Page 1 of 1

V4L/Spectra-8/Zoneminder problem :-(

Posted: Thu Jul 22, 2004 4:52 am
by bobp
Hi everyone,

Setting up ZoneMinder 1.19.4 on a Debian Woody box (kernel 2.4.18) with a Spectra-8 8-port capture card. The box is a P4 2.8, 512mb RAM.

I'm seeing (continuously) in /var/log/messages:

zma-m5[555]: WAR [Waiting for capture daemon]

(for all monitors, not just #5)

Digging deeper, an strace on 'zmc -d 1' gets me:

send(3, "<142>Jul 22 12:34:00 zmc-d1[667]: INF [Starting Capture]", 56, 0) = 56
rt_sigaction(SIGPIPE, {SIG_IGN}, NULL, 8) = 0
rt_sigaction(SIGTERM, {0x8049ee0, [], 0x4000000}, {SIG_DFL}, 8) = 0
rt_sigprocmask(SIG_BLOCK, [USR1 USR2], NULL, 8) = 0
gettimeofday({1090463640, 352323}, {4294966696, 0}) = 0
ioctl(5, VIDIOCSCHAN, 0xbffffb3c) = 0
ioctl(5, VIDIOCMCAPTURE, 0xd1dd1c0) = 0
ioctl(5, VIDIOCSYNC, 0x8065c68) = 0
gettimeofday({1090463640, 442942}, {4294966696, 0}) = 0
gettimeofday({1090463640, 443222}, {4294966696, 0}) = 0
gettimeofday({1090463640, 443341}, {4294966696, 0}) = 0
ioctl(5, VIDIOCSCHAN, 0xbffffb3c) = 0
ioctl(5, VIDIOCMCAPTURE, 0xd1dd1d0) = 0
ioctl(5, VIDIOCSYNC <unfinished ...>

For the record, my interrupts are as follows:

16: 0 IO-APIC-level bttv
17: 0 IO-APIC-level bttv
18: 60737 IO-APIC-level eth0, bttv
19: 0 IO-APIC-level bttv

xawtv can display an overlay of all inputs from this card just fine, but I can't capture from it. It complaints as follows:

ioctl: VIDIOCGCAP(BT878(ProVideo PV951),type=0xeb,chan=3,audio=1,size=48x32-924x576): ok
setformat: 16 bit YUV 4:2:2 (planar) (924x576): failed
v4l: setformat

At startup, it also throws these:

gd: config 384x288 win=1200043
v4l: setformat
ioctl: VIDIOCGCAP(BT878(ProVideo PV951),type=0xeb,chan=3,audio=1,size=48x32-924x576): ok
v4l: capture probe 32 bit TrueColor (LE: bgr-)... ioctl: VIDIOCMCAPTURE(0,fmt=5,size=48x32): ok
v4l: timeout (got SIGALRM), hardware/driver problems?
ioctl: VIDIOCSYNC(0): Interrupted system call
failed

This is probably something fairly simple, but I'm not well versed with V4L, so I can't see it :-(

Suggestions most welcome.

v4l: timeout (got SIGALRM), hardware/driver problems?

Posted: Sat Jan 29, 2005 1:40 am
by Computerdude256
I had this same error...

I moved my BTTV capture card to a PCI slot with a higher priority (I used slot 1), and the problem went away!