public:it:rtsp

差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

两侧同时换到之前的修订记录 前一修订版
后一修订版
前一修订版
public:it:rtsp [2024/07/24 15:50] – [关于 h264 的分包] oakfirepublic:it:rtsp [2025/04/23 10:48] (当前版本) oakfire
行 5: 行 5:
  
 - RTSP [RFC2326](http://www.rfcreader.com/#rfc2326) - RTSP [RFC2326](http://www.rfcreader.com/#rfc2326)
 +- RTSP 2.0 [RFC7826](http://www.rfcreader.com/#rfc7826)
 - SDP [RFC2327](http://www.rfcreader.com/#rfc2327)[RFC3266](http://www.rfcreader.com/#rfc3266) -> [RFC4566](http://www.rfcreader.com/#rfc4566) -> [RFC8866](http://www.rfcreader.com/#rfc8866) - SDP [RFC2327](http://www.rfcreader.com/#rfc2327)[RFC3266](http://www.rfcreader.com/#rfc3266) -> [RFC4566](http://www.rfcreader.com/#rfc4566) -> [RFC8866](http://www.rfcreader.com/#rfc8866)
   - SDP 中音视频媒体的描述:[RFC5939](https://www.rfcreader.com/#rfc5939), [RFC6236](https://www.rfcreader.com/#rfc6236), [RFC6871](https://www.rfcreader.com/#rfc6871)   - SDP 中音视频媒体的描述:[RFC5939](https://www.rfcreader.com/#rfc5939), [RFC6236](https://www.rfcreader.com/#rfc6236), [RFC6871](https://www.rfcreader.com/#rfc6871)
行 15: 行 16:
 - Transport:  格式 `<transport>/<profile>/<lower-transport>`,未指明TCP或UDP的  **RTP/AVP**, 默认是 **UDP**. - Transport:  格式 `<transport>/<profile>/<lower-transport>`,未指明TCP或UDP的  **RTP/AVP**, 默认是 **UDP**.
 - 音视频媒体的编码类型以 `m=` 为准, `a=fmtp`, `a=rtpmap` 可参考; - 音视频媒体的编码类型以 `m=` 为准, `a=fmtp`, `a=rtpmap` 可参考;
 +- RTP 头里的时间戳是采样时间,可等同为PTS, 而FLV tag header 里的时间戳涵义是DTS
  
 ## 关于音频对讲 ## 关于音频对讲
行 23: 行 25:
  - RTP 对 H264 的分包相关: [RFC6184](https://www.rfcreader.com/#rfc6184)  - RTP 对 H264 的分包相关: [RFC6184](https://www.rfcreader.com/#rfc6184)
  - 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    Packet Type Name               Section  NAL Unit  Packet    Packet Type Name               Section
    Type      Type    Type      Type
行 37: 行 38:
    29       FU-B      Fragmentation unit                 5.8    29       FU-B      Fragmentation unit                 5.8
    30-31    reserved                                     -    30-31    reserved                                     -
-        ```+   ```
  
 - 三种分包模式: three cases of packetization modes: - 三种分包模式: three cases of packetization modes:
行 65: 行 66:
 - 24(0x18)格式,某些 rtsp server 推流会把关键帧前的 sps pps 作为一个STAP-A包发送, 比如 mediamtx 的流 - 24(0x18)格式,某些 rtsp server 推流会把关键帧前的 sps pps 作为一个STAP-A包发送, 比如 mediamtx 的流
 - STAP-A 的格式: 头字节  0x18 , 跟两字节长度,然后跟h264  nalu内容,再跟两字节长度,如此循环: - STAP-A 的格式: 头字节  0x18 , 跟两字节长度,然后跟h264  nalu内容,再跟两字节长度,如此循环:
- +  ```
- ```+
                                                            3                                                            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      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: 行 84:
     |                               :...OPTIONAL RTP padding        |     |                               :...OPTIONAL RTP padding        |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-``` +   ``` 
-</markdow +</markdown>
-n>+
  • public/it/rtsp.1721807435.txt.gz
  • 最后更改: 2024/07/24 15:50
  • oakfire