How can we stream from camera to Motion server itself? #2494

Open
opened 2026-02-28 01:13:13 -05:00 by deekerman · 5 comments
Owner

Originally created by @ttodua on GitHub (Feb 23, 2024).

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

Originally created by @ttodua on GitHub (Feb 23, 2024). 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
Author
Owner

@MichaIng commented on GitHub (Feb 23, 2024):

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 commented on GitHub (Feb 23, 2024): 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.
Author
Owner

@ttodua commented on GitHub (Feb 24, 2024):

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 commented on GitHub (Feb 24, 2024): 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).
Author
Owner

@adminy commented on GitHub (Mar 11, 2024):

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 commented on GitHub (Mar 11, 2024): 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)
Author
Owner

@ttodua commented on GitHub (Mar 12, 2024):

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

@ttodua commented on GitHub (Mar 12, 2024): @adminy thanks for reply! so, motioneye does not have that functionality built-in... ok
Author
Owner

@adminy commented on GitHub (Mar 12, 2024):

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 commented on GitHub (Mar 12, 2024): 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 ;)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/motioneye#2494
No description provided.