I'm running gentoo with kernel 2.6.0 and a BTTV TV card which works fine with xawtv. I have zm 1.19.1 installed and apache and mysql are set up and working. I have one monitor set up as monitor, continuous, 600, 1, local and a source of 0, 1, 1, rgb24, 320, 240, normal. I'm using Mozilla Firebird and Opera. I'm not getting images even though zmc seems to be running. What seems not to be running is zma and zmf but I'm not getting any errors. I have to start it from the web page as I haven't fully changed zm to work with gentoo's init system and running it from console seems to confuse things as the user doesn't have access to the log files. I tried as root also with similar results as from the web page. ZM_OPT_FRAME_SERVER is selected as zmpgk.pl seems to test for that before starting zma and zmf.
From /var/log/everything after a restart:
Apr 5 11:21:01 [kernel] tuner: tv 0x0e 0xf0 0x8e 0x90
Apr 5 11:21:01 [zmc-d0] INF [Starting Capture]
Apr 5 11:21:45 [zmc-d0] INF [Zone1: 1000 - Capturing at 22.73 fps]
Apr 5 11:22:30 [zmc-d0] INF [Zone1: 2000 - Capturing at 22.22 fps]
Apr 5 11:23:15 [zmc-d0] INF [Zone1: 3000 - Capturing at 22.22 fps]
Apr 5 11:23:59 [zmc-d0] INF [Zone1: 4000 - Capturing at 22.73 fps]
From pa awx after a restart:
apache 5450 0.0 0.9 7412 5028 ? S 11:21 0:00 /usr/bin/perl -wT /usr/local/bin/zmdc.pl status
apache 5469 9.8 6.1 110388 31812 ? S 11:21 0:32 /usr/local/bin/zmc -d 0
apache 5473 0.2 2.0 12976 10568 ? S 11:21 0:00 /usr/bin/perl -wT /usr/local/bin/zmfilter.pl -e -1
apache 5477 0.0 0.7 6428 4016 ? S 11:21 0:00 /usr/bin/perl -wT /usr/local/bin/zmaudit.pl -d 900 -y
apache 5482 0.0 0.8 6960 4528 ? S 11:21 0:00 /usr/bin/perl -wT /usr/local/bin/zmwatch.pl
From zmdc.log:
Server starting at 04/04/05 11:20:57
'zmc -d 0' started at 04/04/05 11:21:01
'zmc -d 0' starting at 04/04/05 11:21:01, pid = 5469
'zmfilter.pl -e -1' started at 04/04/05 11:21:01
'zmfilter.pl -e -1' starting at 04/04/05 11:21:01, pid = 5473
'zmaudit.pl -d 900 -y' started at 04/04/05 11:21:02
'zmaudit.pl -d 900 -y' starting at 04/04/05 11:21:02, pid = 5477
'zmwatch.pl' started at 04/04/05 11:21:03
'zmwatch.pl' starting at 04/04/05 11:21:03, pid = 5482
From zmpkg.log:
Command: start
Executing: /usr/local/bin/zmdc.pl check
Removing shared memory
Executing: /usr/local/bin/zmfix
Executing: /usr/local/bin/zmdc.pl status
Executing: /usr/local/bin/zmdc.pl start zmc -d 0
Executing: /usr/local/bin/zmdc.pl start zmfilter.pl -e -1
Executing: /usr/local/bin/zmdc.pl start zmaudit.pl -d 900 -y
Executing: /usr/local/bin/zmdc.pl start zmwatch.pl
From zmfilter.log:Scanning for events since id -1
Scanning for events since id -1
Scanning for events since id -1
Scanning for events since id -1
Scanning for events since id -1
Scanning for events since id -1
Scanning for events since id -1
Scanning for events since id -1
Scanning for events since id -1
Scanning for events since id -1
From zmwatch.log:
Restarting capture daemon ('/usr/local/bin/zmdc.pl restart zmc -d 0'), time since last capture 1 seconds 81181761-1081181760)
Watchdog starting at 04/04/05 11:21:03
Watchdog pausing for 30 seconds
zmaudit.log is empty and there are no other logs.
As a side note, zmconfig copies zms the the cgi directory as the directory name, not zms. In other words, I entered /cgi-bin/ as the directory and instead of getting zm/cgi-bin/zms I ended up with zm/cgi-bin. I had to fix that in the various spots in the configuration as well as copy zms myself.
Not getting images
Re: Not getting images
Oh, and one more thing, I have it set up now for jpeg and earlier as mpeg. I'm not getting files in the images directory either.
Re: Not getting images
ok, upon further investigation, I am able to get still images, just not streaming images. I looked at the apache logs and apache is looking for zms in httpd/cgi-bin and not zm/cgi-bin. I assumed from what zmconfig implied that it wanted to put the bin in the root of the zm tree, not the httpd root. Still, zmconfig created zm/cgi-bin as a file. I didn't compare it to zms but I will later. Now that apache is able to fine zms, I'm getting an error that at least seems more common. I'll reread some of the other threads as I post the error here.
Apr 5 18:32:27 [zmc-d0] INF [Starting Capture]
Apr 5 18:33:36 [zmc-d0] INF [Zone1: 1000 - Capturing at 14.49 fps]
Apr 5 18:34:44 [zmc-d0] INF [Zone1: 2000 - Capturing at 14.71 fps]
Apr 5 18:34:56 [zms] INF [Debug Level = 0, Debug Log = ]
Apr 5 18:34:56 [zms] ERR [Can't shmget: Invalid argument]
Apr 5 18:35:34 [zms] INF [Debug Level = 0, Debug Log = ]
Apr 5 18:35:34 [zms] ERR [Can't shmget: Invalid argument]
Apr 5 18:35:45 [zms] INF [Debug Level = 0, Debug Log = ]
Apr 5 18:35:45 [zms] ERR [Can't shmget: Invalid argument]
Apr 5 18:32:27 [zmc-d0] INF [Starting Capture]
Apr 5 18:33:36 [zmc-d0] INF [Zone1: 1000 - Capturing at 14.49 fps]
Apr 5 18:34:44 [zmc-d0] INF [Zone1: 2000 - Capturing at 14.71 fps]
Apr 5 18:34:56 [zms] INF [Debug Level = 0, Debug Log = ]
Apr 5 18:34:56 [zms] ERR [Can't shmget: Invalid argument]
Apr 5 18:35:34 [zms] INF [Debug Level = 0, Debug Log = ]
Apr 5 18:35:34 [zms] ERR [Can't shmget: Invalid argument]
Apr 5 18:35:45 [zms] INF [Debug Level = 0, Debug Log = ]
Apr 5 18:35:45 [zms] ERR [Can't shmget: Invalid argument]
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
Re: Not getting images
Hi,
The shmget error is fairly common and is discussed in the README and the faq so you should hopefully be able to sort it out pretty quickly.
Cheers,
Phil,
The shmget error is fairly common and is discussed in the README and the faq so you should hopefully be able to sort it out pretty quickly.
Cheers,
Phil,
Re: Not getting images
Yes, I thought I had seen that error before and it was in the FAQ. I was able to get it running right away. I believe I had to clear memory. Also adding to the problem was that mozilla firebird doesn't have a plugin for streaming video or much of anything. It was working in opera before I realized I had it working. Now I'm getting too much video. I filled up my root fs twice now. I don't know why the web root is installing in /var but I moved it and made a link.