Page 1 of 1
DescribeURL failed:No response code in line ""
Posted: 07 Mar 2006 07:43
by supriyas
Hi,
I am trying to send a response to the DESCRIBE packet from VLC client with a RTSP/SDP packet.But the client giving an error stating DescribeURL failed : No response code in line "".
What does this mean? Am I sending something wrong.I just simulated the packet from a VLC server.It starts with "RTSP 200 OK".same as the VLC server sends..then why is the client not sending me a PLAY request?And one more thing, it is taking the last '\r'\n' sequence as data part of RTSP packet instead of taking as a terminating sequence of the SDP packet.Plz help.I m using Red Hat Enterprise 4 Linux. vlc-0.8.4a and want to simulate the straeming server side.
Thanks in advance,
supriya
Posted: 07 Mar 2006 13:59
by The DJ
Please give the EXACT command you are sending.
DescribeURL failed: No response code in line ""
Posted: 08 Mar 2006 06:49
by supriyas
Thanks for taking interest,
After OPTIONS packet I m receivinfg a DESCRIBE packet as:
DESCRIBE rtsp://my_IP:32000/sample.mpg RTSP/1.0\r\n
CSeq: 2\r\n
Accept: application/sdp\r\n
User Agent: VLC MEDIA PLAYER(LIVE.COM Streaming Mediav2004.11.26)\r\n
\r\n
To this I m sending a response as:
RTSP/1.0 200 OK\r\n
Content-type: application/sdp\\r\n
Server: VLC Server\r\n
Content-Length: 289\r\n
CSeq: 2\r\n
Cache-Control: no-cache\r\n
\r\n
and a SDP packet in Continuation as:
v=0\r\n
o=- 1141217402262864 3 IN IP4 127.0.0.0\r\n
t=0 0\r\n
a=tool:vlcv 0.8.1\r\n
c=IN IP4 0.0.0.0/0
m=audio 0 RTP/AVP 14\r\n
a=rtpmap: 14 MPA/90000\r\n
a=control:rtsp://my_IP:32000/sample.mpg/trackid=0\r\n
m=video 0 RTP/AVP 32\r\n
a=rtpmap:32 MPV/90000\r\n
a=control:rtsp://my_IP:32000/sample.mpg/trackid=1\r\n\r\n
I send it and receive fails, with VLC client saying:
DescribeURL failed: No Response code in line""
is it not reaching as expected to the client?
Above packet is one which I've got when I use VLC client and VLC server.
Plz help,
Thanks in advance,
supriya
Posted: 08 Mar 2006 20:05
by The DJ
Wait a minute. What is the OPTIONS that you send. because when there is an error in the earlier command, causing the client to think the previous command is finished, while it actually still contains data, the remaining data isn't flushed, but instead read during the next command.
That might explain such a problem.
DescribeURL failed:No response code in line ""
Posted: 09 Mar 2006 08:14
by supriyas
Hi,
VLC sends:
OPTIONS rtsp://my_IP:32000/sample.mpg RTSP/1.0\r\n
CSeq: 1\r\n
User-Agent: VLC Media Player (LIVE.COM Streaming Media v2004.11.26)\r\n
\r\n
To this I m responding as:
RTSP/1.0 200 OK\r\n
Server: VLC Server\r\n
CSeq: 1\r\n
Content-Length: 0\r\n
\r\n
then it sends DESCRIBE request ( irrespective of however I respond to the OPTIONS, it sends the DESCRIBE). Just after the response to DESCRIBE as I have given in the previous mail, the client immediately sends a TCP [FIN,ACK] packet.Why so? God!
Plz..suggest a way out,
Thanks in advance,
supriya
DescribeURL failed:No response code in line ""
Posted: 09 Mar 2006 08:19
by supriyas
Hey,one more thing..
I m creating th epacket as;
sprintf(g_buffer,"%s%c%c%s%c%c%s%c%c%c%c","RTSP/1.0 200 OK",'\r','\n',"Server: VLC Server",'\r','\n',"CSeq: 1",'\r','\n','\r','\n');
as I found it wasnt treating \r and \n as escape characters otherwise. Is this a correct way to form a packet. These packets look same as those from VLC Server when seen in ethereal.
Thanks,
supriya