当前位置:网站首页>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.
边栏推荐
猜你喜欢
Detailed explanation of DenseNet and Keras reproduction code
CMDB 阿里云部分实现
狗都能看懂的Pytorch MAML代码详解
基于时序模式注意力机制(TPA)的长短时记忆(LSTM)网络TPA-LSTM的多变量输入风电功率预测
以太网 ARP
微软电脑管家2.0公测版体验
Unity Day03
用PPAPI插件技术在Web上显示会议视频、桌面、PPT等
MAML原理讲解和代码实现
RuntimeError: You called this URL via POST, but the URL doesn‘t end in a slash and you have APPEND_S
随机推荐
Multi-threaded sequential output
JVM intro
Uos统信系统 IP地址以及完整主机名配置
QT QOpenGLWidget 全屏导致其他控件显示问题
bitnami/mongodb-sharded在AWS EKS扩展shard失败解决
狗都能看懂的Pytorch MAML代码详解
【HIT-SC-LAB2】哈工大2022软件构造 实验2
关于网络安全行业你知道多少?
Uos统信系统 chrony配置
自学网络安全你为什么一学就废?
ResNet详解:ResNet到底在解决什么问题?
【音视频开发系列】QT 采集麦克风PCM并播放
Prematurely reached end of stream
注册表设置默认浏览器 win7,winserver 2008,winserver 2012
Database document generation tool V1.0
POI及EasyExcel
对渗透测试工程师来说,学历重要嘛?
Pfsense漏洞复现(CVE-2021-41282)
电脑知识:台式电脑应该选择品牌和组装,值得收藏
C#找系统文件夹路径