motioneye icon indicating copy to clipboard operation
motioneye copied to clipboard

How can we stream from camera to Motion server itself?

Open ttodua opened this issue 1 year ago • 5 comments

How can we feed video from device (i.e. IP camera running on Android) to the server itself? what I have seen, motioneye itself connects to the IP/stream, but can't we feed stream in opposite direction (from device to motioneye)? if so, please give some instructions

ttodua avatar Feb 23 '24 14:02 ttodua

You can add network cameras in motionEye. Hence if your Android is able to generate an RTSP/netcam/MJPEG stream and is reachable by motionEye at some IP or hostname, you can do it this way.

MichaIng avatar Feb 23 '24 22:02 MichaIng

No, maybe I didn't express question well. I want in opposite. the phone is not in same network, however, it has got internet connection, so instead of MotionEye trying to connect it, i want in opposite - Android phone sent video stream to MotionEye server (so, motionEye had somewhat like "open" port or whatever, where it can accept the video stream coming from remote sources).

ttodua avatar Feb 24 '24 13:02 ttodua

Its the same thing ttodua,

Motioneye receives, camera sends, camera is an input device. Motioneye is an output device. What you want is probably port forwarding, but if that's too complicated, look into ngrok. Open an ngrok tcp port for 8765 and use the ngrok link to connect from your internet connected android from anywhere. (ngrok running on the same device as motioneye)

adminy avatar Mar 11 '24 23:03 adminy

@adminy thanks for reply! so, motioneye does not have that functionality built-in... ok

ttodua avatar Mar 12 '24 08:03 ttodua

Nope, if it did then it would be 2 problems instead of one. This is software to interact with the camera, that is software to manipulate the network. Very different things ;)

adminy avatar Mar 12 '24 11:03 adminy