no daemon?

Support and queries relating to all previous versions of ZoneMinder
Locked
darkpaw
Posts: 166
Joined: Thu Apr 26, 2007 2:35 am

no daemon?

Post by darkpaw »

So everything is finally setup and the main UI is running fine. I added a single camera for now (I hope to have 5 on it by the time this is done), and the source will not go Green in the UI. When I click on the "Zones" button to call up the window of it, I get (in Firefox) the "broken picture" icon, for invalid image.

The apache logs are showing this, which is why I assume it is failing:

[Sat Apr 28 00:13:53 2007] [error] [client 127.0.0.1] File does not exist: /usr/lib/zm/html/images/PALcamera-Zones.jpg,

And sure enough:

[root@localhost bin]# ls -l /usr/lib/zm/html/images/
total 0
[root@localhost bin]#

My camera config is setup for /dev/video (also tried /dev/video1) with the exact specs that match the output of "zmu", which is PAL YUV422. Here's the output from that command:

[root@localhost bin]# !./zmu
./zmu -d /dev/video0 -q -v -U admin -P lola1bunny
Video Capabilities
Name: BT848A video ( *** UNKNOWN/GENE
Type: 171
Can capture
Can tune
Overlay onto frame buffer
Can clip
Scalable
Video Channels: 4
Audio Channels: 1
Maximum Width: 924
Maximum Height: 576
Minimum Width: 48
Minimum Height: 32
Window Attributes
X Offset: 0
Y Offset: 0
Width: 320
Height: 240
Picture Attributes
Palette: 13 - YUV 4:2:2 Planar
Colour Depth: 16
Brightness: 36044
Hue: 32768
Colour :32768
Contrast: 36044
Whiteness: 0
Channel 0 Attributes
Name: Television
Channel: 0
Flags: 3
Channel has a tuner
Channel has audio
Type: 1 - TV
Format: 0 - PAL
Channel 1 Attributes
Name: Composite1
Channel: 1
Flags: 2
Channel has audio
Type: 2 - Camera
Format: 0 - PAL
Channel 2 Attributes
Name: S-Video
Channel: 2
Flags: 2
Channel has audio
Type: 2 - Camera
Format: 0 - PAL
Channel 3 Attributes
Name: Composite3
Channel: 3
Flags: 2
Channel has audio
Type: 2 - Camera
Format: 0 - PAL


I'm using channel 1, which is composite 1, and I've verified the feed from this via TVTime and it is getting the signal correctly.

Any ideas? From what I can gather from the docs, this should be spawning some kind of daemon to monitor the camera feed. What is the name of the process for this?

Thanks again, in advance....
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

zmc is the process that captures the images.
Check your /var/log/messages and make sure you have SELinux disabled.
The other problem you might be having is the image size and palette must be set to something supported by the device otherwise zmc will not be able to capture an image.
darkpaw
Posts: 166
Joined: Thu Apr 26, 2007 2:35 am

process

Post by darkpaw »

Thanks for the process name. That helps a lot. It appears to be running:

[root@localhost ~]# ps -ef | grep zmc
apache 5207 4210 2 00:17 pts/1 00:30:50 /usr/lib/zm/bin/zmc -d /dev/video
root 9633 9598 0 21:03 pts/3 00:00:00 grep zmc
[root@localhost ~]#

But here's what's weird...I'm able to access the camera remotely. It is working fine from any system other than the local one.

(updated this message as I was working on it, as a light just went on in my head after typing that last sentence)

So with your help, I checked in /var/log/messages, and when I try to open the camera locally on the web server, I get:

Apr 28 21:06:44 localhost zms[9712]: ERR [Unable to authenticate user]

It looks like /var/log/messages is definately going to be my best friend with this program. :) Cache issue. Cleared the cache on Firefox and badda-bing it works...

Next question....now that everything appears to be working, how do I change the variation of PAL? This particular camera I'm using follows "PAL-NC" format, which is slightly different than PAL. There are several variations of it above just "PAL"...PAL-M, PAL-N, PAL-NC, and PAL-60. This cameara follows the NC variation. Is there some way to tweak it above just "PAL/NTSC"?

Thanks for all your help...it is highly appreciated.
darkpaw
Posts: 166
Joined: Thu Apr 26, 2007 2:35 am

PAL format?

Post by darkpaw »

So I guess there's no way to specify the PAL format......? PAL-M/N/NC?

I suppose I can switch it to an NTSC camera, but I was hoping to get the extra resolution by using my PAL one. The capture card supports both formats...
Locked