1 RTSP
1.0 参考博客
#RTSP协议实例分析
https://blog.csdn.net/dosthing/article/details/79968828
# RTSP协议学习笔记
https://blog.csdn.net/leixiaohua1020/article/details/11955341?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522164165159416781683969490%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&request_id=164165159416781683969490&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~all~top_positive~default-1-11955341.pc_search_insert_es_download&utm_term=rtsp&spm=1018.2226.3001.4187
# 用户权限认证过程
https://blog.csdn.net/joeblackzqq/article/details/22383005
1.1 概念
- RTSP是应用层协议
- RTSP在体系结构上位于RTP和RTCP之上,它使用TCP或UDP完成数据传输
- RTSP是基于文本的协议,采用ISO10646字符集,使用UTF-8编码方案。行以CRLF中断,包括消息类型、消息头、消息体和消息长
- SDP 完全是一种会话描述格式 ― 它不属于传输协议 ― 它只使用不同的适当的传输协议,包括会话通知协议(SAP)、会话初始协议(SIP)、实时流协议(RTSP)、MIME 扩展协议的电子邮件以及超文本传输协议(HTTP)
1.2 wiresharp
抓包分析
1.3 RTSP交互流程
1.4 SDP
Session description protocol
DESCRIBE rtsp://wowzaec2demo.streamlock.net:554/vod/mp4:BigBuckBunny_115k.mov RTSP/1.0
Accept: application/sdp
CSeq: 2
User-Agent: Lavf58.65.100
RTSP/1.0 200 OK
CSeq: 2
Server: Wowza Streaming Engine 4.8.10 build20210217143515
Cache-Control: no-cache
Expires: Sat, 8 Jan 2022 10:23:03 UTC
Content-Length: 608
Content-Base: rtsp://wowzaec2demo.streamlock.net:554/vod/mp4:BigBuckBunny_115k.mov/
Date: Sat, 8 Jan 2022 10:23:03 UTC
Content-Type: application/sdp
Session: 1999943393;timeout=60
v=0
o=- 1999943393 1999943393 IN IP4 34.227.104.115
s=BigBuckBunny_115k.mov
c=IN IP4 34.227.104.115
t=0 0
a=sdplang:en
a=range:npt=0- 634.625
a=control:*
m=audio 0 RTP/AVP 96
a=rtpmap:96 mpeg4-generic/12000/2
a=fmtp:96 profile-level-id=1;mode=AAC-hbr;sizelength=13;indexlength=3;indexdeltalength=3;config=149056e500
a=control:trackID=1
m=video 0 RTP/AVP 97
a=rtpmap:97 H264/90000
a=fmtp:97 packetization-mode=1;profile-level-id=64000C;sprop-parameter-sets=Z2QADKzZQ8Vv/ACAAGxAAAADAEAAAAwDxQplgA==,aOvssiw=
a=cliprect:0,0,160,240
a=framesize:97 240-160
a=framerate:24.0
a=control:trackID=2
1.5 RTP
- 博客
https://blog.csdn.net/leixiaohua1020/article/details/50535230?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522164171950316780357297649%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fblog.%2522%257D&request_id=164171950316780357297649&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~blog~first_rank_ecpm_v1~rank_v31_ecpm-1-50535230.nonecase&utm_term=rtp&spm=1018.2226.3001.4450
/**
* 最简单的视音频数据处理示例
* Simplest MediaData Test
*
* 雷霄骅 Lei Xiaohua
* leixiaohua1020@126.com
* 中国传媒大学/数字电视技术
* Communication University of China / Digital TV Technology
* http://blog.csdn.net/leixiaohua1020
*
* 本项目包含如下几种视音频测试示例:
* (1)像素数据处理程序。包含RGB和YUV像素格式处理的函数。
* (2)音频采样数据处理程序。包含PCM音频采样格式处理的函数。
* (3)H.264码流分析程序。可以分离并解析NALU。
* (4)AAC码流分析程序。可以分离并解析ADTS帧。
* (5)FLV封装格式分析程序。可以将FLV中的MP3音频码流分离出来。
* (6)UDP-RTP协议分析程序。可以将分析UDP/RTP/MPEG-TS数据包。
*
* This project contains following samples to handling multimedia data:
* (1) Video pixel data handling program. It contains several examples to handle RGB and YUV data.
* (2) Audio sample data handling program. It contains several examples to handle PCM data.
* (3) H.264 stream analysis program. It can parse H.264 bitstream and analysis NALU of stream.
* (4) AAC stream analysis program. It can parse AAC bitstream and analysis ADTS frame of stream.
* (5) FLV format analysis program. It can analysis FLV file and extract MP3 audio stream.
* (6) UDP-RTP protocol analysis program. It can analysis UDP/RTP/MPEG-TS Packet.
*
*/
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <winsock2.h>
#pragma comment(lib, "ws2_32.lib")
#pragma pack(1)
/*
* [memo] FFmpeg stream Command:
* ffmpeg -re -i sintel.ts -f mpegts udp://127.0.0.1:8880
* ffmpeg -re -i sintel.ts -f rtp_mpegts udp://127.0.0.1:8880
*/
typedef struct RTP_FIXED_HEADER {
/* byte 0 */
unsigned char csrc_len : 4; /* expect 0 */
unsigned char extension : 1; /* expect 1 */
unsigned char padding : 1; /* expect 0 */
unsigned char version : 2; /* expect 2 */
/* byte 1 */
unsigned char payload : 7;
unsigned char marker : 1; /* expect 1 */
/* bytes 2, 3 */
unsigned short seq_no;
/* bytes 4-7 */
unsigned long timestamp;
/* bytes 8-11 */
unsigned long ssrc; /* stream number is used here. */
} RTP_FIXED_HEADER;
typedef struct MPEGTS_FIXED_HEADER {
unsigned sync_byte : 8;
unsigned transport_error_indicator : 1;
unsigned payload_unit_start_indicator : 1;
unsigned transport_priority : 1;
unsigned PID : 13;
unsigned scrambling_control : 2;
unsigned adaptation_field_exist : 2;
unsigned continuity_counter : 4;
} MPEGTS_FIXED_HEADER_T;
int simplest_udp_parser(int port)
{
WSADATA wsaData;
WORD sockVersion = MAKEWORD(2, 2);
int cnt = 0;
//FILE *myout=fopen("output_log.txt","wb+");
FILE* myout = stdout;
FILE* fp1 = fopen("output_dump.ts", "wb+");
if (WSAStartup(sockVersion, &wsaData) != 0) {
return 0;
}
SOCKET serSocket = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP);
if (serSocket == INVALID_SOCKET) {
printf("socket error !");
return 0;
}
sockaddr_in serAddr;
serAddr.sin_family = AF_INET;
serAddr.sin_port = htons(port);
serAddr.sin_addr.S_un.S_addr = INADDR_ANY;
if (bind(serSocket, (sockaddr*)&serAddr, sizeof(serAddr)) == SOCKET_ERROR) {
printf("bind error !");
closesocket(serSocket);
return 0;
}
sockaddr_in remoteAddr;
int nAddrLen = sizeof(remoteAddr);
//How to parse?
int parse_rtp = 1;
int parse_mpegts = 1;
printf("Listening on port %d\n", port);
char recvData[10000];
while (1) {
int pktsize = recvfrom(serSocket, recvData, 10000, 0, (sockaddr*)&remoteAddr, &nAddrLen);
if (pktsize > 0) {
//printf("Addr:%s\r\n",inet_ntoa(remoteAddr.sin_addr));
//printf("packet size:%d\r\n",pktsize);
//Parse RTP
//
if (parse_rtp != 0) {
char payload_str[10] = { 0 };
RTP_FIXED_HEADER rtp_header;
int rtp_header_size = sizeof(RTP_FIXED_HEADER);
//RTP Header
memcpy((void*)&rtp_header, recvData, rtp_header_size);
//RFC3551
char payload = rtp_header.payload;
switch (payload) {
case 0:
case 1:
case 2:
case 3:
case 4:
case 5:
case 6:
case 7:
case 8:
case 9:
case 10:
case 11:
case 12:
case 13:
case 14:
case 15:
case 16:
case 17:
case 18: sprintf(payload_str, "Audio"); break;
case 31: sprintf(payload_str, "H.261"); break;
case 32: sprintf(payload_str, "MPV"); break;
case 33: sprintf(payload_str, "MP2T"); break;
case 34: sprintf(payload_str, "H.263"); break;
case 96: sprintf(payload_str, "H.264"); break;
default:sprintf(payload_str, "other"); break;
}
unsigned int timestamp = ntohl(rtp_header.timestamp);
unsigned int seq_no = ntohs(rtp_header.seq_no);
fprintf(myout, "[RTP Pkt] %5d| %5s| %10u| %5d| %5d|\n", cnt, payload_str, timestamp, seq_no, pktsize);
//RTP Data
char* rtp_data = recvData + rtp_header_size;
int rtp_data_size = pktsize - rtp_header_size;
fwrite(rtp_data, rtp_data_size, 1, fp1);
//Parse MPEGTS
if (parse_mpegts != 0 && payload == 33) {
MPEGTS_FIXED_HEADER_T mpegts_header;
for (int i = 0; i < rtp_data_size; i = i + 188) {
if (rtp_data[i] != 0x47)
break;
//MPEGTS Header
//memcpy((void *)&mpegts_header,rtp_data+i,sizeof(MPEGTS_FIXED_HEADER_T));
fprintf(myout, " [MPEGTS Pkt]\n");
}
}
}
else {
fprintf(myout, "[UDP Pkt] %5d| %5d|\n", cnt, pktsize);
fwrite(recvData, pktsize, 1, fp1);
}
cnt++;
}
}
closesocket(serSocket);
WSACleanup();
fclose(fp1);
return 0;
}
int main(int argc, char** argv)
{
simplest_udp_parser(8880);
return 0;
}
- 测试
ffmpeg -re -i sintel.ts -f mpegts udp://127.0.0.1:8880
ffmpeg -re -i sintel.ts -f rtp_mpegts udp://127.0.0.1:8880
1.6 播放流程
OPTIONS rtsp://wowzaec2demo.streamlock.net:554/vod/mp4:BigBuckBunny_115k.mov RTSP/1.0
CSeq: 1
User-Agent: Lavf58.65.100
RTSP/1.0 200 OK
CSeq: 1
Server: Wowza Streaming Engine 4.8.10 build20210217143515
Cache-Control: no-cache
Public: DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, OPTIONS, ANNOUNCE, RECORD, GET_PARAMETER
Supported: play.basic, con.persistent
DESCRIBE rtsp://wowzaec2demo.streamlock.net:554/vod/mp4:BigBuckBunny_115k.mov RTSP/1.0
Accept: application/sdp
CSeq: 2
User-Agent: Lavf58.65.100
RTSP/1.0 200 OK
CSeq: 2
Server: Wowza Streaming Engine 4.8.10 build20210217143515
Cache-Control: no-cache
Expires: Sat, 8 Jan 2022 10:23:03 UTC
Content-Length: 608
Content-Base: rtsp://wowzaec2demo.streamlock.net:554/vod/mp4:BigBuckBunny_115k.mov/
Date: Sat, 8 Jan 2022 10:23:03 UTC
Content-Type: application/sdp
Session: 1999943393;timeout=60
v=0
o=- 1999943393 1999943393 IN IP4 34.227.104.115
s=BigBuckBunny_115k.mov
c=IN IP4 34.227.104.115
t=0 0
a=sdplang:en
a=range:npt=0- 634.625
a=control:*
m=audio 0 RTP/AVP 96
a=rtpmap:96 mpeg4-generic/12000/2
a=fmtp:96 profile-level-id=1;mode=AAC-hbr;sizelength=13;indexlength=3;indexdeltalength=3;config=149056e500
a=control:trackID=1
m=video 0 RTP/AVP 97
a=rtpmap:97 H264/90000
a=fmtp:97 packetization-mode=1;profile-level-id=64000C;sprop-parameter-sets=Z2QADKzZQ8Vv/ACAAGxAAAADAEAAAAwDxQplgA==,aOvssiw=
a=cliprect:0,0,160,240
a=framesize:97 240-160
a=framerate:24.0
a=control:trackID=2
SETUP rtsp://wowzaec2demo.streamlock.net:554/vod/mp4:BigBuckBunny_115k.mov/trackID=1 RTSP/1.0
Transport: RTP/AVP/TCP;unicast;interleaved=0-1
CSeq: 3
User-Agent: Lavf58.65.100
Session: 1999943393
RTSP/1.0 200 OK
CSeq: 3
Server: Wowza Streaming Engine 4.8.10 build20210217143515
Cache-Control: no-cache
Expires: Sat, 8 Jan 2022 10:23:03 UTC
Transport: RTP/AVP/TCP;unicast;interleaved=0-1
Date: Sat, 8 Jan 2022 10:23:03 UTC
Session: 1999943393;timeout=60
SETUP rtsp://wowzaec2demo.streamlock.net:554/vod/mp4:BigBuckBunny_115k.mov/trackID=2 RTSP/1.0
Transport: RTP/AVP/TCP;unicast;interleaved=2-3
CSeq: 4
User-Agent: Lavf58.65.100
Session: 1999943393
RTSP/1.0 200 OK
CSeq: 4
Server: Wowza Streaming Engine 4.8.10 build20210217143515
Cache-Control: no-cache
Expires: Sat, 8 Jan 2022 10:23:04 UTC
Transport: RTP/AVP/TCP;unicast;interleaved=2-3
Date: Sat, 8 Jan 2022 10:23:04 UTC
Session: 1999943393;timeout=60
PLAY rtsp://wowzaec2demo.streamlock.net:554/vod/mp4:BigBuckBunny_115k.mov/ RTSP/1.0
Range: npt=0.000-
CSeq: 5
User-Agent: Lavf58.65.100
Session: 1999943393
RTSP/1.0 200 OK
RTP-Info: url=rtsp://wowzaec2demo.streamlock.net:554/vod/mp4:BigBuckBunny_115k.mov/trackID=1;seq=1;rtptime=0,url=rtsp://wowzaec2demo.streamlock.net:554/vod/mp4:BigBuckBunny_115k.mov/trackID=2;seq=1;rtptime=0
CSeq: 5
Server: Wowza Streaming Engine 4.8.10 build20210217143515
Cache-Control: no-cache
Range: npt=0.0-634.625
Session: 1999943393;timeout=60
1.7 摄像机播放交互流程
No. Time Source Destination Protocol Length Info
9056 39.709645 172.16.1.1 172.16.1.15 RTSP 170 OPTIONS rtsp://172.16.1.15:554 RTSP/1.0
Frame 9056: 170 bytes on wire (1360 bits), 170 bytes captured (1360 bits) on interface \Device\NPF_{A8EA2363-9CBC-4EA5-953C-2CE02917E014}, id 0
Ethernet II, Src: Pegatron_0a:93:41 (54:b2:03:0a:93:41), Dst: Hangzhou_f8:96:1e (4c:bd:8f:f8:96:1e)
Internet Protocol Version 4, Src: 172.16.1.1, Dst: 172.16.1.15
Transmission Control Protocol, Src Port: 6421, Dst Port: 554, Seq: 1, Ack: 1, Len: 116
Real Time Streaming Protocol
Request: OPTIONS rtsp://172.16.1.15:554 RTSP/1.0\r\n
CSeq: 2\r\n
User-Agent: LibVLC/3.0.8 (LIVE555 Streaming Media v2016.11.28)\r\n
\r\n
No. Time Source Destination Protocol Length Info
9062 39.776486 172.16.1.15 172.16.1.1 RTSP 207 Reply: RTSP/1.0 200 OK
Frame 9062: 207 bytes on wire (1656 bits), 207 bytes captured (1656 bits) on interface \Device\NPF_{A8EA2363-9CBC-4EA5-953C-2CE02917E014}, id 0
Ethernet II, Src: Hangzhou_f8:96:1e (4c:bd:8f:f8:96:1e), Dst: Pegatron_0a:93:41 (54:b2:03:0a:93:41)
Internet Protocol Version 4, Src: 172.16.1.15, Dst: 172.16.1.1
Transmission Control Protocol, Src Port: 554, Dst Port: 6421, Seq: 1, Ack: 117, Len: 153
Real Time Streaming Protocol
Response: RTSP/1.0 200 OK\r\n
CSeq: 2\r\n
Public: OPTIONS, DESCRIBE, PLAY, PAUSE, SETUP, TEARDOWN, SET_PARAMETER, GET_PARAMETER\r\n
Date: Sun, Jan 09 2022 10:43:47 GMT\r\n
\r\n
No. Time Source Destination Protocol Length Info
9063 39.776695 172.16.1.1 172.16.1.15 RTSP 196 DESCRIBE rtsp://172.16.1.15:554 RTSP/1.0
Frame 9063: 196 bytes on wire (1568 bits), 196 bytes captured (1568 bits) on interface \Device\NPF_{A8EA2363-9CBC-4EA5-953C-2CE02917E014}, id 0
Ethernet II, Src: Pegatron_0a:93:41 (54:b2:03:0a:93:41), Dst: Hangzhou_f8:96:1e (4c:bd:8f:f8:96:1e)
Internet Protocol Version 4, Src: 172.16.1.1, Dst: 172.16.1.15
Transmission Control Protocol, Src Port: 6421, Dst Port: 554, Seq: 117, Ack: 154, Len: 142
Real Time Streaming Protocol
Request: DESCRIBE rtsp://172.16.1.15:554 RTSP/1.0\r\n
CSeq: 3\r\n
User-Agent: LibVLC/3.0.8 (LIVE555 Streaming Media v2016.11.28)\r\n
Accept: application/sdp\r\n
\r\n
No. Time Source Destination Protocol Length Info
9065 39.778285 172.16.1.15 172.16.1.1 RTSP 238 Reply: RTSP/1.0 401 Unauthorized
Frame 9065: 238 bytes on wire (1904 bits), 238 bytes captured (1904 bits) on interface \Device\NPF_{A8EA2363-9CBC-4EA5-953C-2CE02917E014}, id 0
Ethernet II, Src: Hangzhou_f8:96:1e (4c:bd:8f:f8:96:1e), Dst: Pegatron_0a:93:41 (54:b2:03:0a:93:41)
Internet Protocol Version 4, Src: 172.16.1.15, Dst: 172.16.1.1
Transmission Control Protocol, Src Port: 554, Dst Port: 6421, Seq: 154, Ack: 259, Len: 184
Real Time Streaming Protocol
Response: RTSP/1.0 401 Unauthorized\r\n
CSeq: 3\r\n
WWW-Authenticate: Digest realm="IP Camera(10199)", nonce="f150eb447bbba6392df0cb9250234fae", stale="FALSE"\r\n
Date: Sun, Jan 09 2022 10:43:47 GMT\r\n
\r\n
No. Time Source Destination Protocol Length Info
9066 39.778372 172.16.1.1 172.16.1.15 RTSP 379 DESCRIBE rtsp://172.16.1.15:554 RTSP/1.0
Frame 9066: 379 bytes on wire (3032 bits), 379 bytes captured (3032 bits) on interface \Device\NPF_{A8EA2363-9CBC-4EA5-953C-2CE02917E014}, id 0
Ethernet II, Src: Pegatron_0a:93:41 (54:b2:03:0a:93:41), Dst: Hangzhou_f8:96:1e (4c:bd:8f:f8:96:1e)
Internet Protocol Version 4, Src: 172.16.1.1, Dst: 172.16.1.15
Transmission Control Protocol, Src Port: 6421, Dst Port: 554, Seq: 259, Ack: 338, Len: 325
Real Time Streaming Protocol
Request: DESCRIBE rtsp://172.16.1.15:554 RTSP/1.0\r\n
CSeq: 4\r\n
Authorization: Digest username="admin", realm="IP Camera(10199)", nonce="f150eb447bbba6392df0cb9250234fae", uri="rtsp://172.16.1.15:554", response="c3914d84c6c1a56c21bc1a9d8f68817a"\r\n
User-Agent: LibVLC/3.0.8 (LIVE555 Streaming Media v2016.11.28)\r\n
Accept: application/sdp\r\n
\r\n
No. Time Source Destination Protocol Length Info
9067 39.781880 172.16.1.15 172.16.1.1 RTSP/SDP 830 Reply: RTSP/1.0 200 OK
Frame 9067: 830 bytes on wire (6640 bits), 830 bytes captured (6640 bits) on interface \Device\NPF_{A8EA2363-9CBC-4EA5-953C-2CE02917E014}, id 0
Ethernet II, Src: Hangzhou_f8:96:1e (4c:bd:8f:f8:96:1e), Dst: Pegatron_0a:93:41 (54:b2:03:0a:93:41)
Internet Protocol Version 4, Src: 172.16.1.15, Dst: 172.16.1.1
Transmission Control Protocol, Src Port: 554, Dst Port: 6421, Seq: 338, Ack: 584, Len: 776
Real Time Streaming Protocol
Response: RTSP/1.0 200 OK\r\n
CSeq: 4\r\n
Content-type: application/sdp
Content-Base: rtsp://172.16.1.15:554/\r\n
Content-length: 657
\r\n
Session Description Protocol
No. Time Source Destination Protocol Length Info
9082 39.797214 172.16.1.1 172.16.1.15 RTSP 414 SETUP rtsp://172.16.1.15:554/trackID=1 RTSP/1.0
Frame 9082: 414 bytes on wire (3312 bits), 414 bytes captured (3312 bits) on interface \Device\NPF_{A8EA2363-9CBC-4EA5-953C-2CE02917E014}, id 0
Ethernet II, Src: Pegatron_0a:93:41 (54:b2:03:0a:93:41), Dst: Hangzhou_f8:96:1e (4c:bd:8f:f8:96:1e)
Internet Protocol Version 4, Src: 172.16.1.1, Dst: 172.16.1.15
Transmission Control Protocol, Src Port: 6421, Dst Port: 554, Seq: 584, Ack: 1114, Len: 360
Real Time Streaming Protocol
Request: SETUP rtsp://172.16.1.15:554/trackID=1 RTSP/1.0\r\n
CSeq: 5\r\n
Authorization: Digest username="admin", realm="IP Camera(10199)", nonce="f150eb447bbba6392df0cb9250234fae", uri="rtsp://172.16.1.15:554/", response="4a646ff918216cb75fe109921e84cadb"\r\n
User-Agent: LibVLC/3.0.8 (LIVE555 Streaming Media v2016.11.28)\r\n
Transport: RTP/AVP;unicast;client_port=60620-60621
\r\n
No. Time Source Destination Protocol Length Info
9085 39.805770 172.16.1.15 172.16.1.1 RTSP 258 Reply: RTSP/1.0 200 OK
Frame 9085: 258 bytes on wire (2064 bits), 258 bytes captured (2064 bits) on interface \Device\NPF_{A8EA2363-9CBC-4EA5-953C-2CE02917E014}, id 0
Ethernet II, Src: Hangzhou_f8:96:1e (4c:bd:8f:f8:96:1e), Dst: Pegatron_0a:93:41 (54:b2:03:0a:93:41)
Internet Protocol Version 4, Src: 172.16.1.15, Dst: 172.16.1.1
Transmission Control Protocol, Src Port: 554, Dst Port: 6421, Seq: 1114, Ack: 944, Len: 204
Real Time Streaming Protocol
Response: RTSP/1.0 200 OK\r\n
CSeq: 5\r\n
Session: 129992886;timeout=60
Transport: RTP/AVP;unicast;client_port=60620-60621;server_port=8324-8325;ssrc=3ecd80e1;mode="play"
Date: Sun, Jan 09 2022 10:43:47 GMT\r\n
\r\n
No. Time Source Destination Protocol Length Info
9086 39.806686 172.16.1.1 172.16.1.15 RTSP 434 SETUP rtsp://172.16.1.15:554/trackID=2 RTSP/1.0
Frame 9086: 434 bytes on wire (3472 bits), 434 bytes captured (3472 bits) on interface \Device\NPF_{A8EA2363-9CBC-4EA5-953C-2CE02917E014}, id 0
Ethernet II, Src: Pegatron_0a:93:41 (54:b2:03:0a:93:41), Dst: Hangzhou_f8:96:1e (4c:bd:8f:f8:96:1e)
Internet Protocol Version 4, Src: 172.16.1.1, Dst: 172.16.1.15
Transmission Control Protocol, Src Port: 6421, Dst Port: 554, Seq: 944, Ack: 1318, Len: 380
Real Time Streaming Protocol
Request: SETUP rtsp://172.16.1.15:554/trackID=2 RTSP/1.0\r\n
CSeq: 6\r\n
Authorization: Digest username="admin", realm="IP Camera(10199)", nonce="f150eb447bbba6392df0cb9250234fae", uri="rtsp://172.16.1.15:554/", response="4a646ff918216cb75fe109921e84cadb"\r\n
User-Agent: LibVLC/3.0.8 (LIVE555 Streaming Media v2016.11.28)\r\n
Transport: RTP/AVP;unicast;client_port=60622-60623
Session: 129992886
\r\n
No. Time Source Destination Protocol Length Info
9095 39.815696 172.16.1.15 172.16.1.1 RTSP 258 Reply: RTSP/1.0 200 OK
Frame 9095: 258 bytes on wire (2064 bits), 258 bytes captured (2064 bits) on interface \Device\NPF_{A8EA2363-9CBC-4EA5-953C-2CE02917E014}, id 0
Ethernet II, Src: Hangzhou_f8:96:1e (4c:bd:8f:f8:96:1e), Dst: Pegatron_0a:93:41 (54:b2:03:0a:93:41)
Internet Protocol Version 4, Src: 172.16.1.15, Dst: 172.16.1.1
Transmission Control Protocol, Src Port: 554, Dst Port: 6421, Seq: 1318, Ack: 1324, Len: 204
Real Time Streaming Protocol
Response: RTSP/1.0 200 OK\r\n
CSeq: 6\r\n
Session: 129992886;timeout=60
Transport: RTP/AVP;unicast;client_port=60622-60623;server_port=8326-8327;ssrc=76e0e0c8;mode="play"
Date: Sun, Jan 09 2022 10:43:47 GMT\r\n
\r\n
No. Time Source Destination Protocol Length Info
9104 39.816962 172.16.1.1 172.16.1.15 RTSP 391 PLAY rtsp://172.16.1.15:554/ RTSP/1.0
Frame 9104: 391 bytes on wire (3128 bits), 391 bytes captured (3128 bits) on interface \Device\NPF_{A8EA2363-9CBC-4EA5-953C-2CE02917E014}, id 0
Ethernet II, Src: Pegatron_0a:93:41 (54:b2:03:0a:93:41), Dst: Hangzhou_f8:96:1e (4c:bd:8f:f8:96:1e)
Internet Protocol Version 4, Src: 172.16.1.1, Dst: 172.16.1.15
Transmission Control Protocol, Src Port: 6421, Dst Port: 554, Seq: 1324, Ack: 1522, Len: 337
Real Time Streaming Protocol
Request: PLAY rtsp://172.16.1.15:554/ RTSP/1.0\r\n
CSeq: 7\r\n
Authorization: Digest username="admin", realm="IP Camera(10199)", nonce="f150eb447bbba6392df0cb9250234fae", uri="rtsp://172.16.1.15:554/", response="2fb5cc667689b8919563be3f871a135f"\r\n
User-Agent: LibVLC/3.0.8 (LIVE555 Streaming Media v2016.11.28)\r\n
Session: 129992886
Range: npt=0.000-\r\n
\r\n
No. Time Source Destination Protocol Length Info
9117 39.876643 172.16.1.15 172.16.1.1 RTSP 289 Reply: RTSP/1.0 200 OK
Frame 9117: 289 bytes on wire (2312 bits), 289 bytes captured (2312 bits) on interface \Device\NPF_{A8EA2363-9CBC-4EA5-953C-2CE02917E014}, id 0
Ethernet II, Src: Hangzhou_f8:96:1e (4c:bd:8f:f8:96:1e), Dst: Pegatron_0a:93:41 (54:b2:03:0a:93:41)
Internet Protocol Version 4, Src: 172.16.1.15, Dst: 172.16.1.1
Transmission Control Protocol, Src Port: 554, Dst Port: 6421, Seq: 1522, Ack: 1661, Len: 235
Real Time Streaming Protocol
Response: RTSP/1.0 200 OK\r\n
CSeq: 7\r\n
Session: 129992886
RTP-Info: url=rtsp://172.16.1.15:554/trackID=1;seq=12931;rtptime=1593562796,url=rtsp://172.16.1.15:554/trackID=2;seq=39023;rtptime=237094208\r\n
Date: Sun, Jan 09 2022 10:43:47 GMT\r\n
\r\n
No. Time Source Destination Protocol Length Info
22865 72.294546 172.16.1.1 172.16.1.15 RTSP 376 TEARDOWN rtsp://172.16.1.15:554/ RTSP/1.0
Frame 22865: 376 bytes on wire (3008 bits), 376 bytes captured (3008 bits) on interface \Device\NPF_{A8EA2363-9CBC-4EA5-953C-2CE02917E014}, id 0
Ethernet II, Src: Pegatron_0a:93:41 (54:b2:03:0a:93:41), Dst: Hangzhou_f8:96:1e (4c:bd:8f:f8:96:1e)
Internet Protocol Version 4, Src: 172.16.1.1, Dst: 172.16.1.15
Transmission Control Protocol, Src Port: 6421, Dst Port: 554, Seq: 1661, Ack: 1757, Len: 322
Real Time Streaming Protocol
Request: TEARDOWN rtsp://172.16.1.15:554/ RTSP/1.0\r\n
CSeq: 8\r\n
Authorization: Digest username="admin", realm="IP Camera(10199)", nonce="f150eb447bbba6392df0cb9250234fae", uri="rtsp://172.16.1.15:554/", response="c1d8591960a48fec66f486271281412e"\r\n
User-Agent: LibVLC/3.0.8 (LIVE555 Streaming Media v2016.11.28)\r\n
Session: 129992886
\r\n
No. Time Source Destination Protocol Length Info
22870 72.297585 172.16.1.15 172.16.1.1 RTSP 147 Reply: RTSP/1.0 200 OK
Frame 22870: 147 bytes on wire (1176 bits), 147 bytes captured (1176 bits) on interface \Device\NPF_{A8EA2363-9CBC-4EA5-953C-2CE02917E014}, id 0
Ethernet II, Src: Hangzhou_f8:96:1e (4c:bd:8f:f8:96:1e), Dst: Pegatron_0a:93:41 (54:b2:03:0a:93:41)
Internet Protocol Version 4, Src: 172.16.1.15, Dst: 172.16.1.1
Transmission Control Protocol, Src Port: 554, Dst Port: 6421, Seq: 1757, Ack: 1984, Len: 93
Real Time Streaming Protocol
Response: RTSP/1.0 200 OK\r\n
CSeq: 8\r\n
Session: 129992886
Date: Sun, Jan 09 2022 10:44:19 GMT\r\n
\r\n