Video Server
MediaMTX is a RTSP / RTPM capable software to stream in real time from / to TAK devices. It is used with the FreeTAK UAS and TAK ICU
Installation
Get the linux_amd64 installation package link from the release page
Download the MediaMTX release:
wget https://github.com/aler9/mediamtx/releases/download/v0.22.2/mediamtx_v0.22.2_linux_amd64.tar.gz
Un-tar the package:
tar -zxvf mediamtx_v0.22.2_linux_amd64.tar.gz
Edit the YAML file
- Enable API by setting yes
- Support protocols only TCP
- Set the API address 0.0.0.0
Configure to start as a service
To start the video server as a system daemon, we will create a systemd unit file. The systemd framework is the service manager used by Ubuntu, Debian and many other Linux distributions. By creating a unit file to manage the daemon, systemd will ensure the service is started with the OS and stays healthy.
Move the executable:
sudo mv mediamtx /usr/local/bin/
sudo mv mediamtx.yml /usr/local/etc/
Create the Unit File.
Copy this complete text to /etc/systemd/system/mediamtx.service
:
[Unit]
Description=mediamtx
After=network-online.target
Wants=network-online.target
[Service]
ExecStart=/usr/local/bin/mediamtx /usr/local/etc/mediamtx.yml
[Install]
WantedBy=multi-user.target
Start the service:
sudo systemctl start mediamtx.service
Enable the service:
sudo systemctl enable mediamtx.service
Test your video Installation
in a browser resolve and use this address
<http://<YOURSERVERIP>:9997/v1/config/get>
if you see your configuration the server is up and running