What is RTMP Ingest and Why is it Important for Live Streaming?

What is RTMP Ingest and Why is it Important for Live Streaming Image

Live video streaming has become a vital tool for organizations of all shapes and sizes. Streaming video using professional-grade platforms and online video players has the tools that enable professional broadcasts with little technical know-how.

Plenty of technical mechanisms run in the background to make this work. Different protocols and systems are working together that bring video content and live video streams to life. Real-time messaging protocol (RTMP) is one of these protocols. The RTMP protocol is a protocol that enables affordable live streaming. Today, RTMP ingest allows users to take advantage of many low-cost and open-source live encoders that are available.

In this article, we cover what exactly RTMP ingest is and why it’s crucial for live-streaming events today. We begin by reviewing the RTMP protocol and dispelling myths surrounding what it is and what it does. Furthermore, we explain RTMP ingest and how it differs from an RTMP stream. Finally, we conclude with an introduction and discussion on HLS, another related protocol and how RTMP ingest works with Dacast.

Table of Contents:

  • What is RTMP?
  • Is RTMP (Flash) Dead?
  • What is RTMP Ingest?
  • How Does RTMP Ingest Work?
  • The Benefits of RTMP Ingest
  • RTMP Ingest vs. RTMP Streaming
  • HLS Streaming & How it Relates to RTMP Ingest
  • RTMP Ingest on Dacast
  • Conclusion

What is RTMP?

What is the RTMP Streaming Protocol?
RTMP is an important live streaming protocol.

RTMP, which is short for “Real-Time Messenger Protocol” is an online video protocol that has played several roles throughout the history of online video streaming. 

It was created by Macromedia, which was purchased by Adobe, to distribute video, audio, and other media files for advertising. RTMP was originally designed for streaming with Adobe’s Flash player and is often simply called Flash streaming, but this use is now quite outdated.

Today, RTMP ingest is the most common use of this protocol and has to do exclusively with the exchange between an encoder and an online video platform.

In addition to the standard version of RTMP, there are several variations of the protocol, including RTMPS, RTMPE, RTMPT, and RTMFP. These variations all have slightly different purposes in live streaming.

Is RTMP (Flash) Dead?

As we mentioned, the purpose of RTMP in live streaming has changed over time. The “old” use of RTMP is practically dead. Pretty much anything involving RTMP delivery/streaming and Adobe Flash Player delivery/streaming is obsolete at this point with most web browsers completely dropping support of RTMP delivery in 2021.

However, RTMP is not dead. It is alive and well in the form of RTMP ingest where low-cost encoders and the convenience of not having to use a specific IP address for the encoders mean that the protocol is still very valuable for live streaming. RTMP is a very valuable streaming ingest tool. 

Even though RTMP has found a new role in live streaming that is currently working well, it will likely be phased out eventually once more powerful technology has been developed. This is not to say that there is anything inherently wrong with RTMP, but that is simply the nature of technology. RTMP streaming ingest is a valuable tool right now, that is likely to be phased out over time. 

What is RTMP Ingest?

what is RTMP ingest
RTMP ingest sends video files from the encoder to the online video platform.

RTMP ingest is the new role of the protocol. To understand how this is different from the original role of the protocol, you need to have a basic understanding of video encoding and the technology that makes live streaming possible.

During the live streaming process, the live video travels in the following route:

Camera → Encoder → Online Video Platform → CDN Servers → Video Player

What does “ingest” mean in broadcasting?

RTMP ingest means using the RTMP technology to encode and then deliver the live video from the encoder to the online video platform. RTMP ingest requires the use of an RTMP encoder, which is readily available and can be relatively inexpensive compared to encoders using other streaming protocols.

We’d also like to point out that the streaming process is possible without an online video platform. The RTMP encoder can ingest directly into the CDN or video player.

How Does RTMP Ingest Work?

RTMP ingest involves three phases: the handshake, the connection, and the stream.

This process is highly technical, and broadcasters who use an online video platform generally do not need to worry about what goes on behind the scenes. However, understanding how RTMP ingest works may help you understand the importance of choosing a capable encoder.

With that said, let’s take a look at how RTMP ingest transports encoded live video from the encoder to the online video player.

1. Handshake

During the handshake, the client sends three chunks of data to the server. The first chunk is used to alert the server to the type of protocol that is being used. The second chunk comes through with a time stamp.

The third and final chunk is sent after the server confirms receipt of the first two. Once the third chunk has been successfully received, the connection can be made.

2. Connect

During the connection phase, the client and server exchange some coded dialogue. The code language used for the connection is “AMF.” The purpose of his dialogue is to establish an “all-clear” to start the stream.

3. Stream

Once the handshake is complete and the connection has successfully been made, the stream should be ready to go. This process is complex, but the technology is designed to make the transport very quick.

That is what ingest is in broadcasting. 

The Benefits of RTMP Ingest

There are several benefits of streaming with RTMP ingest. First, it ensures easy access to encoders. RTMP encoders are relatively inexpensive and simple to set up.

Additionally, RTMP ingest can be used on any channel set up to receive it from any location in the world. It does not require that the location (IP address) of the encoder be known as long as the channel is set up beforehand. With RTMP ingest, you can test your event from one location and then move at any time to an event venue without requiring delays or changes to the CDN channel setup. RTMP test links allow you to ensure you are ready to go live.

Another benefit of RTMP ingest is that when combined with HLS, it yields the lowest latency possible.

RTMP Ingest vs. RTMP Streaming

It is very important to note that this is completely different from RTMP delivery, which uses the protocol to transmit video from the video CDN servers to the Flash video player. It is the same protocol but a different function.

RTMP ingest is used with modern live streaming platforms, like Dacast, that use an HTML5 video player. RTMP streaming, on the other hand, was designed by Adobe to work with its Flash video player.

The primary reason for the shift away from RTMP streaming was that it did not support mobile streaming. At the beginning of this shift, the use of internet-enabled mobile devices was growing and greater, so broadcasters needed a solution fast.

Smartphones and tablets are much more easily accessible than a laptop, computer, or smart TV, and today, the majority of streaming is done on mobile devices. If software engineers hadn’t developed a streaming method and video player that is compatible with mobile live streaming, the online live video streaming industry may not have developed to what it is today.

Another reason for this shift is primarily because RTMP is no longer the “latest and greatest” live streaming protocol. It is still functional, but the new technology has made RTMP streaming the inferior approach. That is why RTMP distribution is now focused on video ingest, not streaming.

HLS Streaming & How it Relates to RTMP Ingest

hls protocol
HLS is now used for live stream delivery instead of RTMP.

As we mentioned, HLS streaming has taken over the original role of RTMP.

HLS stands for “HTTP Live Streaming” and it is another important video streaming protocol. It is used to deliver video and audio content from the CDN servers to the user-facing HTML5 video player. HLS was created by Apple to make mobile streaming possible.

How HLS ingest works is that it splits files into smaller chunks to transport them more easily during the ingestion process. It is an HTTP-based protocol, whereas RTMP is a TCP-based protocol that uses a bit of a bulkier transporting approach.

HLS is very adaptable, which is useful when reaching viewers with a wide variety of streaming setups. The protocol is also capable of low-latency streaming which is valuable to live streamers. However, the lowest latency combination is RTMP ingest and HLS streaming.

Another major perk of using HLS is that it is compatible with secure multi-bitrate and adaptive bitrate streaming. That means that it can send out multiple renditions of a video at the same time. Each transcoded rendition is of a different quality, and the appropriate rendition is sent to each viewer’s video player based on their internet speed. This helps to avoid any buffering or lagging on the viewers’ end.

Although HLS encoding is currently the most suitable protocol for video delivery, other options are being developed. Transcoding technology is evolving constantly, so there is no telling how quickly this could change.

RTMP vs. RTSP

RTMP and RTSP are often confused since their abbreviations only vary by a single letter, but the two protocols serve different functions in live streaming.

RTSP is used to execute commands on the video player by the viewer and through these control how the live streaming CDN servers deliver the video. These commands include functions like “Play,” “Pause,” “Fast Forward,” and “Rewind.” RTSP tells the video player what to do any time a viewer uses those buttons.

Bottom line: RTSP is preferred in situations that call for a cheaper, simpler streaming alternative.

RTMP Ingest on Dacast

rtmp ingest recipe
Dacast automatically uses RTMP ingest for HLS streaming.

Dacast uses RTMP ingest by default for live streaming although direct HLS ingest can be made available. This is the most practical use for RTMP at this time.

On a similar note, our platform uses HLS streaming rather than RTMP streaming. This is because HLS is the best protocol available for that stage of the live-streaming process and it works with the HTML5 video player

Since our platform uses RTMP ingest, broadcasters must use an RTMP encoder. Dacast’s support of RTMP ingest is particularly valuable for broadcasters because it means that the platform is compatible with a wide range of RTMP encoders from free and low-cost ones to professional quality encoders.

Some compatible live streaming software encoders include OBS StudioWirecastVidblasterX, and hardware alternatives from Teradek

OBS Studio offers custom versions of the software for Dacast users, which makes it super easy to use. This streaming software is free to use, so it is a great option for broadcasters who are still testing the waters of live streaming.

For more information on using OBS Studio for RTMP ingest on Dacast, please check out our dedicated guides for both macOS and Windows users.

Conclusion

Live streaming technology is better than it’s ever been. This is due to the repositioning of the RTMP protocol for RTMP ingest and the introduction of HLS delivery. With the increasing popularity of live streaming and how quickly live streaming technology continues to evolve, we’re certain more changes are to come.

As we’ve outlined, there’s a lot to know about the benefits of all this technology. Armed with the right online streaming platform equipped with these streaming protocols, you can provide your viewers with the best video content possible.

Dacast’s expert 24/7 support team can help you. They’ll tell you how Dacast’s streaming platform and RTMP’s role in live video streaming can propel your video production to all-new heights. Your business and viewers will be impressed.

And you can try Dacast free for a full 14 days. No upfront fees, no commitment.

Get Started For Free

Browse our Knowledgebase for documentation on different aspects of live streaming. A quick search for “RTMP” will generate a list of dozens of entries on the protocol.

Emily Krings

Emily is a strategic content writer and story teller. She specializes in helping businesses create blog content that connects with their audience.