SR: Sender Report RTCP packet

结合实战,浅析GB/T28181(十)——媒体流保活 本文深入解析GB/T28181标准中的媒体流保活机制,通过RTCP协议实现视频监控系统的稳定传输。文章详细介绍了保活问题现象、协议规范、实战分析及故障排查指南,帮助开发者解决视频中断等常见问题,提升系统可靠性。 阅读详情
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|V=2|P|    RC   |   PT=SR=200   |             length            |header
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                         SSRC of sender                        |
+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
|              NTP timestamp, most significant word             |sender
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+info
|             NTP timestamp, least significant word             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                         RTP timestamp                         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                     sender's packet count                     |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                      sender's octet count                     |
+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
|                 SSRC_1 (SSRC of first source)                 |report
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+block
| fraction lost |       cumulative number of packets lost       |  1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|           extended highest sequence number received           |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                      interarrival jitter                      |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                         last SR (LSR)                         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                   delay since last SR (DLSR)                  |
+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
|                 SSRC_2 (SSRC of second source)                |report
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+block
:                               ...                             :  2
+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
|                  profile-specific extensions                  |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

The sender report packet consists of three sections, possibly followed by a fourth profile-specific extension section if defined. The first section, the header, is 8 octets (8Bytes) long. The fields have the following meaning:

Version (V): 2 bits
    Identifies the version of RTP, which is the same in RTCP packets as in RTP data packets. The version defined by this specification is two (2).

    2比特   RTP版本识别符,在RTCP包内的意义与RTP包中的相同。此协议中定义的版本号为2。

 

Padding (P): 1 bit
    If the padding bit is set, this RTCP packet contains some additional padding octets at the end which are not part of the control information. The last octet of the padding is a count of how many padding octets should be ignored. Padding may be needed by some encryption algorithms with fixed block sizes. In a compound RTCP packet, padding should only be required on the last individual packet because the compound packet is encrypted as a whole.

    1比特 若设置填充比特,该RTCP包在末端包含一些附加填充比特,并不是控制信息的基本部分。填充的最后一个比特统计了多少个字节必须被忽略。填充可能会用于需要固定长度块的加密算法。在复合RTCP包中,复合包作为一个整体加密,填料比特只能加在最后一个单个RTCP包的后面。

 

Reception report count (RC): 5 bits
    The number of reception report blocks contained in this packet. A value of zero is valid.表示当前RTCP报中含有RR包的个数
    5比特 该包中所含接收报告(RR)块的数目。零值有效。   

P
acketType (PT): 8 bits
    Contains the constant 200 to identify this as an RTCP SR packet.

    8比特 包含常数200,用以识别这个为SR包。    

 

length: 16 bits
    The length of this RTCP packet in 32-bit words minus one, including the header and any padding. (The offset of one makes zero a valid length and avoids a possible infinite loop in scanning a compound RTCP packet, while counting 32-bit words avoids a validity check for a multiple of 4.)

    16比特 该RTCP包的长度减1。其单位是32比特字,包括头和任何填充字节。(偏移量1保证零值有效,避免了在扫描RTCP包长度时可能发生的无限循环,同时以32比特为单位避免了对以4为倍数的有效性检测。) 

 

SSRC: 32 bits
    The Synchronization source identifier for the originator of this SR packet.32比特   SR包发送者的同步源标识符。

The second section, the sender information, is20 octets (20Bytes)long and is present in every sender report packet. It summarizes the data transmissions from this sender. The fields have the following meaning:

第二部分,发送者信息,20字节长。在每个发送者报告包中出现。它概括了从此发送者发出的数据传输情况。此域有以下意义

 

NTP timestamp: 64 bits
   Indicates the wallclock time when this report was sentso that it may be used in combination with timestamps returned in reception reports from other receivers to measure round-trip propagation to those receivers. Receivers should expect that the measurement accuracy of the timestamp may be limited to far less than the resolution of the NTP timestamp. The measurement uncertainty of the timestamp is not indicated as it may not be known. A sender that can keep track of elapsed time but has no notion of wallclock time may use the elapsed time since joining the session instead. This is assumed to be less than 68 years, so the high bit will be zero. It is permissible to use the sampling clock to estimate elapsed wallclock time. A sender that has no notion of wallclock or elapsed time may set the NTP timestamp to zero.

    NTP时间戳:64比特 指示了此报告发送时的背景时钟(wallclock)时刻,它可以与从其它接收者返回的接收报告块中的时间标志结合起来,计算往返每个接收者所花的时间。接收者应让NTP时间戳的精度远大于其他时间戳的精度。时间戳测量的不确定性不可知,因此也无需指示。一个系统可能没有背景时钟的概念,而只有系统指定的时钟,如系统时间(system uptime)。在这样的系统中,此时钟可以作为参考计算相对NTP时间戳。选择一个公用的时名是非常重要的。这样多个独立的应用都可以使用相同的时钟。到2036年,相对和绝对NTP时间戳会产生大的差异。到那时,我们希望不再需要相对时钟。一个发送者,如果不用背景时钟时间或逝去时间,可以设置此项为零。

 

RTP timestamp: 32 bits
   Corresponds to the same time as the NTP timestamp (above), but in the same units and with the same random offset as the RTP timestamps in data packets.This correspondence may be used for intra- and inter-media synchronization for sources whose NTP timestamps are synchronized, and may be used by media- independent receivers to estimate the nominal RTP clock frequency. Note that in most cases this timestamp will not be equal to the RTP timestamp in any adjacent data packet. Rather, it is calculated from the corresponding NTP timestamp using the relationship between the RTP timestamp counter and real time as maintained by periodically checking the wallclock time at a sampling instant.

sender's packet count: 32 bits
    The total number of RTP data packets transmitted by the sender since starting transmission up until the time this SR packet was generated. The count is reset if the sender changes its SSRC identifier.

sender's octet count: 32 bits
    The total number of payload octets (i.e., not including header or padding) transmitted in RTP data packets by the sender since starting transmission up until the time this SR packet was generated. The count is reset if the sender changes its SSRC identifier. This field can be used to estimate the average payload data rate.

The third section contains zero or more reception report blocks depending on the number of other sources heard by this sender since the last report. Each reception report block conveys statistics on the reception of RTP packets from a single synchronization source. Receivers do not carry over statistics when a source changes its SSRC identifier due to a collision. These statistics are:

SSRC_n (source identifier): 32 bits
    The SSRC identifier of the source to which the information in this reception report block pertains.

fraction lost: 8 bits
    The fraction of RTP data packets from source SSRC_n lost since the previous SR or RR packet was sent, expressed as a fixed point number with the binary point at the left edge of the field. (That is equivalent to taking the integer part after multiplying the loss fraction by 256.) This fraction is defined to be the number of packets lost divided by the number of packets expected, as defined in the next paragraph. An implementation is shown in Appendix A.3. If the loss is negative due to duplicates, the fraction lost is set to zero. Note that a receiver cannot tell whether any packets were lost after the last one received, and that there will be no reception report block issued for a source if all packets from that source sent during the last reporting interval have been lost.

   表示包的丢失率是多少,即丢失的包的数量除以期望的包的数量,丢失的包的数量可以通过每次检查RTP包头中的Sequence Nmuber统计出来;

 

cumulative(累积的) number of packets lost: 24 bits
    The total number of RTP data packets from source SSRC_n that have been lost since the beginning of reception. This number is defined to be the number of packets expected less the number of packets actually received, where the number of packets received includes any which are late or duplicates(重复). Thus(从而) packets that arrive late are not counted as lost, and the loss may be negative(负) if there are duplicates.The number of packets expected is defined to be theextended last sequence number received, as defined next, less the initial sequence number received. This may be calculated as shown in Appendix A.3.

    从会话开始至今丢失的包的总数;

 

extended highest sequence number received: 32 bits
    The low 16 bits contain the highest sequence number received in an RTP data packet from source SSRC_n, and the most significant 16 bits extend that sequence number with the corresponding count of sequence number cycles, which may be maintained according to the algorithm in Appendix A.1. Note that different receivers within the same session will generate different extensions to the sequence number if their start times differ significantly.

    低16位表示最近收到的RTP包的序列号,一般情况下高16位全为0,但如果收到的某一个发送源的序列号出现循环,则在它的相应RR段中此高16位值表示已循环的次数;

 

interarrival(间隔到达) jitter: 32 bits

    An estimate of the statistical variance(统计方差) of the RTP data packet interarrival time, measured in timestamp units and expressed as an unsigned integer.The interarrival jitter J is defined to be the mean deviation (smoothed absolute value) of the difference D in packet spacing at the receiver compared to the sender for a pair of packets. As shown in the equation below, this is equivalent to the difference in the "relative transit time" for the two packets; the relative transit time is the difference between a packet's RTP timestamp and the receiver's clock at the time of arrival, measured in the same units.

    对RTP包到达不一致性的估计;

 

If Si is the RTP timestamp from packet i, and Ri is the time of arrival in RTP timestamp units for packet i, then for two packets i and j, D may be expressed as

                 D(i,j)=(Rj-Ri)-(Sj-Si)=(Rj-Sj)-(Ri-Si)


The interarrival jitter is calculated continuously as each data packet i is received from source SSRC_n, using this difference D for that packet and the previous packet i-1 in order of arrival (not necessarily in sequence), according to the formula

                    J=J+(|D(i-1,i)|-J)/16


Whenever a reception report is issued, the current value of J is sampled.

The jitter calculation is prescribed here to allow profile- independent monitors to make valid interpretations of reports coming from different implementations. This algorithm is the optimal first- order estimator and the gain parameter 1/16 gives a good noise reduction ratio while maintaining a reasonable rate of convergence [11]. A sample implementation is shown in Appendix A.8.

last SR timestamp (LSR): 32 bits
    The middle 32 bits out of 64 in the NTP timestamp (as explained in Section 4) received as part of the most recent RTCP sender report (SR) packet from source SSRC_n. If no SR has been received yet, the field is set to zero.

    表示所接收到的此RR块对应的SSRC发送的最后一个SR中64-bit NTP时间戳的中间32位,以告知它所发送的SR是否已经被收到;

 

delay since last SR (DLSR): 32 bits
    The delay, expressed in units of 1/65536 seconds, between receiving the last SR packet from source SSRC_n and sending this reception report block. If no SR packet has been received yet from SSRC_n, the DLSR field is set to zero.

    从收到最后一个SR到此RR块被发出经历的时间,精确到1/65536秒。

 

Let SSRC_r denote the receiver issuing this receiver report. Source SSRC_n can compute the round propagation delay to SSRC_r by recording the time A when this reception report block is received. It calculates the total round-trip time A-LSR using the last SR timestamp (LSR) field, and then subtracting this field to leave the round-trip propagation delay as (A- LSR - DLSR). This is illustrated in Fig. 2.

This may be used as an approximate measure of distance to cluster receivers, although some links have very asymmetric delays.

【信息科学与工程学】【通信工程】计算机科学与自动化——第二百三十三篇 云NaaS服务 系列二01 国家骨干网(含核心网、IP骨干网、OTN骨干网)/城域网【含3G/4G/5G接入网/PON接入网/OTN接入网+OTN/IP城域网+其他】/中心云(多/双/单Region+多AZ/双AZ/单AZ)+边缘DC+边缘计算节点+端计算节点包括IoT传感器、移动终端、CPE设备。通过5G NR(n78频段,带宽100MHz,子载波间隔30kHz)或GPON(下行2.5Gbps,上行1.25Gbps)接入。本地缓存小于10GB,主要用于临时数据暂存。位于地市级机房,部署MEC服务器(Intel Xeon Platin 阅读详情

相关推荐

【信息科学与工程学】【通信工程】第七十七篇 城域网+FTTR/FTTB/FTTC/FTTO的数学分析01

总带宽 Btotal​需考虑各业务带宽 Bi​及统计复用性(按80%计算):Btotal​=0.8∑i=1n​Bi​​。调度延迟 Di​=ri​li​​,其中 li​为包长。:dtdN2​​=hνp​APp​σap​​(Nt​−N2​)−τN2​​−hνs​APs​σes​​N2​,N2=上能级粒子数,N_t=总Er³⁺浓度,σ_ap/σ_es=吸收/发射截面,τ=荧光寿命(≈10ms),A=纤芯面积。调度分数 Scorej​=w1​umax​−umin​umax​−uj​​+w2​mmax​mj​​。

weixin_49199313的博客 448

RTCP协议与实战

在音视频通话中,我们常常使用 RTP 协议包承载音视频负载数据,使用 RTCP 协议包反馈当前传输统计数据,控制传输特性以保证提供较高的服务质量,本文将介绍 RTCP 协议以及 RTCP 常用报文的应用。

椛茶的博客 9818

DirectShow采集与RTP/RTCP发送实战:从rtp_send到Wireshark排查

实时音视频传输中,RTP与RTCP协议负责媒体打包和会话控制,DirectShow则是Windows平台采集原始帧的经典方案。通过SampleGrabber回调获取YUV数据,按MTU分片并封装RTP头,同时周期性发送RTCP SR/RR包维持会话状态,可解决多路摄像头预览失败、花屏卡顿等问题。该技术广泛应用于安防国标平台对接、远程预览和录播推流,尤其适合排查start preview failed等rtp session错误。

weixin_31960565的博客 271

RTCP相关

转载  : http://blog.csdn.net/chinabinlang/article/details/40111427     谢谢版主 能够在会话参与者之间进行周期性的控制信息交换,主要目的是提供质量   相关的反馈。通过使用RTCP和IP多播机制,可以进行第三方的监视和检测。   RTCP定义了5种不同类型的RTCP包:   1.Sender Report(SR)

xiaojun11的专栏 592

从抓包文件精准提取国标GB/T 28181媒体流:原理、工具与实战排坑指南

在音视频监控与通信领域,网络协议分析是定位流媒体传输问题的关键技术。其核心原理在于捕获并解析网络数据包,还原出原始的音视频数据流。这项技术的价值在于能将不可见的网络交互可视化,为研发测试、项目部署和故障排查提供直接证据。具体到工程实践,常需从混杂的抓包文件中,精准分离出符合国标GB/T 28181协议封装的视音频流。通过专用工具如pcap2ps,可以针对RTP/RTCP协议层进行解析,并处理PS流封装、时间戳同步等关键环节,最终生成可播放的标准文件,有效应用于流验证、码率分析和问题复现等场景。

weixin_34327761的博客 265

手把手教你使用HFSS仿真高速差分过孔—上

高速数字电路设计中,信号完整性是一个非常重要的问题。为了使信号保持良好的传输特性,PCB板上的互联线一般都采用均匀传输线,使互联线保持特性阻抗一致性,减少信号反射。然而PCB板上的互联线很多时候避免不了换层的问题,这时候就必须使用过孔。过孔会导致阻抗不连续,进而造成反射,出现信号完整性问题。         当信号传输速率越高,信号前沿越短的时候,过孔引入的信号完整性问题越严重,需要对过孔进行优

a2447944219的博客 2万+

深入理解JRTPLIB的RTCP质量监控机制:SDES、发送者报告与接收者报告全解

JRTPLIB 是一款成熟且被广泛使用的开源 RTP/RTCP 实时通信库。本文带你深入理解 **JRTPLIB 的 RTCP 质量监控机制**,完整拆解 SDES 源描述、发送者报告(SR)与接收者报告(RR)三大报文,帮助新手快速掌握丢包率、抖动(Jitter)和 RTT 往返时延等关键质量指标是如何被采集、上报与解析的。 ## 📌 RTCP 质量监控是做什么的? RTCP(RTP Co

gitblog_00033的博客 1093

VSAN 虚拟机丢失排查与恢复完整方案

VSAN虚拟机(含vCenter)显示无效 检查存储状态:登录ESXi Host Client,确认VSAN存储是否挂载。 若未挂载,通过SSH执行 手动挂载。 验证文件存在:检查虚拟机文件是否完整。 解除文件锁定:删除残留的 .lck 文件 手动注册虚拟机:强制注册虚拟机配置文件。 检查VSAN健康:验证集群节点在线、磁盘组状态正常,并测试节点间网络。 修复元数据:针对损坏对象,谨慎执行修复。 终极恢复:若数据丢失,从备份还原或联系VMware支持,提交日志

sido777的博客 2690

Wireshark抓包实战:5分钟掌握RTP/RTCP协议核心原理

实时传输协议(RTP)及其控制协议(RTCP)是音视频流媒体和网络通信的基石,它们共同构成了互联网实时数据传输的标准框架。RTP负责封装和传输实际的媒体数据,通过序列号和时间戳机制保证数据的时序性和完整性;而RTCP则作为监控通道,周期性反馈网络质量指标,如丢包率、抖动和延迟,实现传输层的自适应控制。理解RTP/RTCP的报文结构和工作原理,对于优化音视频质量、诊断网络问题具有重要价值,广泛应用于视频会议、直播、IP电话等场景。本文以**Wireshark抓包**为实践工具,通过**RTP流分析**功能,带

aibi9196的博客 486

华为OD机试真题2026双机位C卷 Python&JS 语言 实现【主次关联成环警告】

在ICT运维领域,现网运维工程师面向对设备上报的众多告警,往往需要筛选出最主要的告警优先处理,次等级的告警或许为同一个根因导致的告警,处理优先级会放后或者不处理,这样就诞生出主次关联告警的概念。给定一系列告警的主次关联关系,判断是否存在如下情况:

MISAYAONE的博客 275

OMAPL138使用UPP读写测试

UPP测试代码 #include "hw_types.h" // 宏命令 #include "hw_syscfg0_OMAPL138.h" // 系统配置模块寄存器 #include "soc_OMAPL138.h" // DSP C6748 外设寄存器 #include "psc.h" // 电源与睡眠控制宏及设备抽象层函数声明 #include "interrupt.h" // DSP C6748 中断相关应用程序接...

wangjie36的博客 1195

Wireshark实战:深度解析RTP协议与音视频流质量分析

实时传输协议(RTP)是音视频通信和流媒体传输的核心协议,它定义了在IP网络上传输音频和视频等实时数据的封装格式和时序信息。其工作原理基于UDP,通过序列号、时间戳、同步源标识符等头部字段,为接收端提供数据包排序、同步和丢包检测能力。掌握RTP协议分析对于保障音视频服务质量至关重要,它能帮助开发者从网络层面精准定位卡顿、花屏、无声等问题的根源。在实际的工程实践中,网络抓包与分析是排查此类问题的关键手段。通过专业的网络协议分析工具,工程师可以深入洞察RTP流的传输细节,评估网络抖动、丢包率等关键指标,从而优化

weixin_30814329的博客 455

风机叶片小规模振动监测数据集--读取测试

ETH风电叶片缺陷数据集–读取测试 数据简介 提示:这里可以添加本文要记录的大概内容: 结构健康监测是保障重要机电设备、建筑设施健康的重要技术手段。 一、lvm_read包安装 示例:pandas 是基于NumPy 的一种工具,该工具是为了解决数据分析任务

cnjs1994的博客 2853

从零手撸C++ RTSP服务器:协议栈原理与RTP分片实战

RTSP是音视频流媒体的核心会话控制协议,本质为HTTP信令与RTP/RTCP传输的组合体,其稳定性与可控性直接决定边缘视频接入质量。理解RTSP状态机、SDP协商机制、RTP时间戳逻辑及FU-A分片规则,是突破开源黑盒、实现定制化流服务的关键前提。本文聚焦H264 over RTP场景,详解SETUP/PLAY交互时序、NALU到RTP包的精准映射、SSRC与序列号管理,并结合Wireshark抓包验证协议合规性。适用于安防IPC对接、嵌入式边缘推流、低延迟自定义传输等工程实践。

weixin_34082789的博客 418

使用MATLAB和Simulink来创建一个智能家居照明控制系统的仿真模型

智能家居中的智能照明控制系统旨在通过自动化手段优化家庭照明,提高能源效率和居住舒适度。这通常涉及传感器(如光敏传感器、运动传感器)、控制器(如微控制器或PLC)以及执行器(如调光器或开关)。在这个教程中,我们将使用MATLAB和Simulink来创建一个智能家居照明控制系统的仿真模型。

xiaoheshang_123的博客 224

微信小程序数据采集实战:抓包+接口分析+动态数据全流程

微信小程序爬虫虽然比普通网页爬虫复杂,但只要掌握了正确的方法,其实并没有想象中那么难。核心思路就是:先绕过证书校验抓包,然后反编译小程序找到加密逻辑,最后用Python模拟相同的加密和解密过程。需要特别提醒的是,本文仅供技术研究使用。请遵守《网络安全法》和相关法律法规,不要爬取他人的敏感数据,不要将爬虫技术用于非法用途。尊重他人的知识产权和数据安全,才能让技术发挥真正的价值。

专注于Python爬虫开发,分享爬虫技巧、项目实战与反爬经验,使用Scrapy、BeautifulSoup等工具,解决数据抓取难题。 1110

Qwen-Image-Edit-2511-Hyper-Realistic-Portrait进阶实战:柔光箱灯光、浅景深与湿发水光效果调优技巧

Qwen-Image-Edit-2511-Hyper-Realistic-Portrait 是一款基于 Qwen-Image-Edit-2511 图像编辑底模的超写实人像 LoRA 适配器,能将普通照片转换成毛孔级皮肤质感、湿发水光、浅景深散景的电影级写实人像,且严格保留人物面部身份。本文将带你掌握柔光箱布光、85mm 浅景深与湿润皮肤效果的提示词调优技巧。 ## 📌 项目速览:这套人像 Lo

gitblog_00962的博客 991

OpenClaw一人公司落地案例:本地商家营销智能体月赚3万的秘密

角色:本地商家营销专家## 核心目标为商家生成高转化率的抖音营销策略,最大化 ROI。## 输入数据- 商家名称: "XX奶茶店"- 过去 30 天视频播放量: 12,000- 客单价: 28 元- 竞品平均播放量: 15,000- 市场趋势: rising## 策略生成规则1. **内容类型**:根据客单价推荐- < 30 元:美食探店 + 优惠券- > 30 元:场景化故事 + 会员权益2. **发布时间**:根据历史数据- 18:00-20:00 高峰期。

专注于Python爬虫开发,分享爬虫技巧、项目实战与反爬经验,使用Scrapy、BeautifulSoup等工具,解决数据抓取难题。 551

C++从零实现轻量级RTSP服务器:H264流媒体核心原理与工程实践

RTSP服务器是流媒体系统的关键协议网关,其本质是基于RFC 7826构建的TCP信令控制与RTP/RTCP实时传输协同机制。理解RTSP状态机、SDP动态生成、RTP时间戳同步及NALU分片原理,是解决花屏、卡顿、跨设备兼容等工业级问题的技术基础。尤其在嵌入式与安防场景中,H264 Annex-B格式解析、零拷贝RTP封装、环形缓冲区管理等底层优化,直接决定服务的资源占用与稳定性。本文以纯C++无第三方库实现为线索,深入拆解从Socket绑定、RTSP事务调度到RTP时间戳校准的完整技术链路,覆盖Linu

weixin_34055787的博客 136

Camera2Demo

在Camera2 的基础上进行封装,使得Camera2一堆初始化逻辑与Activity分离,降低耦合度,完成预览拍照并保存的操作

数学建模模型总结

这是本人在两年内准备参加数学建模竞赛搜集到的模型资料,已经经过了本人的筛选和整理,希望能够对准备参加数学建模竞赛的学弟学妹们提供一些帮助!

【zlm】 webrtc源码讲解

根据url找到对应的事件回调,最终会调用WebRtcPluginManager::Instance().getAnswerSdp。

dualvencsdn的博客 2409

复分析 阿尔福斯(Ahlfors) 第三版答案 英文

答案分为十章,有部分习题没有答案,全英文复分析阿尔福斯(Ahlfors) 第三版答案

深入解析libSRTP:实时音视频通信的安全基石与工程实践

在实时音视频通信领域,数据安全传输是核心需求。RTP协议作为实时传输的主力,其本身缺乏安全设计,因此需要SRTP协议为其提供加密和认证能力,确保数据的机密性、完整性和来源真实性。SRTP通过对称加密算法(如AES)对载荷进行加密,并结合消息认证码(如HMAC)实现认证,其关键技术在于密钥管理和状态同步。libSRTP作为该协议的开源实现,被广泛应用于WebRTC等框架中,它通过会话上下文和策略分离的设计,灵活支持多流处理。在工程实践中,开发者常需处理认证失败、重放攻击保护等核心问题,并权衡性能与带宽开销。掌

583

迈瑞BS系列全自动生化分析仪LIS协议接口手册(内含HL7和ASTM)

迈瑞BS系列全自动生化分析仪LIS协议接口手册,内含HL7和ASTM)

Live555嵌入式RTSP服务器实战:低延迟高兼容流媒体开发指南

RTSP协议是实时音视频传输的核心标准,其本质是基于RTP/RTCP的会话控制与媒体封装机制。Live555作为轻量级C++实现,以极小内存占用(<5MB)和确定性时序控制,成为资源受限设备(如ARM嵌入式、工业相机、NVR前端)构建合规RTSP服务的关键技术选型。它不提供转码或Web界面,而是聚焦于SDP动态生成、H.264 RTP打包、精准时间戳打点及RTCP反馈等底层协议细节,显著提升首帧延迟(可压至112ms)与多路并发稳定性。典型应用于安防监控、机器视觉、医疗内窥镜等对帧同步、payload ty

weixin_34320159的博客 290

UDP协议本质与实战:从无连接到低延迟可控传输

UDP(用户数据报协议)是OSI模型中位于IP层之上的无连接传输层协议,其核心特征是轻量头部(仅8字节)、零状态维护与端口寻址能力。它不提供可靠性保障,但将重传、排序、拥塞控制等决策权完全交由应用层,从而实现确定性低延迟和高并发接入能力。这种‘可控的不可靠’设计使其成为实时音视频(WebRTC)、高频DNS查询、物联网海量上报等场景的底层基石。结合Linux内核源码级调优(如udp_hash查找机制、SO_REUSEPORT、eBPF过滤)与真实产线避坑经验(校验和卸载冲突、接收队列溢出、多播TTL约束),

didi9310的博客 433

AVDTP协议详解:蓝牙音视频传输的核心调度机制

AVDTP(Audio/Video Distribution Transport Protocol)是经典蓝牙音视频传输中承上启下的关键协议,它在A2DP等应用层协议与L2CAP、RTP等底层传输协议之间构建会话管理、流控协商与状态同步能力。其核心价值在于将无序的媒体数据搬运升级为可配置、可监控、可调试的精细化流调度。通过SEID标识端点、ACP/INT定义角色、ROHC优化带宽、SCMS-T保障内容安全,AVDTP支撑起车载音频分发、工业视频回传、医疗多通道同步等真实场景。尤其在hc05模块连接异常、ES

weixin_30313409的博客 359

全速率超线速深协议:网络测试设备的三大核心能力解析

网络测试设备的核心能力首先体现为对物理层、数据平面和应用层协议的系统性支撑。‘全速率’指设备在1G/2.5G/5G/10G等多速率下保持线速转发的硬件兼容性;‘超线速’并非单纯堆砌CPU资源,而是通过ASIC+FPGA协同卸载实现L2-L7流量的纳秒级处理与低开销吞吐;‘深协议’则强调对TLS 1.3、HTTP/3、QUIC等现代协议握手细节(如ClientHello扩展、ALPN协商、Connection Migration)的实时识别与结构化分析,而非仅做明文解密。这些能力共同构成真实业务场景下SLA验

weixin_30231327的博客 310
上一篇: 6.3.4 Analyzing sender and receiver reports
下一篇: IP/TCP/UDP/RTP/RTCP 包结构图
linux__kernel
博客等级 码龄20年 20粉丝 64原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值
⌂ 换网址