What are RTMP and RTSP? What's the difference between them?
Click on the blue " Linux " in the upper left corner and select " Set as Star "
In the age of video, streaming technology is becoming more and more important. In this article, we will discuss two popular streaming protocols: RTMP and RTSP.
What is a streaming protocol?
Simply put, a streaming protocol is a set of rules for transmitting multimedia files between two communication systems. It defines how video files will be broken down into small data packets and the order in which they are transmitted over the Internet. RTMP and RTSP are more common. Streaming protocol.
RTMP
-
Full English name: Real-Time Messaging Protocol
-
Chinese meaning: real-time messaging protocol
Remember a few years ago when your computer would tell you to update your Flash plug-in when you tried to play a video? The technology behind this is actually RTMP.
RTMP was developed by Macromedia (later acquired by Adobe) for streaming to Flash players. As Flash began to be phased out and HTTP-based protocols became the new standard for streaming to playback devices, RTMP's role in streaming protocols The status is getting lower and lower. But it does not affect the use of RTMP at all, because it is still the king in end-to-end live broadcast and on-demand!
Advantages of RTMP
1. Low latency
RTMP uses the exclusive 1935 port without buffering and can achieve low latency.
2. Strong adaptability
All RTMP servers can record live media streams while also allowing viewers to skip parts of the broadcast and join the live stream once it has started.
3. Flexibility
RTMP supports the integration of text, video and audio, supports MP3 and AAC audio streams, and also supports MP4, FLV and F4V videos.
Disadvantages of RTMP
1. HTML5 is not supported
The standard HTML5 player does not support RTMP streaming.
2. Vulnerable to bandwidth issues
RTMP streams often suffer from low bandwidth issues, causing video interruptions.
3. HTTP is not compatible
It is not possible to stream RTMP over HTTP, one must implement a special server and use a third-party content delivery network or use a streaming video platform.
RTSP
-
Full English name: Real-Time Streaming Protocol
-
Chinese meaning: real-time streaming protocol
RTSP is designed to establish and maintain a connection between the original data source (client) and the streaming server, allowing control of entertainment and communication systems within the streaming server, allowing pause and play functions, RTSP is a collaboration between RealNetworks and Netscape and Columbia University in 1996 Jointly developed agreement.
This combination of reliability and control makes RTSP a popular choice for closed-circuit television (CCTV) and similar surveillance systems. Therefore, it is the protocol of choice for many IP cameras.
Advantages of RTSP
1. Easily customize the flow
It is possible to develop your own video streaming solution by combining different protocols.
2. Segmented streaming
RTSP streaming enables viewers to access video content before the download is complete, rather than having to download the entire video to stream the content.
Disadvantages of RTSP
1. Incompatible with HTTP
There is no easy solution to play RTSP streams in a web browser, as RTSP is designed to stream video over a private network and additional software must be borrowed.
2. Low usage rate
RTSP streaming is not widely supported by video players and streaming services due to low usage.
How to choose between RTMP and RTSP?
IP camera select RTSP
Almost all IP cameras support RTSP, this is because IP cameras existed long before the RTMP protocol was created, and when used in conjunction with RTSP and IP cameras, the IP camera itself acts as an RTSP server, which means that the camera is connected to the IP camera server and broadcast video.
Choose RTSP for IoT devices
RTSP is often built into drone or IoT software, allowing access to video sources, and one of its benefits is low latency, ensuring there is no lag in the video, which is crucial for drones.
Streaming Applications Choose RTMP
For example, various short video software, video software, etc. have built-in RTMP. RTMP is designed to meet the needs of modern streaming media.
Summarize
RTMP and RTSP are the most commonly used streaming media protocols. This article mainly introduces the concepts, advantages and disadvantages of RTMP and RTSP. The choice of RTMP and RTSP still depends on the scenario. I hope this article will help you understand RTMP and RTSP. Finally, thank you for reading. If you find the article helpful to you, don’t forget to like and collect it⭐! If you have any questions, feel free to discuss them with me in the comment area below! ! !
end
A mouthful of Linux
Follow and reply [ 1024 ] Massive Linux information will be given away
Collection of wonderful articles
Article recommendation