对不起,我的英语不好
我正在为 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_FROM_PLAYLIST_FILE,3,1,1,42,WMS_CONTENT_DESCRIPTION_PLAYLIST_ENTRY_URL,31,15,racecar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GkAbwBuAAAAAAAaADk
ALgAwADAALgAwADAALgAyADkAOAAwAAAAGgBXAE0ARgBTAEQASwBOAGUAZQBkAGUAZAAAAAAAFgAwAC4AMAAuADAALg
AwADAAMAAwAAAADABJAHMAVgBCAFIAAAACAAQAAAAAAEBS0YYdMdARo6QAoMkDSPbwAAAAAAAAAEFS0YYdMdARo6QAo
MkDSPYCAAAAAgAWAFcAaQBuAGQAbwB3AHMAIABNAGUAZABpAGEAIABBAHUAZABpAG8AIAA5AAAAKgAgADYANAAgAGsA
YgBwAHMALAAgADQANAAgAGsASAB6ACwAIABzAHQAZQByAGUAbwAgACgAQQAvAFYAKQAgADEALQBwAGEAcwBzACAAQwB
CAFIAAAACAGEBAQAWAFcAaQBuAGQAbwB3AHMAIABNAGUAZABpAGEAIABWAGkAZABlAG8AIAA5AAAAAQAAAAQAV01WM5
EH3Le3qc8RjuYAwAwgU2VyAAAAAAAAAECeafhNW88RqP0AgF9cRCtQzcO/j2HPEYuyAKoAtOIgAAAAAAAAAAAcAAAAC
AAAAAEAzPbPAmEBAgBErAAARR8AAM8FEAAKAACIAAAPAHkuAAABzwXPBQEAAJEH3Le3qc8RjuYAwAwgU2WFAAAwAAAA
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
最佳答案
如果您正在实现自己的 RTSP 客户端,您是否阅读并重新阅读了 RFC 2326: RTSP Spec 和 RFC 4566: SDP Spec ?此外,您似乎正在与 Windows Media Server 集成,因此 MSDN 是另一个不错的起点。
RTSP 协议(protocol)基于 session ,每个 session 都由唯一的 URL 标识。一个 session 总是有一个或多个演示流(例如音频、视频、字幕...)。演示流由附加到 session 本身的 URL 上的附加“a:control=...”后缀标识。
某些命令在 session 级别运行,其他命令与演示流一起工作,某些命令可能执行任一操作。 SETUP 命令仅适用于演示流,因此您将返回错误,因为您正在尝试访问 session 。每个演示流都将在其自己的 RTP 流上结束,它们必须单独设置。
所以在你的情况下,如果你想要视频流,你应该发送:
SETUP rtsp://xxx.xxx.xxx.xxx:554/racecar_300.wmv/video RTSP/1.0
关于rtsp - 我的 rtsp 方法有什么问题? (服务器总是回复 459),我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/9253721/