当前位置:网站首页>Hardware Knowledge: Introduction to RTMP and RTSP Traditional Streaming Protocols
Hardware Knowledge: Introduction to RTMP and RTSP Traditional Streaming Protocols
2022-08-04 07:02:00 【IT technology sharing community】

Today I will share with you the introduction of RTMP and RTSP traditional streaming media protocols, I hope it can be helpful to you!
1, RTSP
1.1 RTSP protocol introduction
RTSP (Real-Time Stream Protocol) is a text-based multimedia playback control protocol jointly proposed by Real Networks and Netscape.RTSP defines the stream format, and the stream data is transmitted through RTP; RTSP real-time effect is very good, suitable for video chat, video surveillance and other directions.
1.2 Features
RTSP supports reliable segmented streaming and supports viewing while downloading.
RTSP relies on dedicated servers and relies on the RTP protocol (based on the UDP protocol), so this protocol does not support encrypting video content or retransmitting lost packets.
1.3, RTSP Workflow

The user equipment sends an RTSP request to the video streaming platform
The video streaming platform returns a list of requests that the user can operate, such as play, pause
The user sends a specific request to the video streaming platform to the device according to the list of requests it has, for example: play video
The video streaming platform parses the request and invokes the specified mechanism to start the video stream processing
1.4 Applicable Scenarios
Android and iOS devices do not have RTSP compatible players out of the box, so they are not used much on mobile devices, RTSP is very widely used in many surveillance and closed circuit television (CCTV) applications, such as remote cameras, online video and Internet live broadcastIt is very suitable for other fields.
2. RTMP
2.1 Introduction to RTMP
RTMP (Real Time Message Protocol) was proposed by Adobe to solve the multiplexing (Multiplexing) and packetizing (packetizing) problems of multimedia data transmission streams. The advantages are low latency, high stability, and support for allThe camera format can be played directly by loading the flash plug-in in the browser.TCP port 1935 is used by default.
2.2 Workflow

Camera capture video
Stream the video to the video platform server via the encoder
The video platform handles the video stream
Distribute via CDN to the server closest to the user
The final video stream can successfully reach the user device
2.3 Features
It can maintain a stable connection between the server and the client server, and it can stream media with seamless low latency regardless of the quality of the user's internet connection
Not compatible with HTML5 players
Vulnerable to bandwidth issues
2.4 Applicable Scenarios
RTMP is mainly used for Internet audio and video transmission. It uses TCP transmission. Because the Internet environment is relatively poor, RTMP can ensure the transmission quality of video, but its transmission delay is relatively high and transmission efficiency is relatively low.
3. The difference between RTSP and RTMP protocols
3.1 Similarities
RTSP and RTMP protocols are in the application layer
Theoretically both RTSP and RTMP can do live broadcast and VOD
3.2 Differences
RTSP protocol has the best real-time performance, but the implementation is complex, suitable for video chat and video surveillance;
The advantage of the RTMP protocol is that it has good browser support and can be played directly after loading the flash plug-in.
边栏推荐
猜你喜欢

DropBlock: 卷积层的正则化方法及复现代码

ZYNQ之FPGA LED 灯闪烁实验

怎样才能转行成功?

基于Webrtc和Janus的多人视频会议系统开发6 - 从Janus服务器订阅媒体流

【HIT-SC-LAB1】哈工大2022软件构造 实验1

ResNet详解:ResNet到底在解决什么问题?

基于Webrtc和Janus的多人视频会议系统开发5 - 发布媒体流到Janus服务器

bitnami/mongodb-sharded在AWS EKS扩展shard失败解决

Interpretation of EfficientNet: Composite scaling method of neural network (based on tf-Kersa reproduction code)

数据库知识:SQLServer创建非sa用户笔记
随机推荐
狗都能看懂的Pytorch MAML代码详解
Vmmem process (WSL2) consumes huge amount of memory
SegNet——论文笔记
LeetCode刷题
更改软件的默认安装位置
Uos统信系统控制台欢迎登陆后消息及所处区域配置
数据库知识:SQLServer创建非sa用户笔记
自学网络安全你为什么一学就废?
【HIT-SC-MEMO5】哈工大2022软件构造 复习笔记5
POI及EasyExcel
网络技巧:教你给路由器装上电池,断电照样可以上网!
IP 核之 MMCM/PLL 实验
Uos统信系统 Postfix-smtps & Dovecot-imaps
树莓派 4 B 拨动开关控制风扇 Rasberry Pi 4 B Add Toggle Switch for the Fan
20170729
VS 2017编译 QT no such slot || 找不到*** 问题
【HIT-SC-MEMO3】哈工大2022软件构造 复习笔记3
Detailed explanation of DenseNet and Keras reproduction code
冰歇webshell初探
狗都能看懂的CenterNet讲解及代码复现