post install configuration problems

Support and queries relating to all previous versions of ZoneMinder
Locked
cdw1
Posts: 7
Joined: Sun Jul 13, 2003 6:30 am

post install configuration problems

Post by cdw1 »

I have a few problems.

I have been unable to start the zm service. I get this error.
zm: unrecognized service

I copied the zm script from the build/src folder to
/etc/rc.d/init.d (installing on a redhat 9.0 system),
and then ran chkconfig --add zm
'/sbin/service zm start' yields the above error.

Until I get this to work, I can still use the zm.php
console, and switch the state to 'running'?
Is this correct, or do I need to start something
manually?

I am trying to get a simple monitor working.

I ran xawtv, and was able to get a good looking
picture from my camera by just changing to
'NTSC' and 'composite1' input.
I then ran 'zmu -d 0 -q -v'. I have included that output
below.

I have been unable to get a monitor working.
When I set up a monitor, I change only:
name: cam
function: monitor
Dev#:0
Dev Channel:1
Dev Format: 1
Capture Width:320
Capture Height:320

I have tried many different widths and heights, down to
48x32 (pulled from the zmu output).

I have been unable to get the cam to display images or
to capture anything. What is frustrating is that
sometimes an image is displayed, but it is timestamped
from some time before.
Sometimes no image will display,
and only a broken image icon will appear. In this case,
the 'source' (/dev/video0 (1)) is red- even though I have
selected 'monitor' as the function.

I thought maybe running
zmc -d 0
from a terminal change something, but it didn't.
Restarting (zmpkg.pl restart) doesn't help either.

I'm guessing I need to reset or restart something, but I'm
not sure where to go.


Thanks for any help, sorry for the long narrative.
Chad


I compiled zm with ffmpeg support, and have switched
ZM_VIDEO_STREAM_METHOD between mpeg and jpeg without any
success. Also, I have accessed zm.php on the local machine with
mozilla, and via a networked windows machine with IE.
I'm running...
ZoneMinder v1.19.4
RedHat 9


-------------------
zmu -d 0 -q -v
Video Capabilities
Name: BT878(Hauppauge (bt878))
Type: 235
Can capture
Can tune
Overlay onto frame buffer
Can clip
Uses the frame buffer memory
Scalable
Video Channels: 4
Audio Channels: 1
Maximum Width: 768
Maximum Height: 480
Minimum Width: 48
Minimum Height: 32
Window Attributes
X Offset: 118
Y Offset: 34
Width: 384
Height: 288
Picture Atributes
Palette: 5 - 32bit RGB
Colour Depth: 32
Brightness: 26869
Hue: 32767
Colour :32112
Contrast: 27524
Whiteness: 0
Channel 0 Attributes
Name: Television
Channel: 0
Flags: 3
Channel has a tuner
Channel has audio
Type: 1 - TV
Format: 1 - NTSC
Channel 1 Attributes
Name: Composite1
Channel: 1
Flags: 2
Channel has audio
Type: 2 - Camera
Format: 1 - NTSC
Channel 2 Attributes
Name: S-Video
Channel: 2
Flags: 2
Channel has audio
Type: 2 - Camera
Format: 1 - NTSC
Channel 3 Attributes
Name: Composite3
Channel: 3
Flags: 2
Channel has audio
Type: 2 - Camera
Format: 1 - NTSC
snakebyte
Posts: 45
Joined: Sun Dec 07, 2003 1:51 am

Post by snakebyte »

Sounds like you didn't copy that zm file over correctly.
issue this and see if you get something back
ls -la /etc/rc.d/init.d/zm
or you can use the script yourself:
/etc/rc.d/init.d/zm start

The only other thing I can think of is that the script might need to be executable...

chmod +x /etc/rc.d/init.d/zm
cdw1
Posts: 7
Joined: Sun Jul 13, 2003 6:30 am

Thanks!

Post by cdw1 »

That was exactly it.
Seems to work great with everything running.
Thanks a lot.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Even if you have the script installed you don't have to do 'service zm restart' etc, you can subsitute 'zmpkg.pl restart' if you prefer as that's pretty much all the 'zm' init script does anyway.

Phil,
Locked