作为WebRTC RTCP消息中的一种,PS Feedback包含的内容同样也很多。
在RTCP Header中,这类消息的负载类型Payload Type=206,反馈消息类型FMT如下:
FMT | Name | Long Name | Description | Reference |
1 | PLI | Picture Loss Indication | 图片丢失指示 | RFC4585 |
2 | SLI | Slice Loss Indication | 切片丢失指示 | RFC4585 |
3 | RPSI | Reference Picture Selection Indication | 参考图片选择指示 | RFC4585 |
4 | FIR | Full Intra Request | 完整的内部请求 | RFC5104 |
5 | TSTR | Temporal-Spatial Trade-off Request | 时空权衡请求 | RFC5104 |
6 | TSTN | Temporal-Spatial Trade-off Notification | 时空权衡通知 | RFC5104 |
7 | VBCM | Video Back Channel Message | 视频返回频道消息 | RFC5104 |
15 | REMB | Receiver Estimated Maximum Bitrate | 接收器估计的最大比特率 | draft-alvestrand-rmcat-remb-03 |
一、图片丢失指示(PLI)
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| FMT=1 | PT=206 | length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| SSRC of packet sender |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| SSRC of media source |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
PLI用于接收方向发送方请求视频关键帧。PLI不需要额外参数,因此长度字段必须为2,并且不得有任何反馈控制信息。
二、完整的内部请求(FIR)
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| FMT=1 | PT=206 | length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| SSRC of packet sender |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| SSRC of media source |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Seq nr. | Reserved |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- Seq nr:命令序列号
- Reserved:预留
三、接收器估计的最大比特率(REMB)
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| FMT=15 | PT=206 | length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| SSRC of packet sender |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| SSRC of media source |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Unique identifier 'R' 'E' 'M' 'B' |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Num SSRC | BR Exp | BR Mantissa |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| SSRC feedback |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| ... |
- Unique identifier:唯一标识符,始终为“R”“E”“M”“B”(4个ASCII字符)。
- Num SSRC:此消息中 SSRC 的数量。
- BR Exp:指数
- BR Mantissa:系数
- SSRC feedback:由一个或多个应用此反馈消息的 SSRC 条目组成