差别
这里会显示出您选择的修订版和当前版本之间的差别。
两侧同时换到之前的修订记录 前一修订版 后一修订版 | 前一修订版 | ||
public:it:rtsp [2024/04/24 09:30] – [文档] oakfire | public:it:rtsp [2025/03/13 16:22] (当前版本) – oakfire | ||
---|---|---|---|
行 5: | 行 5: | ||
- RTSP [RFC2326](http:// | - RTSP [RFC2326](http:// | ||
+ | - RTSP 2.0 [RFC7826](http:// | ||
- SDP [RFC2327](http:// | - SDP [RFC2327](http:// | ||
- SDP 中音视频媒体的描述:[RFC5939](https:// | - SDP 中音视频媒体的描述:[RFC5939](https:// | ||
行 23: | 行 24: | ||
- RTP 对 H264 的分包相关: [RFC6184](https:// | - RTP 对 H264 的分包相关: [RFC6184](https:// | ||
- Table 1. Summary of NAL unit types and the corresponding packet types | - Table 1. Summary of NAL unit types and the corresponding packet types | ||
- | + | ``` | |
- | ``` | + | |
NAL Unit Packet | NAL Unit Packet | ||
Type Type | Type Type | ||
行 37: | 行 37: | ||
29 | 29 | ||
30-31 reserved | 30-31 reserved | ||
- | ``` | + | ``` |
- 三种分包模式: three cases of packetization modes: | - 三种分包模式: three cases of packetization modes: | ||
行 63: | 行 63: | ||
### STAP-A 包 | ### STAP-A 包 | ||
- | - 24(0x18)格式,某些 rtsp server 推流会把关键帧前的 sps pps 作为一个STAP-A包发送, 比如 | + | - 24(0x18)格式,某些 rtsp server 推流会把关键帧前的 sps pps 作为一个STAP-A包发送, 比如 mediamtx 的流 |
- STAP-A 的格式: 头字节 | - STAP-A 的格式: 头字节 | ||
- | + | | |
- | ``` | + | |
| | ||
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 | 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 | ||
行 84: | 行 83: | ||
| : | | : | ||
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ||
- | ``` | + | ``` |
- | </markdow | + | </markdown> |
- | n> | + |