zmc 100% CPU when viewing monitor, camera disconnects.

Forum for questions and support relating to the 1.25.x releases only.
Locked
Azelphur
Posts: 6
Joined: Thu Feb 07, 2013 9:00 pm

zmc 100% CPU when viewing monitor, camera disconnects.

Post by Azelphur »

Hi folks, I'm very new to ZoneMinder.

I am trying to hook up my Edimax IC-7000PTn camera.

When using the cameras built in web panel, it functions extremely well, very smooth frame rate with only a few milliseconds of delay, this is using the MJPEG stream.

ZoneMinder doesn't seem to have an option for MJPEG (I've been told that the HTTP option works for this, but I never got it to work) so I have it set to using RTSP instead. The result is that when I view the monitor page, the zmc uses most of my CPU time, the page I'm doing around 12fps, but the reality is more around the 0.1fps mark. After a short period of time, the stream cuts out completely. I recorded a video to demonstrate the issue which you can see here: dropbox . com/s/9cvfesq261e8hn0/Untitled_Screencast.webm

The RTSP stream also works reasonably well in VLC.

Any thoughts on how to resolve this? Thanks!

Edit: Here is how I have the camera set up: dropbox . com/sh/mh7z49l0fedh1qd/ICPeyYdfgG#/
bb99
Posts: 943
Joined: Wed Apr 02, 2008 12:04 am

Re: zmc 100% CPU when viewing monitor, camera disconnects.

Post by bb99 »

Try ffmpeg for source type. Rtp/Rtsp don't work well in ZM any other way.
Azelphur
Posts: 6
Joined: Thu Feb 07, 2013 9:00 pm

Re: zmc 100% CPU when viewing monitor, camera disconnects.

Post by Azelphur »

Aha! now it works.

I changed to ffmpeg as suggested, for future googlers the solution is...
Source Type: Ffmpeg
Source Path: rtsp://admin:1234@ip.of.cam.era/ipcam.sdp

To get a decent framerate from the monitor, Configure for high bandwidth (the button on the main page at the top), then go to options > High B/W and change stream method from jpeg to mpeg.

I now get a very fast view (< 1 second latency) and low CPU usage (~7% on my Single core 2.8ghz sempron 140.)

Thanks! :)
Azelphur
Posts: 6
Joined: Thu Feb 07, 2013 9:00 pm

Re: zmc 100% CPU when viewing monitor, camera disconnects.

Post by Azelphur »

Other questions about this camera now :P

It has built in audio, which does work over the RTSP (as confirmed by VLC), how do I get this to work in zoneminder
It also has PTZ, is it possible to get this working? the PTZ seems pretty simple, it posts things like "left" and "right" eg /camera-cgi/com/ptz.cgi?move=right
bb99
Posts: 943
Joined: Wed Apr 02, 2008 12:04 am

Re: zmc 100% CPU when viewing monitor, camera disconnects.

Post by bb99 »

ZM doesn't support sound as of yet.
Azelphur
Posts: 6
Joined: Thu Feb 07, 2013 9:00 pm

Re: zmc 100% CPU when viewing monitor, camera disconnects.

Post by Azelphur »

bb99 wrote:ZM doesn't support sound as of yet.
That's a shame, kind of ruins my plan.

What about a custom recording command? vlc sees the sound, so if I could use a custom command to record, VLC could capture the sound.
Locked