Page 2 of 3

Posted: Sat Jan 14, 2006 12:24 am
by mc
Also the zm console shows source in red if 1 is used, but green if 2 is used, so I guess 2 is the right one.

Posted: Sat Jan 14, 2006 12:31 am
by mc
Current settings on this monitor are:

Function Monitor
Section length = 600
Frame Skip
Run Mode = Continuous
Triggers = None available
Source Type = Local

Device Number (/dev/video?) = 0
Device Channel = 2
Device Format (0=PAL,1=NTSC etc) = 0
Capture Palette = RGB24
Capture Width (pixels) = 320
Capture Height (pixels) =240
Orientation = Normal


Image Buffer Size (frames) = 40
Warmup Frames = 25
Pre Event Image Buffer = 10
Post Event Image Buffer = 10
Alarm Frame Count = 1

Event Prefix = Event-
Maximum FPS = 0.00
FPS Report Interval = 1000
Reference Image Blend %ge = 10

Posted: Sat Jan 14, 2006 8:42 pm
by cordel
run this from the cli -> zmu -d /dev/video0 -q -v

Corey

Posted: Sun Jan 15, 2006 6:46 am
by mc
Ok, this doesn't seem to work in the terminal window - although zmu is present in usr/lib/zm/bin
Even zmu --help is inop.

Posted: Sun Jan 15, 2006 7:26 pm
by zoneminder
Does work as in doesn't run? generates an error? appears to be ok but no output? runs off with your wife and empties your bank account?

Posted: Sun Jan 15, 2006 7:28 pm
by mc
ok, nothing except error message: bash: zmu: command not found!

Posted: Sun Jan 15, 2006 7:43 pm
by cordel
Then try /usr/lib/zm/bin/zmu -d /dev/video0 -q -v

Posted: Sun Jan 15, 2006 8:21 pm
by mc
Thanks, now I get:

error, username and password or auth string must be supplied

Guessing I need to change a permission?

Posted: Sun Jan 15, 2006 8:35 pm
by mc
Not permission, but enter username/password - doh! Can now run the zmu --help command but unsure how to enter the two and where in the command. Also is username/password for Zoneminder or my root password? All this is a bit new to me sorry!

Posted: Sun Jan 15, 2006 8:43 pm
by cordel
/usr/lib/zm/bin/zmu --help

Code: Select all

zmu <-d device_path> [-v] [function] [-U<username> -P<password>]
zmu <-m monitor_id> [-v] [function] [-U<username> -P<password>]
General options:
  -h, --help                     : This screen
  -v, --verbose                  : Produce more verbose output
Options for use with devices:
  -d, --device <device_path>     : Get the current video device settings for <device_path>
  -q, --query                    : Query the current settings for the device
Options for use with monitors:
  -m, --monitor <monitor_id>     : Specify which monitor to address, default 1 if absent
  -q, --query                    : Query the current settings for the monitor
  -s, --state                    : Output the current monitor state, 0 = idle, 1 = alarm, 2 = alert
  -B, --brightness [value]       : Output the current brightness, set to value if given
  -C, --contrast [value]         : Output the current contrast, set to value if given
  -H, --hue [value]              : Output the current hue, set to value if given
  -O, --colour [value]           : Output the current colour, set to value if given
  -i, --image [image_index]      : Write captured image to disk as <monitor_name>.jpg, last image captured
                                   or specified ring buffer index if given.
  -S, --scale <scale_%ge>        : With --image specify any scaling (in %) to be applied to the image
  -t, --timestamp [image_index]  : Output captured image timestamp, last image captured or specified
                                   ring buffer index if given
  -R, --read_index               : Output ring buffer read index
  -W, --write_index              : Output ring buffer write index
  -e, --event                    : Output last event index
  -f, --fps                      : Output last Frames Per Second captured reading
  -z, --zones                    : Write last captured image overlaid with zones to <monitor_name>-Zones.jpg
  -a, --alarm                    : Force alarm in monitor, this will trigger recording until cancelled with -c
  -n, --noalarm                  : Force no alarms in monitor, this will prevent alarms until cancelled with -c
  -c, --cancel                   : Cancel a forced alarm/noalarm in monitor, required after being enabled with -a or -n
  -u, --suspend                  : Suspend detection, useful to prevent bogus alarms when panning etc
  -r, --resume                   : Resume detection after a suspend
  -U, --username <username>      : When running in authenticated mode the username and
  -P, --password <password>      : password combination of the given user
  -A, --auth <authentication>    : Pass authentication hash string instead of user details
Use the user you have set up in ZM
/usr/lib/zm/bin/zmu -d /dev/video0 -q -v -Uadmin -Padmin

Posted: Sun Jan 15, 2006 8:58 pm
by mc
Great! Ok here it is:

Video Capabilities
Name: LifeView FlyVIDEO2000
Type: 47
Can capture
Can tune
Does teletext
Overlay onto frame buffer
Can clip
Video Channels: 4
Audio Channels: 0
Maximum Width: 720
Maximum Height: 578
Minimum Width: 48
Minimum Height: 32
Window Attributes
X Offset: 0
Y Offset: 0
Width: 0
Height: 0
Picture Attributes
Palette: 4 - 24bit RGB
Colour Depth: 0
Brightness: 0
Hue: 0
Colour :0
Contrast: 0
Whiteness: 0
Channel 0 Attributes
Name: Television
Channel: 0
Flags: 1
Channel has a tuner
Type: 1 - TV
Format: 0 - PAL
Channel 1 Attributes
Name: Composite1
Channel: 1
Flags: 0
Type: 2 - Camera
Format: 0 - PAL
Channel 2 Attributes
Name: Composite2
Channel: 2
Flags: 0
Type: 2 - Camera
Format: 0 - PAL
Channel 3 Attributes
Name: S-Video
Channel: 3
Flags: 0
Type: 2 - Camera
Format: 0 - PAL

Posted: Sun Jan 15, 2006 10:05 pm
by mc
It's finally working! Basically was the brightness etc - needed to be set to 40000! I had been trying 10, 5, etc. Thanks very much for all your help, I have learnt a lot about the whole system & linux.

:P Thank you, thank you, thank you! :P

Posted: Mon Jan 16, 2006 12:06 am
by cordel
Glad you have got it sorted out.
:D

Posted: Mon Jan 16, 2006 12:55 am
by mc
Yes, was tooo simple to be easy for me!

Next problems I am having are email & FTP uploading, but the alert system is working. Need to see what's going on here. zmfilter.log file makes no mention of even trying to send anything yet, just shows scanning for events every so often.

Nearly there though....!

Email and ftp settings

Posted: Mon Jan 16, 2006 1:06 am
by cordel
There are two places you need to set those up.
1) Options you need to set these to your preferences of where to ftp the files and what to email etc...
2) You need to make filters. When you save the filter it will give you the options of whether to email ftp etc...