Rock64 for video surveillance
#1
Hi,

I am using a Rock64 (4GB, SSD via USB) running Debian for my home automation (ioBroker). Additionally I want to use it for video surveillance.

Currently I am trying out motioneye and I am streaming (or trying to) from 2-3 Xiaomi Cams that run the dafang hack. The latter enables the cams to stream via rstp H264. The cams are connected via wifi (Ubiquiti Unifi AC Pros). Both access points ( AC Pros ) and the Rock64 are connected via gigabit lan to my router.

At the moment the whole system is rather unstable and I am trying to figure out why. For a few days I was able to get streams from two cams, but I could not add a third one without motioneye stopping to show any cams. Now that we are back from vacation suddenly I can get only one cam to show up in motioneye. As soon as I add a second, no video is shown.

I guess there could be multiple sources or error:
- Wifi is bad (I was hoping that good hardware like Unifi would counter this)
- Router performance not enough for several streams
- Rock64 hardware (ethernet port) has too little performance
- motioneye software is buggy

Right now I am looking in all directions in order so solve this.

Load on the Rock64 is low after I upgraded to the newest version of motion. 

My questions to the community:
1) Has anyone else made any experience using the Rock64 for video surveillance ?
2) Can I rule out some of the sources by running certain tests ?

Best
Martin
  Reply
#2
What speed is your broadband provider supplying you with.
  Reply
#3
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.
  Reply
#4
(07-05-2019, 12:46 PM)Rocklobster Wrote: What speed is your broadband provider supplying you with.

Hi, i am not trying to access it from externally, this is all on my house network. Hence the broadband speed does not really matter.
  Reply
#5
Hi Martin,

Just following up :-). Did you solve your issues with the bad performance?
Would be nice to hear if you solved it and if so how you did it.
  Reply
#6
I've and issue like that, and almost the only thing that helped me was automated testing, that I've ordered from 3rd party company.
  Reply
#7
i can use it with dietpi, but i get high cpu usage because i think that is using software, not the gpu
  Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Selling Rock64's dugalbug 6 182 Yesterday, 12:12 PM
Last Post: dugalbug
Exclamation Rock64 v2 freeze help! JuanDTM 5 152 10-16-2019, 06:37 PM
Last Post: Rocklobster
  doesn't boot, no video cjyar 6 159 09-17-2019, 12:41 PM
Last Post: cjyar
  ROCK64 not booting TheGiolly 10 377 09-09-2019, 06:57 AM
Last Post: Rocklobster
  Rock64 v3 - POE P1V 3 491 08-18-2019, 05:51 AM
Last Post: mcerveny
  Rock64 board seems defective, how to confirm? Josk 1 129 08-15-2019, 08:24 PM
Last Post: tllim
  Purchase Rock64 V3? richardk 6 607 08-03-2019, 12:56 PM
Last Post: mcerveny
  Rock64 running OMV, how to setup RTL8812AU WiFi? electrosam 2 166 07-16-2019, 04:03 PM
Last Post: ayufan
  Rock64 random freezes BTB 3 260 07-01-2019, 10:17 AM
Last Post: Luke
Sad Rock64 Seafile Installation klaus_nase 2 197 06-27-2019, 09:11 AM
Last Post: klaus_nase

Forum Jump:


Users browsing this thread: 1 Guest(s)