简体   繁体   English

RTSP流未接收到数据(C#和套接字)

[英]RTSP Stream not receiving data (C# and Sockets)

---------------REQUEST-------------------
DESCRIBE rtsp://192.168.1.201:554 RTSP/1.0
CSeq: 1
User-Agent: Dummy
Accept: application/sdp

----------------------------------


-----------------RESPONSE-----------------
RTSP/1.0 200 OK
CSeq: 1
Date: Wed, Mar 22 2000 05:32:28 GMT
Server: RTSP Server (v1.2.3)
Content-Base: rtsp://192.168.1.201:554/
Content-Type: application/sdp
Content-Length: 440

v=0
o=H.264 0 0 IN IP4 192.168.1.201
s=RTSP Server (v1.2.3)
c=IN IP4 0.0.0.0
i=SP5562HSM
t=0 0
a=range:npt=now-
a=control:*
a=etag:1234567890
m=video 0 RTP/AVP 96
b=AS:1500
a=rtpmap:96 H264/90000
a=control:trackID=0
a=fmtp:96 packetization-mode=0;profile-level-id=42001E;sprop-parameter-sets=Z0IA
HukCg/I=,aM44gA==
a=x-dimensions:320,240
a=sendonly
m=audio 0 RTP/AVP 0
a=rtpmap:0 PCMU/8000
a=control:trackID=1
a=sendonly

----------------------------------
---------------REQUEST-------------------
SETUP rtsp://192.168.1.201:554/trackID=0 RTSP/1.0
CSeq: 2
Transport: RTP/AVP;unicast;client_port=58830-58831
User-Agent: Dummy

----------------------------------


-------------RESPONSE---------------------
RTSP/1.0 200 OK
CSeq: 2
Date: Wed, Mar 22 2000 05:32:29 GMT
Server: RTSP Server (v1.2.3)
Session: 2154251319;timeout=80
Transport: RTP/AVP;unicast;client_port=58830-58831;server_port=6004-6005



----------------------------------
SESSION:  2154251319;
SERVER PORT (inp): 6004
---------------REQUEST-------------------
SETUP rtsp://192.168.1.201:554/trackID=1 RTSP/1.0
CSeq: 3
Session: 2154251319;
Transport: RTP/AVP;unicast;client_port=58835-58836
User-Agent: Dummy

----------------------------------


----------------RESPONSE------------------
RTSP/1.0 200 OK
CSeq: 3
Date: Wed, Mar 22 2000 05:32:32 GMT
Server: RTSP Server (v1.2.3)
Session: 2154251318;timeout=80
Transport: RTP/AVP;unicast;client_port=58835-58836;server_port=6002-6003



----------------------------------
---------------REQUEST-------------------
PLAY rtsp://192.168.1.201:554/ RTSP/1.0
CSeq: 4
----------------------------------


----------------RESPONMSE------------------
RTSP/1.0 200 OK
CSeq: 4
Date: Wed, Mar 22 2000 05:32:33 GMT
Server: RTSP Server (v1.2.3)
Session: 2154251318;timeout=80
Range: npt=now-


----------------------------------

This is a log of my requests and responses. 这是我的请求和响应的日志。 I have a separate thread listening on port 58830 accepting udp packets (Tested sending udp from another computer and were received). 我在端口58830上侦听一个接受udp数据包的单独线程(已测试从另一台计算机发送udp并已接收)。

Wireshark shows the requests and response but no udp packets. Wireshark显示请求和响应,但没有udp数据包。 I looked at the back and forth between server and vlc and my request are almost identical but I still receive no udp video data 我看了看服务器与vlc之间的来回交互,我的请求几乎相同,但是我仍然没有收到udp视频数据

Your SDP File's IN ADDR seems invalid 0.0.0.0... 您的SDP文件的IN ADDR似乎无效0.0.0.0 ...

Some stacks use the information in the SDP and this could explain why you are not receiving any packets on the address your are listening on. 一些堆栈使用SDP中的信息,这可以解释为什么您在监听的地址上没有收到任何数据包。

Also it looks like you are doing multicast, have you ensured you setup the socket correctly before hand? 而且看起来您正在执行多播,是否已事先确保正确设置了套接字?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM