...
Download the latest version of the mediamtx service from GitHub and run mediamtx.exe.
| Note | ||
|---|---|---|
| ||
The devices on which the mediamtx service is running, the video server and the mobile client must be within the same network. |
The mediamtx service receives video streams from mobile devices via RTMP and sends the video to the server in the form of RTSP streams.
The service indicates the ports it uses, for example:
| Code Block |
|---|
2023/0609/1901 15:5211:2910 INF MediaMTX v0v1.230.51 2023/0609/1901 15:5211:2910 INF [RTSP] listener opened on :8554 (TCP), :8000 (UDP/RTP), :8001 (UDP/RTCP) 2023/0609/1901 15:5211:2910 INF [RTMP] listener opened on :1935 2023/0609/1901 15:5211:2910 INF [HLS] listener opened on :8888 2023/0609/1901 15:5211:2910 INF [WebRTC] listener opened on :8889 (HTTP) 2023/09/01 15:11:10 INF [SRT] listener opened on :8890 (UDP) |
Ports and other settings can be changed in the mediamtx.yml configuration file located next to the mediamtx service executable file.
...
IP address of the computer where the mediamtx service is running;
port that is used by the service to send RTSP streams;
unique identifier for the video stream from this mobile client.
Example:
| Code Block |
|---|
rtsp://192.168.1.1:8554/stream |
...
...