我的 rtsp 方法有什么问题吗? (服务器总是回复459)

发布于 2025-01-05 10:00:14 字数 6440 浏览 0 评论 0原文

抱歉,我的英语不好,

我正在工作 rtsp 通信程序,

此 RTSP 服务器在我的 SETUP 请求上回复 459 错误(不允许聚合操作),

我对此一无所知。

请帮我。我做错了什么?

==== Message Log =====

Connecting.

RequestMessage
DESCRIBE rtsp://xxx.xxx.xxx.xxx:554/racecar_300.wmv RTSP/1.0
CSeq: 2

RTSP/1.0 200 OK
X-Playlist-Gen-Id: 106
X-Broadcast-Id: 0
Content-Length: 5220
Date: Sun, 12 Feb 2012 23:02:31 GMT
CSeq: 2
Server: WMServer/9.5.6001.18281
Supported: com.microsoft.wm.srvppair, com.microsoft.wm.sswitch, com.microsoft.wm.eosmsg, com.microsoft.wm.fastcache, com.microsoft.wm.packetpairssrc, com.micros
oft.wm.startupprofile
Last-Modified: Tue, 22 Jan 2008 22:54:32 GMT
Cache-Control: x-wms-content-size=1222202, max-age=86399, must-revalidate, proxy
-revalidate
Etag: "1222202"

v=0
o=- 201202072042160228 201202072042160228 IN IP4 127.0.0.1
s=Racecar WM 9 Series 300kbps
c=IN IP4 0.0.0.0
b=AS:315
a=maxps:1518
t=0 0
a=control:rtsp://xxx.xxx.xxx.xxx:554/racecar_300.wmv/
a=etag:{67F94DEE-D1E6-A9AF-31C6-64D39ADB876E}
a=range:npt=3.000-34.064
a=recvonly
a=pgmpu:data:application/x-wms-contentdesc,8,language,31,0,,5,title,31,27,Raceca
r%20WM%209%20Series%20300kbps,6,author,31,21,Microsoft%20Corporation,9,copyright,31,57,Copyright%20(C)%20Microsoft%20Corporation.%20All%20rights%20reserved.,44,WMS_CONTENT_DESCRIPTION_SERVER_BRANDING_INFO,31,12,WMServer/9.5,51,WMS_CONTENT_DESCRIPTION_PLAYLIST_ENTRY_START_OFFSET,3,4,3000,47,WMS_CONTENT_DESCRIPTION_PLAYLIST_ENTRY_DURATION,3,5,31064,58,WMS_CONTENT_DESCRIPTION_COPIED_METADATA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:1
m=application 0 RTP/AVP 96
b=RS:0
b=RR:0
a=rtpmap:96 x-wms-rtx/1000
a=control:rtx
a=stream:65536
m=video 0 RTP/AVP 96
b=AS:248
b=X-AV:235
b=RS:0
b=RR:0
a=rtpmap:96 x-asf-pf/1000
a=control:video
a=stream:2

RequestMessage
SETUP rtsp://xxx.xxx.xxx.xxx:554/racecar_300.wmv RTSP/1.0
CSeq: 3
Transport: RTP/AVP;unicast;client_port=4568:4569

RTSP/1.0 459 Aggregate Operation Now Allowed
Date: Sun, 12 Feb 2012 23:02:31 GMT
CSeq: 3
Server: WMServer/9.5.6001.18281
Supported: com.microsoft.wm.srvppair, com.microsoft.wm.sswitch, com.microsoft.wm.eosmsg, com.microsoft.wm.fastcache, com.microsoft.wm.packetpairssrc, com.microsoft.wm.startupprofile

Sorry for my bad english

i'm working to rtsp communicate program

this RTSP server replies 459 error(Aggregate Operation not Allowed) on my SETUP request

I have no idea of this.

please help me. What did I wrong?

==== Message Log =====

Connecting.

RequestMessage
DESCRIBE rtsp://xxx.xxx.xxx.xxx:554/racecar_300.wmv RTSP/1.0
CSeq: 2

RTSP/1.0 200 OK
X-Playlist-Gen-Id: 106
X-Broadcast-Id: 0
Content-Length: 5220
Date: Sun, 12 Feb 2012 23:02:31 GMT
CSeq: 2
Server: WMServer/9.5.6001.18281
Supported: com.microsoft.wm.srvppair, com.microsoft.wm.sswitch, com.microsoft.wm.eosmsg, com.microsoft.wm.fastcache, com.microsoft.wm.packetpairssrc, com.micros
oft.wm.startupprofile
Last-Modified: Tue, 22 Jan 2008 22:54:32 GMT
Cache-Control: x-wms-content-size=1222202, max-age=86399, must-revalidate, proxy
-revalidate
Etag: "1222202"

v=0
o=- 201202072042160228 201202072042160228 IN IP4 127.0.0.1
s=Racecar WM 9 Series 300kbps
c=IN IP4 0.0.0.0
b=AS:315
a=maxps:1518
t=0 0
a=control:rtsp://xxx.xxx.xxx.xxx:554/racecar_300.wmv/
a=etag:{67F94DEE-D1E6-A9AF-31C6-64D39ADB876E}
a=range:npt=3.000-34.064
a=recvonly
a=pgmpu:data:application/x-wms-contentdesc,8,language,31,0,,5,title,31,27,Raceca
r%20WM%209%20Series%20300kbps,6,author,31,21,Microsoft%20Corporation,9,copyright,31,57,Copyright%20(C)%20Microsoft%20Corporation.%20All%20rights%20reserved.,44,WMS_CONTENT_DESCRIPTION_SERVER_BRANDING_INFO,31,12,WMServer/9.5,51,WMS_CONTENT_DESCRIPTION_PLAYLIST_ENTRY_START_OFFSET,3,4,3000,47,WMS_CONTENT_DESCRIPTION_PLAYLIST_ENTRY_DURATION,3,5,31064,58,WMS_CONTENT_DESCRIPTION_COPIED_METADATA_FROM_PLAYLIST_FILE,3,1,1,42,WMS_CONTENT_DESCRIPTION_PLAYLIST_ENTRY_URL,31,15,racecar_300.wmv%0D%0A
a=pgmpu:data:application/vnd.ms.wms-hdr.asfv1;base64,MCaydY5mzxGm2QCqAGLObHQLAAAAAAAACAAAAAECMyaydY5mzxGm2QCqAGLObPoAAAAAAAAAOA
AsAHQAAAAAAFIAYQBjAGUAYwBhAHIAIABXAE0AIAA5ACAAUwBlAHIAaQBlAHMAIAAzADAAMABrAGIAcABzAAAATQBpA
GMAcgBvAHMAbwBmAHQAIABDAG8AcgBwAG8AcgBhAHQAaQBvAG4AAABDAG8AcAB5AHIAaQBnAGgAdAAgACgAQwApACAA
TQBpAGMAcgBvAHMAbwBmAHQAIABDAG8AcgBwAG8AcgBhAHQAaQBvAG4ALgAgAEEAbABsACAAcgBpAGcAaAB0AHMAIAB

yAGUAcwBlAHIAdgBlAGQALgAAAKHcq4xHqc8RjuQAwAwgU2VoAAAAAAAAAK8o5Xb3qPZEhHWICQOCKtI6phIAAAAAAN
B8E2B0p8IBIwMAAAAAAAAAwU0UAAAAANCbnxIAAAAAuAsAAAAAAAACAAAA7gUAAO4FAAC2zAQAtQO/Xy6pzxGO4wDAD
CBTZUUHAAAAAAAAEdLTq7qpzxGO5gDADCBTZQYAFwcAAKlGQ3zg7/xLsik5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A
AAMDvGbxNW88RqP0AgF9cRCsAV/sgVVvPEaj9AIBfXEQrAAAAAAAAAAA3AAAAAAAAAAIAeDdKAUABAACwAAAAAiwALA
AAAEABAACwAAAAAQAYAFdNVjMAAAAAAAAAAAAAAAAAAAAAAAAAAEw5GgHOdfh7jUbREY2CAGCXyaKyJgAAAAAAAAACA
AEAUgYBAAIAZMYDADYmsnWOZs8RptkAqgBizmy8mRIAAAAAAK8o5Xb3qPZEhHWICQOCKtIjAwAAAAAAAAEB

m=audio 0 RTP/AVP 96
b=AS:68
b=X-AV:65
b=RS:0
b=RR:0
a=rtpmap:96 x-asf-pf/1000
a=control:audio
a=stream:1
m=application 0 RTP/AVP 96
b=RS:0
b=RR:0
a=rtpmap:96 x-wms-rtx/1000
a=control:rtx
a=stream:65536
m=video 0 RTP/AVP 96
b=AS:248
b=X-AV:235
b=RS:0
b=RR:0
a=rtpmap:96 x-asf-pf/1000
a=control:video
a=stream:2

RequestMessage
SETUP rtsp://xxx.xxx.xxx.xxx:554/racecar_300.wmv RTSP/1.0
CSeq: 3
Transport: RTP/AVP;unicast;client_port=4568:4569

RTSP/1.0 459 Aggregate Operation Now Allowed
Date: Sun, 12 Feb 2012 23:02:31 GMT
CSeq: 3
Server: WMServer/9.5.6001.18281
Supported: com.microsoft.wm.srvppair, com.microsoft.wm.sswitch, com.microsoft.wm.eosmsg, com.microsoft.wm.fastcache, com.microsoft.wm.packetpairssrc, com.microsoft.wm.startupprofile

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

他不在意 2025-01-12 10:00:14

如果您要实现自己的 RTSP 客户端,请反复阅读 RFC 2326:RTSP 规范 以及 RFC 4566:SDP 规范?另外,您似乎正在与 Windows Media Server 集成,因此 MSDN 是另一个不错的起点。

RTSP 协议基于会话,每个会话都由唯一的 URL 标识。会话将始终具有一个或多个演示流(例如音频、视频、字幕...)。表示流由附加的“a:control=...”后缀标识,该后缀附加到会话本身的 URL 上。

某些命令在会话级别运行,其他命令与表示流一起工作,某些命令可能执行任一操作。 SETUP 命令仅适用于演示流,因此您会收到错误,因为您正在尝试访问会话。每个演示流最终都将位于其自己的 RTP 流上,并且必须单独设置它们。

因此,在您的情况下,如果您想要视频流,您应该发送:

SETUP rtsp://xxx.xxx.xxx.xxx:554/racecar_300.wmv/video RTSP/1.0

If you are implementing your own RTSP client, have you read and reread RFC 2326: RTSP Spec as well as RFC 4566: SDP Spec? Also it appears you are integrating with Windows Media Server, so MSDN is another good place to start.

RTSP protocol is based around sessions, each one identified by a unique URL. A session will always have one or more presentation streams (e.g. audio, video, subtitles...). Presentation streams are identified by an additional "a:control=..." suffix that is tacked onto the URL for the session itself.

Certain commands operate at a session level, other commands work with presentation streams, some commands might do either one. The SETUP command ONLY works with presentation streams, so you are getting back an error because you are trying to access the session. Each presentation stream will end up on its own RTP stream and they must be setup separately.

So in your case if you want video stream, you should be sending:

SETUP rtsp://xxx.xxx.xxx.xxx:554/racecar_300.wmv/video RTSP/1.0
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文