RTSP1.0/ 404 Stream Not Found

守給你的承諾、 提交于 2019-12-13 03:37:37

问题


I wanna get stream from camera:

DESCRIBE rtsp://192.168.1.200:554/ RTSP/1.0
CSeq: 1
Accept: application/sdpAuthorization: Basic YWRtaW46YWRtaW4=


RTSP/1.0 200 OK
CSeq: 1
Date: Wed, Feb 16 2011 10:17:47 GMT
Content-Base: rtsp://192.168.1.200:554/
Content-Type: application/sdp
Content-Length: 358


v=0
o=RTSP 1297842675200000 1 IN IP4 192.168.1.200
s=RTSP Server
t=0 0
a=range:npt=0-
a=control:*
m=video 0 RTP/AVP 96
c=IN IP4 0.0.0.0
a=rtpmap:96 MP4V-ES/90000
a=framerate:20
a=fmtp:96 profile-level-id=1;config=000001B001000001B50900000100000001200086C4004F0C14103C518F
a=control:track1
m=audio 0 RTP/AVP 0
c=IN IP4 0.0.0.0
a=control:track2

SETUP rtsp://192.168.1.200:554/trackID=1 RTSP/1.0
CSeq: 2
Transport: RTP/AVP/TCP;unicast;interleaved=0-1
Authorization: Basic YWRtaW46YWRtaW4=


**RTSP/1.0 404 Stream Not Found**
CSeq: 2
Date: Wed, Feb 16 2011 10:17:48 GMT

If use the VLC it can work but why do i get the 404?


回答1:


In the SDP a=control:track1 and a=control:track2, whereas in the RTSP setup request you are using trackID=1. VLC is probably then doing this correctly?



来源:https://stackoverflow.com/questions/5015373/rtsp1-0-404-stream-not-found

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!