Configuring MediaMTX as a WebRTC Server

739 views
Skip to first unread message

novopravie

unread,
Sep 8, 2023, 12:14:51 PMSep 8
to tin...@googlegroups.com

Hello everybody,

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).

The service is easy to install on Linux*

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?


Gene

unread,
Sep 8, 2023, 12:53:06 PMSep 8
to Tinode General
If you need help for your specific setup then please consider paying for it https://tinode.co/support.html
Message has been deleted

Andrey M.

unread,
Sep 8, 2023, 2:52:16 PMSep 8
to Tinode General
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.

пятница, 8 сентября 2023 г. в 19:53:06 UTC+3, Gene:

Gene

unread,
Sep 8, 2023, 3:27:13 PMSep 8
to Tinode General
On Friday, September 8, 2023 at 11:52:16 AM UTC-7 Andrey M. wrote:
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.

Please understand that we are a very small company and have no means of providing more free services beyond what we already provide: we built a product which you can use for free and also provide free support through this forum. That's all we can do.

Furthermore, we pay taxes here, and our government gives those taxes to Ukraine, something like $135 billion so far. I think we do support your cause well enough.

As for the "full scale war", some Ukrainians clearly do not think so: https://www.cbsnews.com/news/ukraine-war-russia-kharkiv-kyiv-nightlife-thriving-despite-missile-strikes/

Andrey M.

unread,
Sep 8, 2023, 3:47:06 PMSep 8
to Tinode General
I am grateful to you for everything you do! Moreover, I tried to make my contribution in the form of translation in order to expand the audience for using your service. Now I am spreading information about TINODE many people knew nothing about it.
I want to draw your attention to the fact that installing the tinode is very labor-intensive; I spent several days figuring it out. After that, I decided to make instructions for other clients on the Debian server.
Have a nice day.


пятница, 8 сентября 2023 г. в 22:27:13 UTC+3, Gene:
Reply all
Reply to author
Forward
0 new messages