ZoneMinder Problem.

Support and queries relating to all previous versions of ZoneMinder
balauronul
Posts: 2
Joined: Tue Feb 24, 2009 11:39 am

ZoneMinder Problem.

Post by balauronul »

--------------------------------------------------------------------------------

Im am a beginer in linux, but I am trying to setup a security sistem at my house, and ZoneMinder seems the best solution. I succesfuly instaled zoneminder on a Ubuntu 8.10 server but I can`t see the streming from the camera. One of them is a TrendNet IP TV-100 camera and two of the are web cams. From the ip camera I can`t see anything but from the web cams they are somme still broken images. When are set to motiondetection, it shows in events motion alert, but with no image.
I atached an URL from ubuntu forums, where I made this post, but with no replay, maibe someone will know what is the problem.
In can see images from the web cams with "cheese", and lsusb shows:
root@ubuntu:/home/user# lsusb
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 026: ID 060b:a005 Solid Year
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 060: ID 0461:4d10 Primax Electronics, Ltd
Bus 002 Device 059: ID 05a9:8519 OmniVision Technologies, Inc. OV519 WebCam
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


Solid Year and Omnivizion are the web cams, and Primax Electronics is a usb mouse.


Thanks!


http://ubuntuforums.org/showthread.php? ... zoneminder
softland
Posts: 23
Joined: Thu Jan 29, 2009 1:35 pm

Post by softland »

What do you get from "tail -f /var/log/syslog" ?
balauronul
Posts: 2
Joined: Tue Feb 24, 2009 11:39 am

Post by balauronul »

I tried this command and the result is:


root@ubuntu:/home/user# tail -f /var/log/syslog
Feb 26 17:46:17 ubuntu zmwatch[21950]: INF ['zmc -d /dev/video1' starting at 09/02/26 17:46:17, pid = 22665]
Feb 26 17:46:17 ubuntu zmc_dvideo1[22665]: INF [Debug Level = 0, Debug Log = <none>]
Feb 26 17:46:17 ubuntu zmc_dvideo1[22665]: INF [New Debug Level = 4, New Debug Log = /tmp/zm_debug.log.22665]
Feb 26 17:46:17 ubuntu zmc_dvideo1[22665]: INF [Starting Capture]
Feb 26 17:46:17 ubuntu zmc_dvideo0[22651]: ERR [Sync failure for frame 1 buffer 2(1): Invalid argument]
Feb 26 17:46:17 ubuntu zmc_dvideo0[22651]: ERR [Failed to post-capture monitor 0]
Feb 26 17:46:17 ubuntu zmdc[21823]: ERR ['zmc -d /dev/video0' exited abnormally, exit status 255]
Feb 26 17:46:17 ubuntu zmc_dvideo1[22665]: ERR [Sync failure for frame 1 buffer 2(1): Invalid argument]
Feb 26 17:46:17 ubuntu zmc_dvideo1[22665]: ERR [Failed to post-capture monitor 0]
Feb 26 17:46:17 ubuntu zmdc[21823]: ERR ['zmc -d /dev/video1' exited abnormally, exit status 255]
Feb 26 17:46:27 ubuntu zmwatch[21950]: INF [Restarting capture daemon for web, time since last capture 10 seconds (1235663187-1235663177)]
Feb 26 17:46:28 ubuntu zmdc[22684]: INF ['zmc -d /dev/video0' started at 09/02/26 17:46:28]
Feb 26 17:46:28 ubuntu zmdc[21823]: INF ['zmc -d /dev/video0' starting at 09/02/26 17:46:28, pid = 22684]
Feb 26 17:46:28 ubuntu zmwatch[21950]: INF ['zmc -d /dev/video0' starting at 09/02/26 17:46:28, pid = 22684]
Feb 26 17:46:28 ubuntu zmwatch[21950]: INF [Restarting capture daemon for web2, time since last capture 10 seconds (1235663187-1235663177)]
Feb 26 17:46:28 ubuntu zmc_dvideo0[22684]: INF [Debug Level = 0, Debug Log = <none>]
Feb 26 17:46:28 ubuntu zmc_dvideo0[22684]: INF [New Debug Level = 4, New Debug Log = /tmp/zm_debug.log.22684]
Feb 26 17:46:28 ubuntu zmc_dvideo0[22684]: INF [Starting Capture]
Feb 26 17:46:29 ubuntu zmc_dvideo0[22684]: ERR [Sync failure for frame 1 buffer 2(1): Invalid argument]
Feb 26 17:46:29 ubuntu zmc_dvideo0[22684]: ERR [Failed to post-capture monitor 0]
Feb 26 17:46:29 ubuntu zmdc[21823]: ERR ['zmc -d /dev/video0' exited abnormally, exit status 255]
Feb 26 17:46:30 ubuntu zmdc[22710]: INF ['zmc -d /dev/video1' started at 09/02/26 17:46:30]
Feb 26 17:46:30 ubuntu zmdc[21823]: INF ['zmc -d /dev/video1' starting at 09/02/26 17:46:30, pid = 22710]
Feb 26 17:46:30 ubuntu zmwatch[21950]: INF ['zmc -d /dev/video1' starting at 09/02/26 17:46:30, pid = 22710]
Feb 26 17:46:31 ubuntu zmc_dvideo1[22710]: INF [Debug Level = 0, Debug Log = <none>]
Feb 26 17:46:31 ubuntu zmc_dvideo1[22710]: INF [New Debug Level = 4, New Debug Log = /tmp/zm_debug.log.22710]
Feb 26 17:46:31 ubuntu zmc_dvideo1[22710]: INF [Starting Capture]
Feb 26 17:46:32 ubuntu zmc_dvideo1[22710]: ERR [Sync failure for frame 1 buffer 2(1): Invalid argument]
Feb 26 17:46:32 ubuntu zmc_dvideo1[22710]: ERR [Failed to post-capture monitor 0]
Feb 26 17:46:32 ubuntu zmdc[21823]: ERR ['zmc -d /dev/video1' exited abnormally, exit status 255]
Feb 26 17:46:40 ubuntu zmwatch[21950]: INF [Restarting capture daemon for web, time since last capture 11 seconds (1235663200-1235663189)]
Feb 26 17:46:41 ubuntu zmdc[22716]: INF ['zmc -d /dev/video0' started at 09/02/26 17:46:41]
Feb 26 17:46:41 ubuntu zmdc[21823]: INF ['zmc -d /dev/video0' starting at 09/02/26 17:46:41, pid = 22716]
Feb 26 17:46:41 ubuntu zmwatch[21950]: INF ['zmc -d /dev/video0' starting at 09/02/26 17:46:41, pid = 22716]
Feb 26 17:46:41 ubuntu zmwatch[21950]: INF [Restarting capture daemon for web2, time since last capture 8 seconds (1235663200-1235663192)]
Feb 26 17:46:41 ubuntu zmc_dvideo0[22716]: INF [Debug Level = 0, Debug Log = <none>]
Feb 26 17:46:41 ubuntu zmc_dvideo0[22716]: INF [New Debug Level = 4, New Debug Log = /tmp/zm_debug.log.22716]
Feb 26 17:46:41 ubuntu zmc_dvideo0[22716]: INF [Starting Capture]
Feb 26 17:46:42 ubuntu zmdc[22730]: INF ['zmc -d /dev/video1' started at 09/02/26 17:46:42]
Feb 26 17:46:42 ubuntu zmdc[21823]: INF ['zmc -d /dev/video1' starting at 09/02/26 17:46:42, pid = 22730]
Feb 26 17:46:42 ubuntu zmwatch[21950]: INF ['zmc -d /dev/video1' starting at 09/02/26 17:46:42, pid = 22730]
Feb 26 17:46:42 ubuntu zmc_dvideo1[22730]: INF [Debug Level = 0, Debug Log = <none>]
Feb 26 17:46:42 ubuntu zmc_dvideo1[22730]: INF [New Debug Level = 4, New Debug Log = /tmp/zm_debug.log.22730]
Feb 26 17:46:42 ubuntu zmc_dvideo1[22730]: INF [Starting Capture]
Feb 26 17:46:42 ubuntu zmc_dvideo0[22716]: ERR [Sync failure for frame 1 buffer 2(1): Invalid argument]
Feb 26 17:46:42 ubuntu zmc_dvideo0[22716]: ERR [Failed to post-capture monitor 0]
Feb 26 17:46:42 ubuntu zmdc[21823]: ERR ['zmc -d /dev/video0' exited abnormally, exit status 255]
Feb 26 17:46:42 ubuntu zmc_dvideo1[22730]: ERR [Sync failure for frame 1 buffer 2(1): Invalid argument]
Feb 26 17:46:42 ubuntu zmc_dvideo1[22730]: ERR [Failed to post-capture monitor 0]
Feb 26 17:46:42 ubuntu zmdc[21823]: ERR ['zmc -d /dev/video1' exited abnormally, exit status 255]
Feb 26 17:46:52 ubuntu zmwatch[21950]: INF [Restarting capture daemon for web, time since last capture 10 seconds (1235663212-1235663202)]
Feb 26 17:46:52 ubuntu zmdc[22748]: INF ['zmc -d /dev/video0' started at 09/02/26 17:46:52]
Feb 26 17:46:52 ubuntu zmdc[21823]: INF ['zmc -d /dev/video0' starting at 09/02/26 17:46:52, pid = 22748]
Feb 26 17:46:52 ubuntu zmwatch[21950]: INF ['zmc -d /dev/video0' starting at 09/02/26 17:46:52, pid = 22748]
Feb 26 17:46:52 ubuntu zmwatch[21950]: INF [Restarting capture daemon for web2, time since last capture 10 seconds (1235663212-1235663202)]
Feb 26 17:46:52 ubuntu zmc_dvideo0[22748]: INF [Debug Level = 0, Debug Log = <none>]
Feb 26 17:46:52 ubuntu zmc_dvideo0[22748]: INF [New Debug Level = 4, New Debug Log = /tmp/zm_debug.log.22748]
Feb 26 17:46:52 ubuntu zmc_dvideo0[22748]: INF [Starting Capture]
Feb 26 17:46:53 ubuntu zmdc[22762]: INF ['zmc -d /dev/video1' started at 09/02/26 17:46:53]
Feb 26 17:46:53 ubuntu zmdc[21823]: INF ['zmc -d /dev/video1' starting at 09/02/26 17:46:53, pid = 22762]
Feb 26 17:46:53 ubuntu zmwatch[21950]: INF ['zmc -d /dev/video1' starting at 09/02/26 17:46:53, pid = 22762]
Feb 26 17:46:53 ubuntu zmc_dvideo1[22762]: INF [Debug Level = 0, Debug Log = <none>]
Feb 26 17:46:53 ubuntu zmc_dvideo1[22762]: INF [New Debug Level = 4, New Debug Log = /tmp/zm_debug.log.22762]
Feb 26 17:46:53 ubuntu zmc_dvideo0[22748]: ERR [Sync failure for frame 1 buffer 2(1): Invalid argument]
Feb 26 17:46:53 ubuntu zmc_dvideo0[22748]: ERR [Failed to post-capture monitor 0]
Feb 26 17:46:53 ubuntu zmc_dvideo1[22762]: INF [Starting Capture]
Feb 26 17:46:53 ubuntu zmdc[21823]: ERR ['zmc -d /dev/video0' exited abnormally, exit status 255]
Feb 26 17:46:54 ubuntu zmc_dvideo1[22762]: ERR [Sync failure for frame 1 buffer 2(1): Invalid argument]
Feb 26 17:46:54 ubuntu zmc_dvideo1[22762]: ERR [Failed to post-capture monitor 0]
Feb 26 17:46:54 ubuntu zmdc[21823]: ERR ['zmc -d /dev/video1' exited abnormally, exit status 255]


and


user@ubuntu:~$ lsusb
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 004: ID 093a:2460 Pixart Imaging, Inc. Q-TEC WEBCAM 100
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 005: ID 05a9:8519 OmniVision Technologies, Inc. OV519 WebCam
Bus 001 Device 004: ID 046d:c51a Logitech, Inc. MX Revolution/G7 Cordless Mouse
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub




What could be the problem?

Thank you for the quick replay.
Born2Crawl
Posts: 3
Joined: Sat Feb 28, 2009 5:25 pm

Post by Born2Crawl »

Hi all

I've got exactly the same problem (in LinuxMint 6, which is Ubuntu 8.10 in fact). ZM version is 1.23.3 (the last packaged for Ubuntu). I did not install from source.

I have the webcam Genius EYE 110, and it's being found as Pixart Imaging, Inc (pac207).

#zmu -q -d /dev/video0 -v

Video Capabilities
Name: CIF Single Chip
Type: 1
Can capture
Video Channels: 1
Audio Channels: 0
Maximum Width: 352
Maximum Height: 288
Minimum Width: 48
Minimum Height: 32
Window Attributes
X Offset: 0
Y Offset: 0
Width: 176
Height: 144
Picture Attributes
Palette: 0 - Unknown
Colour Depth: 8
Brightness: 8738
Hue: 0
Colour :0
Contrast: 0
Whiteness: 0
Channel 0 Attributes
Name: pac207
Channel: 0
Flags: 0
Type: 2 - Camera
Format: 0 - PAL

I have the picture (after shutting down ZM) in Skype, xawtv, cheese, whatever else. The logs are exactly the same, so no need to paste them here.

I don't see the streaming video, only the still images, mostly just black rectangles. Sometimes there is a very distorted grey image splashes (with a datetime on it).

I've tried all the possible combinations, but it looks like it shows at least something only with PAL (or AUTO) and Grey palette.

The permissions for /dev/video0 are set to 660 and www-data user is in video group.

I've already set shared memory to be smmax = 50 Mb and small = 128 Mb (can it be not enough?!).

Anyway, I've had some messages like "Shared memory not initialized" when ZM was starting (now is seems not to produce these errors anymore).

I've tried to set the source width and height to 320x240 and 176x144, but it did not help.

BTW, this monitor source string (/dev/video0 (0)) is colored red in ZM web interface. I saw it to be orange several times after making some changes, but them it became red again.

Looking though this forum, I see 2 more similar posts, all without the answers:
zmdc exited abnormally, exit status 255
Shared memory

But, this is the most recent.

Aren't there any specialists here to help? :(
liviab
Posts: 87
Joined: Wed Oct 15, 2008 11:54 am
Location: Brazil [MG]

Post by liviab »

I'm with the same problem.
:(

Someone to help us?
nickmcg
Posts: 14
Joined: Thu Mar 05, 2009 8:30 am

Post by nickmcg »

I have the same problem using a logitech quickcam messenger

zmu gives Video Capabilities
Name: USB Camera (046d:08da)
Type: 1
Can capture
Video Channels: 1
Audio Channels: 0
Maximum Width: 640
Maximum Height: 480
Minimum Width: 48
Minimum Height: 32
Window Attributes
X Offset: 0
Y Offset: 0
Width: 320
Height: 240
Picture Attributes
Palette: 0 - Unknown
Colour Depth: 8
Brightness: 32896
Hue: 0
Colour :0
Contrast: 32768
Whiteness: 39321
Channel 0 Attributes
Name: zc3xx
Channel: 0
Flags: 0
Type: 2 - Camera
Format: 0 - PAL

xawtv etc work with no problem

I've tried to compile the newer version of zoneminder with no success.

Any help gratefully appreciated

Nick
liviab
Posts: 87
Joined: Wed Oct 15, 2008 11:54 am
Location: Brazil [MG]

Post by liviab »

what is your problem with the new version?
Born2Crawl
Posts: 3
Joined: Sat Feb 28, 2009 5:25 pm

Post by Born2Crawl »

Hooray, I've managed to configure the latest ZM 1.24.x :D (from the package taked here on this forum) under openSUSE 11.1.
(Yes, I had to install openSUSE in order not to compile from source in Ubuntu :oops: )

It works in Video Mode 2 (not sure I'm correct in the name here), and shows a very small GREY picture, but it works :)

What I've done is changed the resolution of the picture from 'official' 176x144 to something like 180x140 or something like that. Cannot tell you precisely, because my internet is broken at home at the moment.

I've also noticed while testing that after each resolution change it's necessary to refresh (F5) the window with the picture. Otherwise it blinks but does not show the real result.

I've changed the resolution because the image taken from camera was 'shifted' to the right. I mean, each line of pixels was shifted right to 1-2 pixels. After changing the resolution image is stable.

When I try to mage it bigger OR change the palette to anything other than GREY, the picture disappears at all. Perhaps, it's shared memory problem again, I'll investigate it more.

P.S. It does not matter which video format I choose - PAL, SECAM, NTSC, or whatever. The picture is absolutely the same.
And, I did not try the changed resolution with Video Mode 1 yet (like in ZM 1.23).
I will update you all with the results here later.
nickmcg
Posts: 14
Joined: Thu Mar 05, 2009 8:30 am

Post by nickmcg »

liviab,

I'm unable to compile from sources
zm_rtsp.cpp:183: undefined reference to `avformat_alloc_context'

Using ubuntu 8.10

Nick
liviab
Posts: 87
Joined: Wed Oct 15, 2008 11:54 am
Location: Brazil [MG]

Post by liviab »

I had the same problem using Fedora. I commented the line 183 and works. :wink:
However, see what Phil said to me: http://www.zoneminder.com/forums/viewto ... 0351#50351
nickmcg
Posts: 14
Joined: Thu Mar 05, 2009 8:30 am

Post by nickmcg »

I think this is a linker problem _ i'm investigating the libraries now & will let you know what (if) I find

Nick
nickmcg
Posts: 14
Joined: Thu Mar 05, 2009 8:30 am

Post by nickmcg »

Ok, it does seem to be a linker problem.

Zoneminder compiled successfully after I copied the lib files from /usr/local/lib to /usr/lib


HTH

Nick
nickmcg
Posts: 14
Joined: Thu Mar 05, 2009 8:30 am

Post by nickmcg »

Another problem (related maybe)

Code: Select all

 sudo zmu -q -v /dev/video1
zmu: symbol lookup error: /usr/local/lib/libavcodec.so.52: undefined symbol: av_gcd
Any ideas?

Nick :cry:
liviab
Posts: 87
Joined: Wed Oct 15, 2008 11:54 am
Location: Brazil [MG]

Post by liviab »

Did you copy or move the lib files from /usr/local/lib to /usr/lib?
nickmcg
Posts: 14
Joined: Thu Mar 05, 2009 8:30 am

Post by nickmcg »

I copied the files

Nick
Locked