以下是从RTP提取H.264的一些调试信息:
fragmentTypeBits: 7,start_bit: 0,end_bit: 64,RTP有效载荷: 6742E01EDB02C0417845
->写SPS
fragmentTypeBits: 8,start_bit: 128,end_bit: 64,RTP有效载荷: 68CE30A480
->写PPS
fragmentTypeBits: 6,start_bit: 128,end_bit: 64,RTP有效载荷: 06E501AF80
->跳过
fragmentTypeBits: 28,start_bit: 128,end_bit: 0,RTP有效载荷:fragmentTypeBits
->写零碎数据..。新框架
fragmentTypeBits: 28,start_bit: 0,end_bit: 0,RTP有效载荷:fragmentTypeBits
->写零碎数据..。框架片段
..。(多次相同的起始结束位= 0)。
fragmentTypeBits: 28,start_bit: 128,end_bit: 0,RTP有效载荷:fragmentTypeBits
->写零碎数据..。新框架
在以前没有设置结束位的情况下,设置开始位可以吗?
另外,在同一时间设置起始位/结束位可以吗?
在没有开始位设置的情况下,设置结束位可以吗?
发布于 2012-08-17 19:38:07
来自RFC 3984:
Fragments of the same NAL unit MUST be sent in consecutive order with
ascending RTP sequence numbers (with no other RTP packets within the
same RTP packet stream being sent between the first and last
fragment). Similarly, a NAL unit MUST be reassembled in RTP sequence
number order.基本上,第一个碎片单元应该有一个开始位集(即片段类型= 28),碎片单元应该有一个上升的序列号,直到最后一个设置了结束位。
设置另一个开始位,或没有开始位的结束位,或无序序列号,都是不正确的。
https://stackoverflow.com/questions/12006600
复制相似问题