I decided to configure MediaMTX (formerly rtsp-simple-server) is a ready-to-use and zero-dependency real-time media server and media proxy that allows users to publish, read and proxy live video and audio streams. It has been conceived as a "media broker", a message broker-like software that routes media streams (https://github.com/bluenviron/mediamtx).
Systemd is the service manager used by Ubuntu, Debian and many other Linux distributions, and allows to launch MediaMTX on boot.
Download a release bundle from the release page – https://github.com/bluenviron/mediamtx/releases
Unzip it, and configure file 'mediamtx.yml':
[...] # Enable the HTTP API. api: yes # Address of the API listener. apiAddress: 0.0.0.0:9997 # List of enabled RTSP transport protocols. protocols: [tcp] [...]
Move the executable and configuration in the system:
# sudo mv mediamtx /usr/local/bin/ # sudo mv mediamtx.yml /usr/local/etc/
Create the service:
# sudo tee /etc/systemd/system/mediamtx.service >/dev/null << EOF [Unit] Wants=network.target [Service] ExecStart=/usr/local/bin/mediamtx /usr/local/etc/mediamtx.yml [Install] WantedBy=multi-user.target EOF
Enable and start the service:
# sudo systemctl daemon-reload # sudo systemctl enable mediamtx # sudo systemctl start mediamtx
After starting everything worked, the only thing is that there is no sound when you call from a mobile phone to Webapp. Can you help me please?
In the letter I said that I was in Ukraine and there was a full-scale war going on in our country. Right now there is no way to pay for help, maybe everything will change over time.