BT848, Ok on xawtv bıt zm not

Support and queries relating to all previous versions of ZoneMinder
Locked
screamuser
Posts: 1
Joined: Sun Apr 04, 2004 4:09 pm

BT848, Ok on xawtv bıt zm not

Post by screamuser »

With a bt848 tc card, I use composite web-cam. On xawtv in linux it works perfectly even then windows. But in zm web pages every thinks are seem to be okay, and when I press to monitor my the cam (video0 composite 1 and pal mode), on stream mode, a blank page and 0 frame captured, still mode no picture AND AGAIN 0 FRAME CAPTURED. What is the problem, zm no captured even one frame, because images directory empty. What must I do?

Thank you
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Screamuser,
Have you checked your logs to see what if any errors are being loged?
If you used the defualts the log files for zm will be in your /tmp directory.
I'd look at the zmdc.log and zmwatch.log for starters. Post what errors you find. That would help us to help you.
Thanks,
Cordel
Marco
Posts: 2
Joined: Sun Apr 25, 2004 2:25 am

Having the same problem, hope this helps

Post by Marco »

Hi,

I am havint exactly this same problem. Xawtv works fine, but zm doesn't.
I am using a Fedora Core 1 distribution, with MySQL 3.23.58 and ZM 1.19.1, on a Celeron 2 GHz Machine with 512 MB RAM. I have a BT878 video capture card connected to an analog camera, with NTSC format.

Upon reading the "Troubleshoting" section in the docs, I found something related to "Shared Memory", I think (maybe) this is what causes the problem, but so far I have been unable to solve it. I also tried installing ZM on a laptop with a webcam, and found the same problem. So, maybe it is something I am doing wrong?

-----
On the machine described above (not the laptop), the output from /tmp/zmdc.log is as follows:

Starting pending process, zmc -d 0
'zmc -d 0' started at 04/04/24 21:24:30
'zmc -d 0' starting at 04/04/24 21:24:30, pid = 7684
'zmc -d 0' crashed at 04/04/24 21:24:31, exit status 255
Starting pending process, zmfilter.pl -e -1
'zmfilter.pl -e -1' started at 04/04/24 21:29:06
'zmfilter.pl -e -1' starting at 04/04/24 21:29:06, pid = 7778
Can't locate MIME/Entity.pm in @INC (@INC contains: /usr/lib/perl5/5.8.1/i386-linux-thread-multi /usr/lib/perl5/5.8.1 /usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.1/i386-linux-thread-multi /usr/lib/perl5/5.8.1) at /usr/local/bin/zmfilter.pl line 87.
BEGIN failed--compilation aborted at /usr/local/bin/zmfilter.pl line 87.
'zmfilter.pl -e -1' crashed at 04/04/24 21:29:07, exit status 2
-----
The output from /tmp/zmwatch is:


Watchdog starting at 04/04/24 21:07:43
Watchdog pausing for 30 seconds
Can't get shared memory id '2053971969': No such file or directory
------
When I try to run zmc mannually I get a message in /var/log/messages that says:

Apr 24 21:10:40 contenidobkp zmc-d0[7508]: INF [Debug Level = 0, Debug Log = ]
Apr 24 21:10:40 contenidobkp zmc-d0[7508]: ERR [Failed to set window attributes:
Invalid argument]
Apr 24 21:10:43 contenidobkp zmu[7511]: ERR [Shared memory not initialised by ca
pture daemon]

------
Regarding my video card, when I boot, there is a message in /var/log/messages that says:

Apr 24 21:07:50 contenidobkp kernel: bttv: driver version 0.7.107 loaded
Apr 24 21:07:50 contenidobkp kernel: bttv: using 4 buffers with 2080k (8320k tot
al) for capture
Apr 24 21:07:50 contenidobkp kernel: bttv: Host bridge is VIA Technologies, Inc.
P4M266 Host Bridge
Apr 24 21:07:50 contenidobkp kernel: bttv: Bt8xx card found (0).
Apr 24 21:07:50 contenidobkp kernel: bttv0: Bt878 (rev 2) at 00:0b.0, irq: 10, l
atency: 32, mmio: 0xdfcfe000
Apr 24 21:07:50 contenidobkp kernel: bttv0: detected: FlyVideo 98FM (LR50)/ Typh
oon TView TV/FM Tuner [card=36], PCI subsystem ID is 1852:1852
Apr 24 21:07:50 contenidobkp kernel: bttv0: using: BT878(Lifeview FlyVideo 98FM
) [card=36,autodetected]

--------

Any help would be appreciated!!!

Marco.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Hi Marco,

I think your main problem is the 'failed to set window attributes error', look here for a way to address that.

Phil,
malvo
Posts: 6
Joined: Wed Apr 14, 2004 6:38 pm
Location: GER,Brunsvik

BT848, Ok on xawtv bıt zm not

Post by malvo »

Can't locate MIME/Entity.pm in @INC
You need a perl module called MIME::Entity

It think a

Code: Select all

cpan MIME::Tools
should install all the needed code!

Be aware, that your access rights to the grabbed image are right. if you test the zmc-script manually on the commandline, the grabbed image would have wrong rights, so the zmc-process running under the web-user can not overwrite it anymore!

hope this help,
Malvo
Marco
Posts: 2
Joined: Sun Apr 25, 2004 2:25 am

Thank you so much!!! cpan MIME::Tools did it!

Post by Marco »

Great! It's working now!

All I had to do was download the perl "module" with cpan, as told in the previous message.

By the way, I also tried with version 1.19.2 and had the same problem, which was corrected in the same way as with version 1.19.1. I don't know if this issue is too obvious, but maybe it should be included in the troubleshooting section of the docs that come with the package. :idea:

This goes to prove that you can do a "Fedora 1 Core - full install" and still be missing stuff :-) But I guess that's normal.

Thanks for the help.

Marco.
Locked