What is RTMP?
RTMP stands for Real-Time Messaging Protocol, which is a TCP-based protocol used to stream audio, video, and data over the internet. It was originally developed by Macromedia, now Adobe, for streaming audio and video between a Flash player and a server. RTMP is widely used for live streaming on platforms like YouTube Live, Facebook Live, and Twitch. It works by encoding the audio and video signals into a format that can be transmitted over the internet, and then transmitting the data to a server for distribution to viewers. RTMP has been widely adopted due to its low latency and real-time streaming capabilities.
RTMP and mimoLive
Using FFmpeg, mimoLive can now ingest RTMP streams.
This is preliminary documentation. You might be able to get better results using different parameters. Please let us know if you find better setups.
Setting up an RTMP server
Add an FFmpeg source your sources column. For RTMP, FFmpeg needs to run in listening mode and the Keep Alive checkbox needs to be marked so that mimoLive starts FFmpeg right away and keeps it running even if no data is received and the source isn’t used in a live layer or a multiview.
The parameters for starting and running an RTMP server are:
-listen 1 -i rtmp://xxx.xxx.xxx.xxx:1935/thiscanbe/anything
where you need to replace the “xxx.xxx.xxx.xxx” with the primary IP number of your Mac.
The “1935” is the default port number for RTMP but you can use any other number as well. Just make sure that they match on the mimoLive and the sender side.
Sending video and audio to mimoLive using RTMP
On the sending side, you need to set up the camera, drone, streaming app or whatever you want to use as a source to match the setup of your FFmpeg source:
again replacing the “xxx.xxx.xxx.xxx” with the IP number of your mimoLive Mac.
If you want to stream to your Mac via Internet, you have to make sure your Mac is reachable under a unique IP and port number. For example, you can use port forwarding in your router. In this case, the IP number in the sender will be the publicly visible IP number. Contact your network support for more details.
You should now receive the RTMP stream in mimoLive.