RTP Data
After the setup, RTP data will be sent through the TCP socket that is used for RTSP commands. The RTP data will be encapsulate in the following format
| magic number | channel number | embedded data length | data |
magic number - 1 byte value of hex 0x24
channel number - 1 byte value to denote the channel
embedded data length - 2 bytes to denote the embedded data length
data - data packet, ie RTP packet, with the total length of the embedded data length
Is that mean that the magic number (0x24) can't preset in rtp
RTSP - 通过TCP的RTP
这是否意味着神奇数字(0x24)不能预设在rtph264数据中?根据RTSP - RTP over TCP RTP Data设置后,RTP数据将通过TCP套接字发送,该套接字用于RTSP命令。RTP数据将被封装成以下格式h264数据?
由于实际的有效载荷是以其长度为前缀的,所以有效载荷的开始和结束都很清楚。它不会在有效载荷、长度或通道号中搜索魔数,而只会在魔数应该在的位置搜索。
当我看到0x24时,我知道它是rtp数据包的开始吗?
不,正如解释过的,0x24可以在数据中的任何位置,而不仅仅是在魔数的位置。