Video records FPS much lower than original stream
Posted: Fri May 07, 2021 3:46 pm
I'm using 1.34.26 Zoneminder on Ubuntu 20.04 with single IP-camera. Camera resolution is set to 1280x720, and it is plugged over 100Mb Ethernet cable, so bandwidth is enough - when playing rtsp stream with VLC, I get more than 20 fps.
When watching image on ZoneMinder console, it indicates about 25 fps, but in fact, image freezes each second or two for half-second. I have increased "Stream Replay Image Buffer" parameter from default 1 to 1000, as recommended in some topics of the forum, freezing's becomes rarely, but do not disappear.
When recording alarm event, fps is even lower - less than 3 fps, and frames are very uneven, in FRAMES list there can be only one frame in some second. Processor speed is not the reason - I have recently changed hardware from AMD Athlon(tm) XP 2400 to Celeron J4125, it is at least 10 times faster, but fps does not increased. CPU load is about 20% on two cores and less than 5% on the other two.
Than I assumed, the problem may be in camera's codec (H264), neither VLC not SMPlayer shows any errors in logs, but sometimes there are image artefacts. So I plugged into the server 640x480 usb camera and create ZoneMinder monitor using v4l2 driver. It behaves in the same way - freezings when displaying webcam in browser, 20+ fps indication but not more than 4 fps in recorded alarms.
Does anybody have any ideas, how to increase fps in event recordings or at least - what is the reason for it?
When watching image on ZoneMinder console, it indicates about 25 fps, but in fact, image freezes each second or two for half-second. I have increased "Stream Replay Image Buffer" parameter from default 1 to 1000, as recommended in some topics of the forum, freezing's becomes rarely, but do not disappear.
When recording alarm event, fps is even lower - less than 3 fps, and frames are very uneven, in FRAMES list there can be only one frame in some second. Processor speed is not the reason - I have recently changed hardware from AMD Athlon(tm) XP 2400 to Celeron J4125, it is at least 10 times faster, but fps does not increased. CPU load is about 20% on two cores and less than 5% on the other two.
Than I assumed, the problem may be in camera's codec (H264), neither VLC not SMPlayer shows any errors in logs, but sometimes there are image artefacts. So I plugged into the server 640x480 usb camera and create ZoneMinder monitor using v4l2 driver. It behaves in the same way - freezings when displaying webcam in browser, 20+ fps indication but not more than 4 fps in recorded alarms.
Does anybody have any ideas, how to increase fps in event recordings or at least - what is the reason for it?