motioneye-project / motioneyeos

A Video Surveillance OS For Single-board Computers
Other
7.87k stars 899 forks source link

Fast network camera breaks add a camera #1439

Closed Systemgeek-louis closed 6 years ago

Systemgeek-louis commented 6 years ago

I have a raspberry pi zero w running:

motionEye Version | 0.38.1 Motion Version | 4.1.1 OS Version | motionEyeOS 20180224

I have a central camera server running on an Tinkerboard with:

motionEye Version | 0.38.1 Motion Version | 3.2.12+git20140228 OS Version | Ubuntu 16.04

It took me a long time to get the remote camera added to the central camera server. Finally I got it to work after disabling Fast Network Camera. Is this a bug or should it really be disabled if adding a camera to a central camera server? I ask because all that I read sounded like you should leave it on.

Thanks, Louis

ccrisan commented 6 years ago

It's written in the Fast Network Camera wiki page that this mode only works with the CSI camera. You can't add anything else and the reason is that the entire backend (which is normally motion) is replaced by streamEye which only works as described.

Systemgeek-louis commented 6 years ago

Maybe I am not explaining myself right. The camera itself is one that I purchased as a CSI camera with a Raspberry PI 2 a while back. Its now plugged in to a Raspberry PI Zero W via the CSI cable. The Tinkerboard does not have any cameras directly connected to it nor will it ever have a direct cameral plugged in to it.

So according to that wiki page the Raspberry pi zero w should be using Fast Network Camera since it will be using the GPU on the RPI Zero W. Or am I not understanding how this works.

Louis

On Mar 16, 2018, at 3:45 PM, Calin Crisan notifications@github.com wrote:

It's written in the Fast Network Camera https://github.com/ccrisan/motioneyeos/wiki/Fast-Network-Camera wiki page that this mode only works with the CSI camera. You can't add anything else and the reason is that the entire backend (which is normally motion) is replaced by streamEye which only works as described.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ccrisan/motioneyeos/issues/1439#issuecomment-373825005, or mute the thread https://github.com/notifications/unsubscribe-auth/AAzsCtWOo6ZbZAz5msGWGBkFrSZJh4h1ks5tfBZkgaJpZM4SuOjC.

ccrisan commented 6 years ago

@Systemgeek you appear to have understood it correctly. What is unclear to me is what does the Tinkerboard have to do with Fast Network Camera?

As far as I understood, your Tinkerboard runs Ubuntu + motionEye, where your Fast Network Camera was added as a Network Camera. Am I correct? If yes, what seems to be the problem?

Systemgeek-louis commented 6 years ago

So as I understand it when I try adding a remote camera to the tinkerboard the remote camera (running on RPI zero W) should be configured for Fast Network Camera. However, when I tried that MotionEye on the tinkerboard was unable to find the camera on the RPI. By accident I had clicked off the Fast Network Camera and suddenly the tinkerboard was able to see it and add the camera.

Since then I have tried changing the Fast Network Camera setting on. When I do that the tinker board losses connection to the RPI. I turn it off and it works again.

But this is counter to what I understood the configuration should be.

Louis

On Mar 18, 2018, at 5:56 PM, Calin Crisan notifications@github.com wrote:

@Systemgeek https://github.com/systemgeek you appear to have understood it correctly. What is unclear to me is what does the Tinkerboard have to do with Fast Network Camera?

As far as I understood, your Tinkerboard runs Ubuntu + motionEye, where your Fast Network Camera was added as a Network Camera. Am I correct? If yes, what seems to be the problem?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ccrisan/motioneyeos/issues/1439#issuecomment-374053772, or mute the thread https://github.com/notifications/unsubscribe-auth/AAzsClhmxCtigSuKxIzdRUL-XJniqtOBks5tftgTgaJpZM4SuOjC.

ccrisan commented 6 years ago

So as I understand it when I try adding a remote camera to the tinkerboard the remote camera (running on RPI zero W) should be configured for Fast Network Camera.

Nope. If you want to add your Zero camera to your Tinkerboard as a Remote motionEye Camera, then you must not enable Fast Network Camera on your Zero and leave it as default.

If on the other hand you want to add your Zero camera to your Tinkerboard as a Network Camera, then you can add it in both modes, each one with its advantages and disadvantages.

See Usage Scenarios for more details. The term "hub" is used for the former method, while "central server" refers to the latter one.