moritzmhmk / homebridge-camera-rpi

raspberry pi camera plugin for homebridge
MIT License
159 stars 29 forks source link

view from two devices at the same time #43

Open fanlessfan opened 5 years ago

fanlessfan commented 5 years ago

Hello @moritzmhmk

when I am trying to view the camera from two devices, the second device always reports that the device no response. If I view the camera one by one, both devices are OK. Is this normal? Or view from more than one devise at the same time possible?

thx

moritzmhmk commented 5 years ago

This is normal.

I will keep this issue open as an requested enhancement.

mig-ns commented 5 years ago

Hi, Does this mean i can run the homebridge server on one raspberry pi with this plugin and the actual camera on another raspberry pi? Thanks!

moritzmhmk commented 5 years ago

No that is not the purpose of this plugin. Why would you consider this kind of setup anyway?

mig-ns commented 5 years ago

Offloading homebridge from several pi zero ws and reusing an already existing homebridge server where every other plugin is installed. This is the use case. Makes sense?

mig-ns commented 5 years ago

Like, for every other plugin I have, it looks for devices (e.g.: shelly, harmony hub) in the local network and interfaces with them. In this case, the devices would be the raspberry pis with cameras.

moritzmhmk commented 5 years ago

Homebridge needs to be paired for every camera since they can not be bridged (a device is created for every camera).

Performancewise it might improve but I havent tested that yet (i.e. how many cameras a Pi 3 or 4 can handle). Currently I consider switching to Pi 3A+ for my cameras...

This plugin is using the hardware encoding of the Pi to improve performance. You would need to find a way to stream that encoded video and then use the default ffmpeg based homebridge plugin on your central homebridge pi.

mig-ns commented 4 years ago

Got it, thanks! I’ve been trying your plugin and works great. Excellent job!