Xubuntu 10.04.2 alternate, ZM 1.24.2, rtsp through swf

Forum for questions and support relating to the 1.24.x releases only.
Locked
ghzroy
Posts: 3
Joined: Tue Sep 06, 2011 10:46 am

Xubuntu 10.04.2 alternate, ZM 1.24.2, rtsp through swf

Post by ghzroy »

I'd like to say hello to everyone as this my first post!

This is also my first attempt to install this wonderful zoneminder and only had a few experiences with ubuntu and it's derivates as a desktop solution.

Just created a virtual machine(1024MB, 2cores) with xubuntu 10.04.2 through an alternate cd.

Installed zoneminder from the repositories with

Code: Select all

$ sudo apt-get install zoneminder 
and went through the installation process of ZM, mySQL and apache2.

To make sure Apache refers to zm

Code: Select all

$ sudo ln -s /etc/zm/apache.conf /etc/apache2/conf.d/zoneminder.conf
$ sudo /etc/init.d/apache2 force-reload 
Then i tried to access the desired ipcam's(Edimax IC7000Ptn) rtsp stream with totem and rtsp://192.168.20.13.554/ipcam.sdp which worked out fine and gave me a livepicture of the cam after installing the necessary gstreamer ffmpeg plugin.

Afterwards i created a monitor through ZM's web interface like this(settings taken from the vivotek 7131 as it seams edimax's cameras are rebranded vivoteks):

Remote Protocol RTSP
Remote Method RTP/RTSP
Remote Host Name 192.168.20.13
Remote Host Port 554
Remote Host Path /ipcam.sdp
Remote Image Colours 24bit
Capture Width (pixels) 640
Capture Height (pixels) 480

Changed STREAM_METHOD on the "Images"- Tab in the options from jpeg to mpeg and made sure MPEG_LIVE_FORMAT is set to swf.

After restarting ZM I tried to access the camera on ZM's web interface from several different browsers(Firefox, IE, Chrome) but couldn't get a picture on any of them.

Having a look at the tmp folder and the corresponding zm log files didn't get me any further as I am not sure at which I start looking for.

I believe xubuntu is missing the proper codecs to create the image(even if ffmpeg is installed)

zmaudit
empty

zmdc

Code: Select all

09/06/2011 12:09:34.734251 zmdc[7191].INF [Server starting at 11/09/06 12:09:34]
09/06/2011 12:09:37.907393 zmdc[7191].INF ['zmfilter.pl' starting at 11/09/06 1$
09/06/2011 12:09:38.060935 zmdc[7191].INF ['zmaudit.pl -c' starting at 11/09/06$
09/06/2011 12:09:38.284165 zmdc[7191].INF ['zmwatch.pl' starting at 11/09/06 12$
09/06/2011 12:14:25.928011 zmdc[7191].WAR [Can't find process with command of '$
09/06/2011 12:14:25.950578 zmdc[7191].INF ['zmc -m 1' starting at 11/09/06 12:1$
09/06/2011 12:14:26.020534 zmdc[7191].ERR ['zmc -m 1' exited abnormally, exit s$
09/06/2011 12:14:26.021770 zmdc[7191].INF [Starting pending process, zmc -m 1]
09/06/2011 12:14:26.026387 zmdc[7191].INF ['zmc -m 1' starting at 11/09/06 12:1$
09/06/2011 12:14:26.116373 zmdc[7191].ERR ['zmc -m 1' exited abnormally, exit s$
09/06/2011 12:14:26.167975 zmdc[7191].WAR [Can't find process with command of '$
09/06/2011 12:14:31.054096 zmdc[7191].INF [Starting pending process, zmc -m 1]
09/06/2011 12:14:31.055767 zmdc[7191].INF ['zmc -m 1' starting at 11/09/06 12:1$
09/06/2011 12:14:31.344283 zmdc[7191].ERR ['zmc -m 1' exited abnormally, exit s$
09/06/2011 12:14:41.080456 zmdc[7191].INF [Starting pending process, zmc -m 1]
09/06/2011 12:14:41.082520 zmdc[7191].INF ['zmc -m 1' starting at 11/09/06 12:1$
09/06/2011 12:14:41.123948 zmdc[7191].ERR ['zmc -m 1' exited abnormally, exit s$
09/06/2011 12:15:01.077543 zmdc[7191].INF [Starting pending process, zmc -m 1]
09/06/2011 12:15:01.079983 zmdc[7191].INF ['zmc -m 1' starting at 11/09/06 12:1$
09/06/2011 12:15:01.122356 zmdc[7191].ERR ['zmc -m 1' exited abnormally, exit s$
09/06/2011 12:15:32.625303 zmdc[7191].INF ['zmwatch.pl ' stopping at 11/09/06 1$
09/06/2011 12:15:32.625363 zmdc[7191].INF ['zmwatch.pl ' exited, signal 14]
09/06/2011 12:15:32.625366 zmdc[7191].INF ['zmaudit.pl -c' stopping at 11/09/06$
09/06/2011 12:15:32.625374 zmdc[7191].INF ['zmaudit.pl -c' exited, signal 14]
09/06/2011 12:15:32.625374 zmdc[7191].INF ['zmfilter.pl ' stopping at 11/09/06 $
09/06/2011 12:15:32.632487 zmdc[7191].INF ['zmfilter.pl ' exited, signal 14]
09/06/2011 12:15:42.813233 zmdc[7191].INF [Server shutdown at 11/09/06 12:15:42]
09/06/11 12:15:42.981041 zmdc[7776].INF [Server starting at 11/09/06 12:15:42]
09/06/11 12:15:45.996266 zmdc[7776].INF ['zmc -m 1' starting at 11/09/06 12:15:$
09/06/11 12:15:46.030401 zmdc[7776].ERR ['zmc -m 1' exited abnormally, exit sta$
09/06/11 12:15:46.032907 zmdc[7776].INF [Starting pending process, zmc -m 1]
09/06/11 12:15:46.037830 zmdc[7776].INF ['zmc -m 1' starting at 11/09/06 12:15:$
09/06/11 12:15:46.134480 zmdc[7776].ERR ['zmc -m 1' exited abnormally, exit sta$
09/06/11 12:15:46.161794 zmdc[7776].INF ['zmfilter.pl' starting at 11/09/06 12:$
09/06/11 12:15:46.346129 zmdc[7776].INF ['zmaudit.pl -c' starting at 11/09/06 1$
09/06/11 12:15:46.681075 zmdc[7776].INF ['zmwatch.pl' starting at 11/09/06 12:1$
09/06/11 12:15:51.032307 zmdc[7776].INF [Starting pending process, zmc -m 1]
09/06/11 12:15:51.034663 zmdc[7776].INF ['zmc -m 1' starting at 11/09/06 12:15:$
09/06/11 12:15:51.093069 zmdc[7776].ERR ['zmc -m 1' exited abnormally, exit sta$
09/06/11 12:16:01.043246 zmdc[7776].INF [Starting pending process, zmc -m 1]
09/06/11 12:16:01.045505 zmdc[7776].INF ['zmc -m 1' starting at 11/09/06 12:16:$
09/06/11 12:16:01.084026 zmdc[7776].ERR ['zmc -m 1' exited abnormally, exit sta$
09/06/11 12:16:21.053066 zmdc[7776].INF [Starting pending process, zmc -m 1]
09/06/11 12:16:21.055566 zmdc[7776].INF ['zmc -m 1' starting at 11/09/06 12:16:$
09/06/11 12:16:21.097652 zmdc[7776].ERR ['zmc -m 1' exited abnormally, exit sta$
09/06/11 12:17:01.007875 zmdc[7776].INF [Starting pending process, zmc -m 1]
09/06/11 12:17:01.010114 zmdc[7776].INF ['zmc -m 1' starting at 11/09/06 12:17:$
09/06/11 12:17:01.050513 zmdc[7776].ERR ['zmc -m 1' exited abnormally, exit sta$
09/06/11 12:18:21.041845 zmdc[7776].INF [Starting pending process, zmc -m 1]
09/06/11 12:18:21.043934 zmdc[7776].INF ['zmc -m 1' starting at 11/09/06 12:18:$
09/06/11 12:18:21.090846 zmdc[7776].ERR ['zmc -m 1' exited abnormally, exit sta$
09/06/11 12:21:01.091103 zmdc[7776].INF [Starting pending process, zmc -m 1]
09/06/11 12:21:01.093322 zmdc[7776].INF ['zmc -m 1' starting at 11/09/06 12:21:$
09/06/11 12:21:01.134062 zmdc[7776].ERR ['zmc -m 1' exited abnormally, exit sta$
09/06/11 12:26:21.049407 zmdc[7776].INF [Starting pending process, zmc -m 1]
09/06/11 12:26:21.052430 zmdc[7776].INF ['zmc -m 1' starting at 11/09/06 12:26:$
09/06/11 12:26:21.094406 zmdc[7776].ERR ['zmc -m 1' exited abnormally, exit sta$
09/06/11 12:36:21.067510 zmdc[7776].INF [Starting pending process, zmc -m 1]
09/06/11 12:36:21.070171 zmdc[7776].INF ['zmc -m 1' starting at 11/09/06 12:36:$
09/06/11 12:36:21.137864 zmdc[7776].ERR ['zmc -m 1' exited abnormally, exit sta$
09/06/11 12:46:21.033665 zmdc[7776].INF [Starting pending process, zmc -m 1]
09/06/11 12:46:21.036184 zmdc[7776].INF ['zmc -m 1' starting at 11/09/06 12:46:$
09/06/11 12:46:21.092842 zmdc[7776].ERR ['zmc -m 1' exited abnormally, exit sta$
09/06/11 12:56:21.058557 zmdc[7776].INF [Starting pending process, zmc -m 1]
09/06/11 12:56:21.061190 zmdc[7776].INF ['zmc -m 1' starting at 11/09/06 12:56:$
09/06/11 12:56:21.102153 zmdc[7776].ERR ['zmc -m 1' exited abnormally, exit sta$
09/06/11 13:06:21.040856 zmdc[7776].INF [Starting pending process, zmc -m 1]
zmfilter

Code: Select all

09/06/2011 12:09:38.320442 zmfilter[7213].INF [Scanning for events]
09/06/11 12:15:46.661884 zmfilter[7803].INF [Scanning for events]
zmpkg

Code: Select all

09/06/2011 12:09:34.361504 zmpkg[7181].INF [Command: start]
09/06/11 12:15:32.464372 zmpkg[7743].INF [Command: restart]
zmwatch

Code: Select all

9/06/2011 12:09:38.459005 zmwatch[7218].INF [Watchdog starting]
09/06/2011 12:09:38.459703 zmwatch[7218].INF [Watchdog pausing for 30 seconds]
09/06/2011 12:14:28.509187 zmwatch[7218].ERR [Can't get shared memory id '7a6d0001', 1: No such file or directory]
09/06/2011 12:14:38.511523 zmwatch[7218].ERR [Can't get shared memory id '7a6d0001', 1: No such file or directory]
09/06/2011 12:14:48.512497 zmwatch[7218].ERR [Can't get shared memory id '7a6d0001', 1: No such file or directory]
09/06/2011 12:14:58.513426 zmwatch[7218].ERR [Can't get shared memory id '7a6d0001', 1: No such file or directory]
09/06/2011 12:15:08.515422 zmwatch[7218].ERR [Can't get shared memory id '7a6d0001', 1: No such file or directory]
09/06/2011 12:15:18.517846 zmwatch[7218].ERR [Can't get shared memory id '7a6d0001', 1: No such file or directory]
09/06/2011 12:15:28.520664 zmwatch[7218].ERR [Can't get shared memory id '7a6d0001', 1: No such file or directory]
09/06/11 12:15:46.907037 zmwatch[7807].INF [Watchdog starting]
09/06/11 12:15:46.908280 zmwatch[7807].INF [Watchdog pausing for 30 seconds]
09/06/11 12:16:16.911822 zmwatch[7807].ERR [Can't get shared memory id '7a6d0001', 1: No such file or directory]
09/06/11 12:16:26.914820 zmwatch[7807].ERR [Can't get shared memory id '7a6d0001', 1: No such file or directory]
Thanks in advance for any tips or a push in the right direction!

Greets, Janis

EDIT:

Found the advanced debugging checkbox in the options!

Now I get usable error messages that are telling me that it might not have enough shared memory which is quite a common problem as it seems... :oops:

I'll try to fix it myself with the infos given in the FAQ, first!

EDIT #2

After lowering the resolution on camera and in ZM to 320x240 and restarting the ZM shared memory errors are gone.

zmdc.log now gives me this

Code: Select all

09/06/11 16:07:23.123574 zmdc[1385].INF [Server starting at 11/09/06 16:07:23]
09/06/11 16:07:26.363195 zmdc[1385].INF ['zmc -m 1' starting at 11/09/06 16:07:2$
09/06/11 16:07:26.484760 zmdc[1385].INF ['zmfilter.pl' starting at 11/09/06 16:0$
09/06/11 16:07:26.713936 zmdc[1385].INF ['zmaudit.pl -c' starting at 11/09/06 16$
09/06/11 16:07:26.911716 zmdc[1385].INF ['zmwatch.pl' starting at 11/09/06 16:07$
09/06/11 16:07:30.706239 zmdc[1385].ERR ['zmc -m 1' exited abnormally, exit stat$
09/06/11 16:07:30.706851 zmdc[1385].INF [Starting pending process, zmc -m 1]
09/06/11 16:07:30.708681 zmdc[1385].INF ['zmc -m 1' starting at 11/09/06 16:07:3$
09/06/11 16:07:34.875693 zmdc[1385].ERR ['zmc -m 1' exited abnormally, exit stat$
09/06/11 16:07:39.002818 zmdc[1385].INF [Starting pending process, zmc -m 1]
09/06/11 16:07:39.004783 zmdc[1385].INF ['zmc -m 1' starting at 11/09/06 16:07:3$
first zm_debug that

Code: Select all

09/06/11 16:07:30.741535 zmc_m1[1426].INF-zm_debug.c/292 [New Debug Level = 0, N$
09/06/11 16:07:30.753130 zmc_m1[1426].INF-zmc.cpp/188 [Starting Capture]
09/06/11 16:07:34.273860 zmc_m1[1427].ERR-zm_rtsp.cpp/562 [RTSP timed out]
09/06/11 16:07:34.870990 zmc_m1[1426].ERR-zmc.cpp/260 [Failed to capture image f$
the one created after trying to cam in web interface

Code: Select all

09/06/11 16:12:11.938171 zms[1465].INF-zm_debug.c/292 [New Debug Level = 0, New $
09/06/11 16:12:12.461043 zms[1465].ERR-zm_monitor.cpp/3579 [Terminating, last fr$
EDIT #3

Now after changing values for shmall and shmmax there is only one error left :)

Code: Select all

09/06/11 17:06:02.486278 zms[1513].INF-zm_debug.c/292 [New Debug Level = 0, New Debug Log = /tmp/zm_debug.log.01513]
09/06/11 17:06:03.000520 zms[1513].ERR-zm_monitor.cpp/3579 [Terminating, last frame sent time 1315321562.499771 secs more than maximum of 10.000000]
but still no luck(neither google nor forum search gave me information about what this error means...a simple timeout?)
bb99
Posts: 943
Joined: Wed Apr 02, 2008 12:04 am

Re: Xubuntu 10.04.2 alternate, ZM 1.24.2, rtsp through swf

Post by bb99 »

Did you try:
Remote Protocol: RTSP
Remote Method: RTP/RTSP
Remote Host Name: x.x.x.x
Remote Host Port: 554
Remote Host Path: /live.sdp
Remote Host SubPath: /trackID=
Remote Image Colours: 24 bit colour
Capture Width (pixels): 640
Capture Height (pixels): 480

http://www.zoneminder.com/wiki/index.php/Vivotek

Be sure to up the shared memory for this resolution.
ghzroy
Posts: 3
Joined: Tue Sep 06, 2011 10:46 am

Re: Xubuntu 10.04.2 alternate, ZM 1.24.2, rtsp through swf

Post by ghzroy »

Thanks for the reply bb99 but I tried to set the values exactly from the link you posted.

The only setting I couldn't find is this one:
Remote Host SubPath: /trackID=
I suppose this one is only available in an older/newer version of ZM.

Would ZM tell me in the logs if it is missing codecs to render the image?

No idea what this could be about? What I could have a closer at?

I tried to install ZM on a second xubuntu(this time clean install of 11.04). Same error in the log:

Code: Select all

09/07/11 12:07:45.066528 zms[3030].INF-zm_debug.c/292 [New Debug Level = 0, New Debug Log = /tmp/zm_debug.log.03030]
09/07/11 12:07:45.605381 zms[3030].ERR-zm_monitor.cpp/3579 [Terminating, last frame sent time 1315390065.188396 secs more than maximum of 10.000000]
bb99
Posts: 943
Joined: Wed Apr 02, 2008 12:04 am

Re: Xubuntu 10.04.2 alternate, ZM 1.24.2, rtsp through swf

Post by bb99 »

After having parsed allot of host paths my intuition says "/live.sdp/trackID=" would be a good guess. Worth a try any away. Drop the resolution down to 320*240 just to be safe.

Your error could be buffer settings, on the buffer tab of the monitor:
Attachments
Screenshot-1.png
Screenshot-1.png (10.08 KiB) Viewed 2152 times
ghzroy
Posts: 3
Joined: Tue Sep 06, 2011 10:46 am

Re: Xubuntu 10.04.2 alternate, ZM 1.24.2, rtsp through swf

Post by ghzroy »

Thanks bb for your efforts,

I just did as you supposed and added /trackID= and trackID=1 and tested both after restarting ZM - still no gain :(

The same with changing the buffer settings back and forth - absolutely no difference

Still the same error in the log and a white screen with the control buttons at the bottom when I try to show camera picture in the ZM browser interface.

What got my attention when restarting the zm server was traffic on the lan connection of the cam for 5 seconds(while it is of course constantly flashing when accessed through mplayer).

Started WireShark on the xubuntu machine to have a look at the traffic between ZM(192.168.20.190) and the camera(192.168.20.13).

Below(for whom it may concern and is able to read those) you find the two capture files:

Once with the traffic when accessing camera through mplayer, the other with the traffic happening after I restarted ZM(I can see it is trying to access the cam but stops after ~5secs - AND there is no new traffic appearing when I start the monitoring in the web interface)

EDIT: I am not able to attach files as it seems. Browsed for the files, clicked the add files button, a little window pops up telling me the upload is in progress, but files never get attached
Not even allowed to attach dropbox URLs. It says "Your post looks too spamy for a new user, please remove off-site URLs." :roll:
Locked