Dear all
It's my first message on the board but i'm quite sure not the last
From time i'm playng with zoneminder and last week I setup a very strong system with 9 2MPX H.264 cams (1600x1200) in mocord.
The server it's a Intel I5 Quad Core with 4GB of RAM, 2TB HDD, gigaeth, Ubuntu 12.04 lts ( before just shell and now with Lubuntu) and ZM 1.25
Cameras are connected with a hyperlan 300Mbps network...
I take for this work n.5 2MPX cameras 1600x1200 ( china but very very nice) and n.3 Vivotek 8161 2MPX 1600x1200, both configured with 5FPS and H.264 codec.
All seems to work perfectly with console load of almost 5%, but sometimes I can found events from encoding errors like this
I have tried to update ffmpeg
to modify shmax to 1GB but nothing can help to to solve...
I exclude hyperlan network because 2 cameras are directly connected to the server but with same encoding problem.
Zoneminder's log it's clear from error...
Can someone help me to found the trouble?
Could be too less powerfull the CPU for 9 hi res mocord channel???
Encoding problem with HD cams - SOLVED -
Encoding problem with HD cams - SOLVED -
Last edited by licchende on Thu Aug 16, 2012 9:56 am, edited 1 time in total.
Re: Encoding problem with HD cams
my error... MODECT mode for all cameras
Re: Encoding problem with HD cams
Here my status by TOP command
top - 18:12:27 up 1:04, 2 users, load average: 8.46, 8.47, 8.13
Tasks: 138 total, 3 running, 135 sleeping, 0 stopped, 0 zombie
Cpu(s): 93.7%us, 0.7%sy, 0.0%ni, 3.9%id, 1.6%wa, 0.0%hi, 0.1%si, 0.0%st
Mem: 3948132k total, 3827336k used, 120796k free, 185984k buffers
Swap: 4087804k total, 124k used, 4087680k free, 2462656k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
2224 www-data 20 0 497m 243m 222m R 45 6.3 28:38.07 zma
2222 www-data 20 0 492m 239m 222m S 44 6.2 27:23.51 zma
2232 www-data 20 0 496m 243m 222m S 44 6.3 28:20.23 zma
1932 www-data 20 0 498m 244m 222m S 43 6.3 27:02.04 zma
9090 www-data 20 0 504m 250m 222m D 40 6.5 3:12.59 zma
1971 www-data 20 0 409m 156m 143m S 29 4.1 18:16.78 zma
5802 www-data 20 0 408m 155m 143m S 29 4.0 10:00.03 zma
1985 www-data 20 0 409m 155m 143m S 14 4.0 8:53.37 zma
1907 www-data 20 0 796m 304m 223m S 14 7.9 8:10.24 zmc
1893 www-data 20 0 796m 284m 223m S 12 7.4 8:07.68 zmc
1936 www-data 20 0 796m 308m 223m S 12 8.0 8:11.26 zmc
1878 www-data 20 0 795m 283m 223m S 12 7.4 7:40.26 zmc
1921 www-data 20 0 795m 283m 223m S 11 7.4 7:33.23 zmc
1951 www-data 20 0 707m 185m 144m S 10 4.8 6:22.18 zmc
1964 www-data 20 0 708m 203m 144m S 10 5.3 6:19.90 zmc
1978 www-data 20 0 707m 198m 144m S 6 5.1 4:00.11 zmc
79 root 20 0 0 0 0 S 0 0.0 0:02.70 kworker/1:1
and my mpstat
root@ZM:~# mpstat
Linux 3.2.0-27-generic (ZM) 09/08/2012 _x86_64_ (4 CPU)
18:13:54 CPU %usr %nice %sys %iowait %irq %soft %steal %guest %id le
18:13:54 all 94,13 0,21 0,69 0,78 0,00 0,19 0,00 0,00 4, 00
What You think about?
top - 18:12:27 up 1:04, 2 users, load average: 8.46, 8.47, 8.13
Tasks: 138 total, 3 running, 135 sleeping, 0 stopped, 0 zombie
Cpu(s): 93.7%us, 0.7%sy, 0.0%ni, 3.9%id, 1.6%wa, 0.0%hi, 0.1%si, 0.0%st
Mem: 3948132k total, 3827336k used, 120796k free, 185984k buffers
Swap: 4087804k total, 124k used, 4087680k free, 2462656k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
2224 www-data 20 0 497m 243m 222m R 45 6.3 28:38.07 zma
2222 www-data 20 0 492m 239m 222m S 44 6.2 27:23.51 zma
2232 www-data 20 0 496m 243m 222m S 44 6.3 28:20.23 zma
1932 www-data 20 0 498m 244m 222m S 43 6.3 27:02.04 zma
9090 www-data 20 0 504m 250m 222m D 40 6.5 3:12.59 zma
1971 www-data 20 0 409m 156m 143m S 29 4.1 18:16.78 zma
5802 www-data 20 0 408m 155m 143m S 29 4.0 10:00.03 zma
1985 www-data 20 0 409m 155m 143m S 14 4.0 8:53.37 zma
1907 www-data 20 0 796m 304m 223m S 14 7.9 8:10.24 zmc
1893 www-data 20 0 796m 284m 223m S 12 7.4 8:07.68 zmc
1936 www-data 20 0 796m 308m 223m S 12 8.0 8:11.26 zmc
1878 www-data 20 0 795m 283m 223m S 12 7.4 7:40.26 zmc
1921 www-data 20 0 795m 283m 223m S 11 7.4 7:33.23 zmc
1951 www-data 20 0 707m 185m 144m S 10 4.8 6:22.18 zmc
1964 www-data 20 0 708m 203m 144m S 10 5.3 6:19.90 zmc
1978 www-data 20 0 707m 198m 144m S 6 5.1 4:00.11 zmc
79 root 20 0 0 0 0 S 0 0.0 0:02.70 kworker/1:1
and my mpstat
root@ZM:~# mpstat
Linux 3.2.0-27-generic (ZM) 09/08/2012 _x86_64_ (4 CPU)
18:13:54 CPU %usr %nice %sys %iowait %irq %soft %steal %guest %id le
18:13:54 all 94,13 0,21 0,69 0,78 0,00 0,19 0,00 0,00 4, 00
What You think about?
Re: Encoding problem with HD cams
maybe is the ram...because you have almost all the RAM occupied...try increasing the ram...
Also do not open the montage or individual cameras directly from that server, because the display would flash to overflow the CPU and RAM
Also do not open the montage or individual cameras directly from that server, because the display would flash to overflow the CPU and RAM
Re: Encoding problem with HD cams - SOLVED -
SOLVED
After I have forced on the system to work only with TCP connection oriented flow everything start to work very well also if the ram it's almost fully occupied
For sure It work with UDP connectionless protocoll by default and H264 don't like it.
No I've another trouble, but for this It's helpfull another title
After I have forced on the system to work only with TCP connection oriented flow everything start to work very well also if the ram it's almost fully occupied
For sure It work with UDP connectionless protocoll by default and H264 don't like it.
No I've another trouble, but for this It's helpfull another title