VLC 播放RTSP 抓包分析

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了VLC 播放RTSP 抓包分析相关的知识,希望对你有一定的参考价值。


VLC 播放RTSP视频抓包记录:

vlc -vvv rtsp://172.16.66.22/nuc.sdp




OPTIONS:
	OPTIONS rtsp://172.16.66.22/nuc.sdp RTSP/1.0
	CSeq: 2
	User-Agent: LibVLC/2.2.6 (LIVE555 Streaming Media v2016.02.22)
	--------------------------------------------------------------------------
	RTSP/1.0 200 OK
	Server: DSS/6.0.3 (Build/526.3; Platform/Linux; Release/Darwin Streaming Server; State/Development; )
	Cseq: 2
	Public: DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, OPTIONS, ANNOUNCE, RECORD
	
			
DESCRIBE:			
	DESCRIBE rtsp://172.16.66.22/nuc.sdp RTSP/1.0
	CSeq: 3
	User-Agent: LibVLC/2.2.6 (LIVE555 Streaming Media v2016.02.22)
	Accept: application/sdp
	--------------------------------------------------------------------------
	RTSP/1.0 200 OK
	Server: DSS/6.0.3 (Build/526.3; Platform/Linux; Release/Darwin Streaming Server; State/Development; )
	Cseq: 3
	Cache-Control: no-cache
	Content-length: 568
	Date: Wed, 18 Oct 2017 02:13:28 GMT
	Expires: Wed, 18 Oct 2017 02:13:28 GMT
	Content-Type: application/sdp
	x-Accept-Retransmit: our-retransmit
	x-Accept-Dynamic-Rate: 1
	Content-Base: rtsp://172.16.66.22/nuc.sdp/

	v=0
	o=- 0 0 IN IP4 127.0.0.1
	s=No Name
	c=IN IP4 0.0.0.0
	t=0 0
	a=tool:libavformat 57.71.100
	a=control:*
	m=video 0 RTP/AVP 96
	b=AS:3011
	a=3GPP-Adaptation-Support:1
	a=rtpmap:96 H264/90000
	a=fmtp:96 packetization-mode=1; sprop-parameter-sets=Z2QAH6zZgFAFuhAAAAMAEAAAAwOo8YMZoA==,aOl7PI8=; profile-level-id=64001F
	a=control:trackID=0
	m=audio 0 RTP/AVP 97
	b=AS:127
	a=3GPP-Adaptation-Support:1
	a=rtpmap:97 MPEG4-GENERIC/48000/2
	a=fmtp:97 profile-level-id=1;mode=AAC-hbr;sizelength=13;indexlength=3;indexdeltalength=3; config=119056E500
	a=control:trackID=1

			
			
SETUP:			
	SETUP rtsp://172.16.66.22/nuc.sdp/trackID=0 RTSP/1.0
	CSeq: 4
	User-Agent: LibVLC/2.2.6 (LIVE555 Streaming Media v2016.02.22)
	Transport: RTP/AVP;unicast;client_port=61296-61297
	--------------------------------------------------------------------------
	RTSP/1.0 200 OK
	Server: DSS/6.0.3 (Build/526.3; Platform/Linux; Release/Darwin Streaming Server; State/Development; )
	Cseq: 4
	Cache-Control: no-cache
	Session: 6250823492717837688
	Date: Wed, 18 Oct 2017 02:13:28 GMT
	Expires: Wed, 18 Oct 2017 02:13:28 GMT
	Transport: RTP/AVP;unicast;source=172.16.66.22;client_port=61296-61297;server_port=6970-6971

	
SETUP:
	SETUP rtsp://172.16.66.22/nuc.sdp/trackID=1 RTSP/1.0
	CSeq: 5
	User-Agent: LibVLC/2.2.6 (LIVE555 Streaming Media v2016.02.22)
	Transport: RTP/AVP;unicast;client_port=61298-61299
	Session: 6250823492717837688
	--------------------------------------------------------------------------
	RTSP/1.0 200 OK
	Server: DSS/6.0.3 (Build/526.3; Platform/Linux; Release/Darwin Streaming Server; State/Development; )
	Cseq: 5
	Session: 6250823492717837688
	Cache-Control: no-cache
	Date: Wed, 18 Oct 2017 02:13:28 GMT
	Expires: Wed, 18 Oct 2017 02:13:28 GMT
	Transport: RTP/AVP;unicast;source=172.16.66.22;client_port=61298-61299;server_port=6970-6971

			
PLAY:
	PLAY rtsp://172.16.66.22/nuc.sdp/ RTSP/1.0
	CSeq: 6
	User-Agent: LibVLC/2.2.6 (LIVE555 Streaming Media v2016.02.22)
	Session: 6250823492717837688
	Range: npt=0.000-
	--------------------------------------------------------------------------
	RTSP/1.0 200 OK
	Server: DSS/6.0.3 (Build/526.3; Platform/Linux; Release/Darwin Streaming Server; State/Development; )
	Cseq: 6
	Session: 6250823492717837688
	Range: npt=now-
	RTP-Info: url=rtsp://172.16.66.22/nuc.sdp/trackID=0,url=rtsp://172.16.66.22/nuc.sdp/trackID=1

	.
	.
	.
	.
	.
	.
	
TEARDOWN:			
	TEARDOWN rtsp://172.16.66.22/nuc.sdp/ RTSP/1.0
	CSeq: 7
	User-Agent: LibVLC/2.2.6 (LIVE555 Streaming Media v2016.02.22)
	Session: 6250823492717837688
	--------------------------------------------------------------------------
	RTSP/1.0 200 OK
	Server: DSS/6.0.3 (Build/526.3; Platform/Linux; Release/Darwin Streaming Server; State/Development; )
	Cseq: 7
	Session: 6250823492717837688
	Connection: Close


本文出自 “李春利” 博客,请务必保留此出处http://990487026.blog.51cto.com/10133282/1973660

以上是关于VLC 播放RTSP 抓包分析的主要内容,如果未能解决你的问题,请参考以下文章

VLC通过RTSP地址向IPC取流播放不了问题排查

在网站上嵌入 VLC 插件以播放 RTSP 流

vlc-2.2.1播放rtsp流,画面不清与卡顿问题处理

c#做vlc开发,如果传入的rtsp无效怎么判断

在 VLC 播放器中播放 RTSP 流

vlc源码分析 播放流程