# rtspd **Repository Path**: network-communication/rtspd ## Basic Information - **Project Name**: rtspd - **Description**: No description available - **Primary Language**: C - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 2 - **Created**: 2023-08-20 - **Last Updated**: 2023-08-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 这是CSDN _JT_ 大神的代码,原创见 https://blog.csdn.net/weixin_42462202/article/details/99068041 用tcp传输rtp数据的时候 C->S请求报文 SETUP rtsp://222.201.145.236/slamtv60.264/track1 RTSP/1.0 CSeq: 4 User-Agent: LibVLC/1.1.11 (LIVE555 Streaming Media v2011.05.25) Transport: RTP/AVP/TCP;unicast; interleaved=0-1 //Transport:传输协议+传播方式(单播或多播)+通道号。 S->C回应报文 RTSP/1.0 200 OK CSeq: 4 Date: Wed, Mar 07 2012 03:48:18 GMT Transport: RTP/AVP/TCP;unicast;destination=125.216.243.188;source=222.201.145.236;interleaved=0-1 Session: 289BFEAE RTP,RTCP数据和RTSP数据共享TCP数据通道,所以必须有一个标识来区别三种数据。 RTSP数据 不改动 RTP数据 在数据包头加$符号+1个字节的RTP通道编号+2个字节的数据长度 RTP数据 在数据包头加$符号+1个字节的RTCP通道编号+2个字节的数据长度 其中,通道编号在setup请求报文中interleaved有说明, interleaved=0-1说明了0为RTP通道,1为RTCP通道