WebRTC Native M96 H264打包方式解读--kH264SingleNalu、kH264StapA、kH264FuA

<WebRTC Native M96视频基础知识介绍–使用H264>中介绍了WebRTC中H264的相关知识,这边不再啰嗦。

抓了一个rtp的包:
在这里插入图片描述

90 60 7c 5d 11 ec 77 4d 4f 20 e6 05 be de 00 02
22 72 28 f6 31 00 01 00 7b fa d5 4c 16 f0 11 13  
43 9b 32 09 a5 26 7e 60 bd f2 fb 5c 52 b2 29 40
e1 62 00 5c 27 49 3c 55 33

RTP包header

在这里插入图片描述

  1. V:RTP协议的版本号,占2位,当前协议版本号为2
    Version: (2 bits) Indicates the version of the protocol. Current version is 2.

  2. P:填充标志,占1位,如果P=1,则在该报文的尾部填充一个或多个额外的八位组,它们不是有效载荷的一部分。
    P (Padding): (1 bit) Used to indicate if there are extra padding bytes at the end of th

猜你喜欢

转载自blog.csdn.net/wangshubo1989/article/details/125285116
今日推荐