RTSP stream, image smudging and ZM Warnings

Forum for questions and support relating to the 1.28.x releases only.
User avatar
asker
Posts: 1553
Joined: Sun Mar 01, 2015 12:12 pm

Re: RTSP stream, image smudging and ZM Warnings

Post by asker »

Adding a quick note here: Many users interpret this advice also means to leave the MaxFPS in ZM blank and set the in-camera FPS as needed.

That's what I did till I read this note: Knnniggett noted here that if an FFMPEG camera goes down (offline) and there is no MaxFPS in ZM, then ZM eats up CPU trying to reach it. I verified this to be true - I took one of my ffmpeg cameras offline and the CPU shot up to 67% (from 18%). I took two off, and it went to 86% constant.
To avoid this problem, I followed the advice provided in the thread I linked to above - I set in-camera FPS to "x" and ZM maxFPS to x+3 (some number more than x, large enough to make sure rounding off errors don't make ZM rate-limit a live camera). I validated this approach by again taking two of my cameras offline, and the load increase was minimal.
knnniggett wrote:Couple of follow up notes:

- For ip cameras, always set the frame rate in the camera, *not* in zoneminder. Trying to reduce the frame rate by putting values into the monitor max fps & alarm max fields is guaranteed not to work correctly.

- Yes, the WiKi is editable by anyone. Please help out by keeping it up to date.
I no longer work on zmNinja, zmeventnotification, pyzm or mlapi. I may respond on occasion based on my available time/interest.

Please read before posting:
How to set up logging properly
How to troubleshoot and report - ES
How to troubleshoot and report - zmNinja
ES docs
zmNinja docs
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: RTSP stream, image smudging and ZM Warnings

Post by knight-of-ni »

Correct, which is why I stated you should not place a value in those fields to *reduce* the frame rate.

If you look at the previous post from themagicm, he put a value of 5 in there.
It is unlikely he has the frame rate in his camera set less than that, which means he is going to experience frame loss and missed events.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
licchende
Posts: 13
Joined: Thu Aug 09, 2012 8:19 am

Re: RTSP stream, image smudging and ZM Warnings

Post by licchende »

Hello All,

I've the same problem, image smudge just from one camera of 5, it's connected to same switch of another one, all are same brand 1920x1080 configured with ffmpg and 10fps

In past I had solved with ?TCP rule, but in this case seems that does'nt work.
I was thinking about increase I-Frame value on camera... what you think about?

Kind regards to all ZM friends
Locked