07-06-2019, 03:17 AM
Hi Martin,
I don't have any experience with the motioneye software, but i think it
should be possible to handle three streams. I am using a rock64 with
two usb webcams and zoneminder and even that works.
Just as with every problem i would advise you to split up the problem.
First try to test the cams. Hopefully you also have another pc or
laptop. Try to open a stream (for example with vlc player) and look
at the bandwith that is used. Multiple the bandwidth times 3 to get
the total bandwith for your cams. Also keep in mind the number
of packets per seconds, since this also makes a big impact on your
wifi network.
If the cams (streams) work fine. Take the next step and try to get
a single stream to be handled by your rock64 and motioneye
software. If the stream is running login to your rock64 and run
'top'. Look at the system load, how many cores are using cpu
power. What is the i/o wait average? A high wait indicates problems
handling data from network and/or disk storage. In these cases
you could try to use a different i/o schedular or play with the
disk dirty write bufffers:
/sys/class/block/[your block device]/queue/scheduler
/proc/sys/vm/dirty_writeback_centisecs
/proc/sys/vm/dirty_expire_centisecs
/proc/sys/vm/dirty_bytes
Hope this will help to fix the performance issues.
I don't have any experience with the motioneye software, but i think it
should be possible to handle three streams. I am using a rock64 with
two usb webcams and zoneminder and even that works.
Just as with every problem i would advise you to split up the problem.
First try to test the cams. Hopefully you also have another pc or
laptop. Try to open a stream (for example with vlc player) and look
at the bandwith that is used. Multiple the bandwidth times 3 to get
the total bandwith for your cams. Also keep in mind the number
of packets per seconds, since this also makes a big impact on your
wifi network.
If the cams (streams) work fine. Take the next step and try to get
a single stream to be handled by your rock64 and motioneye
software. If the stream is running login to your rock64 and run
'top'. Look at the system load, how many cores are using cpu
power. What is the i/o wait average? A high wait indicates problems
handling data from network and/or disk storage. In these cases
you could try to use a different i/o schedular or play with the
disk dirty write bufffers:
/sys/class/block/[your block device]/queue/scheduler
/proc/sys/vm/dirty_writeback_centisecs
/proc/sys/vm/dirty_expire_centisecs
/proc/sys/vm/dirty_bytes
Hope this will help to fix the performance issues.