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
Question Hardware issues with Rock64 grobbs 10 493 04-08-2021, 05:24 AM
Last Post: t4_4t
  Python GPIO Library for the Rock64 (R64.GPIO) Leapo 35 32,960 03-21-2021, 11:14 PM
Last Post: Impaled
  Rock64 Long Term stability ramprasad 4 1,164 03-16-2021, 07:23 PM
Last Post: Rocklobster
  Rock64 No Audio - Solved wbecks 11 13,812 03-15-2021, 03:15 PM
Last Post: lowry
  Safest way to send shutdown signal to headless Rock64 SMB server? bmurphr1 3 673 03-14-2021, 06:01 PM
Last Post: clach04
  Rock64 as a router (OpenWRT,etc) bob-anon 2 1,074 03-12-2021, 01:16 AM
Last Post: arkadione
  Rock64 enable 1-wire to read DS18B20 or Dallas temperature sensor Perry 2 829 02-12-2021, 08:02 PM
Last Post: Perry
  Will Mobian Run On Rock64? Porcupine 1 376 01-13-2021, 12:39 PM
Last Post: tophneal
  Rock64 v2 as Openmediavault server - buffers / shutdown problems helpmerock 2 689 12-29-2020, 09:46 AM
Last Post: helpmerock
  rock64, compile problems "illegal instruction", "memory fault" -> ddr_333Mhz? hunderteins 10 4,490 11-17-2020, 08:00 AM
Last Post: Johannes

Forum Jump:


Users browsing this thread: 1 Guest(s)