Getting a camera to work in Zoneminder

Support and queries relating to all previous versions of ZoneMinder
User avatar
mc
Posts: 39
Joined: Wed Aug 17, 2005 9:07 pm
Location: UK

Post 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.
User avatar
mc
Posts: 39
Joined: Wed Aug 17, 2005 9:07 pm
Location: UK

Post 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
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

run this from the cli -> zmu -d /dev/video0 -q -v

Corey
User avatar
mc
Posts: 39
Joined: Wed Aug 17, 2005 9:07 pm
Location: UK

Post 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.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post 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?
Phil
User avatar
mc
Posts: 39
Joined: Wed Aug 17, 2005 9:07 pm
Location: UK

Post by mc »

ok, nothing except error message: bash: zmu: command not found!
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Then try /usr/lib/zm/bin/zmu -d /dev/video0 -q -v
User avatar
mc
Posts: 39
Joined: Wed Aug 17, 2005 9:07 pm
Location: UK

Post by mc »

Thanks, now I get:

error, username and password or auth string must be supplied

Guessing I need to change a permission?
User avatar
mc
Posts: 39
Joined: Wed Aug 17, 2005 9:07 pm
Location: UK

Post 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!
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post 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
User avatar
mc
Posts: 39
Joined: Wed Aug 17, 2005 9:07 pm
Location: UK

Post 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
User avatar
mc
Posts: 39
Joined: Wed Aug 17, 2005 9:07 pm
Location: UK

Post 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
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Glad you have got it sorted out.
:D
User avatar
mc
Posts: 39
Joined: Wed Aug 17, 2005 9:07 pm
Location: UK

Post 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....!
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Email and ftp settings

Post 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...
Locked