<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3268" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=413445609-26102008><FONT face=Arial color=#0000ff size=2>I
think its beacuse both are trying to use the same port
(8554)</FONT></SPAN></DIV>
<DIV> </DIV><!-- Converted from text/rtf format -->
<P dir=ltr><SPAN lang=en-us><FONT face=Arial
size=2>Regards,</FONT></SPAN></P><BR>
<P dir=ltr><SPAN lang=en-us><FONT face=Arial size=2>Amit
Yedidia</FONT></SPAN></P>
<P dir=ltr><SPAN lang=en-us><FONT face=Arial size=2>Elbit System
Ltd.</FONT></SPAN></P>
<P dir=ltr><SPAN lang=en-us><FONT face=Arial size=2>Email:
amit.yedidia@elbitsystems.com</FONT></SPAN></P>
<P dir=ltr><SPAN lang=en-us><FONT face=Arial size=2>Tel:
972-4-8318905</FONT></SPAN></P>
<P dir=ltr><SPAN lang=en-us><FONT face=Arial
size=2>----------------------------------------------------------</FONT></SPAN></P>
<P dir=ltr><SPAN lang=en-us></SPAN><SPAN lang=he></SPAN></P>
<DIV> </DIV><BR>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> live-devel-bounces@ns.live555.com
[mailto:live-devel-bounces@ns.live555.com] <B>On Behalf Of </B>Mat
Laibowitz<BR><B>Sent:</B> Sunday, October 26, 2008 11:53 AM<BR><B>To:</B>
live-devel@ns.live555.com; mlaibow.davinci@gmail.com<BR><B>Subject:</B> Re:
[Live-devel] rtsp client and server in the same app<BR></FONT><BR></DIV>
<DIV></DIV>A little more info. It is not the SDP request that fails, it is the
OPTIONS request that returns NULL.<BR>I added a check fro null after the
getOptionsRequest as shown below. And it returns NULL when called in the same
program as starting a RTSP server.<BR>So the actual error message is the same,
but it is from the OPTIONS request and not the SDP
request.<BR>-mat<BR><BR>Created Client:
0xc3b98 <BR>Sending request: OPTIONS rtsp://<A
href="http://18.85.45.131:8554/videoStream">18.85.45.131:8554/videoStream</A>
RTSP/1.0
<BR>CSeq:
1
<BR>User-Agent: spinner_video_control (LIVE555 Streaming Media
v2008.09.02)
<BR>
<BR>
<BR>RTSP "OPTIONS" request failed:Failed to read response: Cannot assign
requested
address
<BR>Sending request: DESCRIBE rtsp://<A
href="http://18.85.45.131:8554/videoStream">18.85.45.131:8554/videoStream</A>
RTSP/1.0
<BR>CSeq:
2
<BR>Accept:
application/sdp <BR>User-Agent: spinner_video_control (LIVE555 Streaming
Media
v2008.09.02)
<BR>
<BR>-------------------------------------------------------
<BR>
<BR>Failed to get a SDP description from URL "rtsp://<A
href="http://18.85.45.131:8554/videoStream">18.85.45.131:8554/videoStream</A>":
Failed to read response: Cannot assign requested
address
<BR>/<BR><BR> if (sendOptionsRequest) {<BR> // Begin
by sending an "OPTIONS" command:<BR> char*
optionsResponse<BR> =
getOptionsResponse(ourClient, rtspUrl, username,
password);<BR> if (sendOptionsRequestOnly)
{<BR> if (optionsResponse == NULL)
{<BR> *env << clientProtocolName << "
\"OPTIONS\" request failed: "<BR>
<< env->getResultMsg() <<
"\n";<BR> } else {<BR> *env
<< clientProtocolName << " \"OPTIONS\" request returned:
"<BR> << optionsResponse
<< "\n";<BR>
}<BR> return
shutdown(FAILURE);<BR> }<BR>
if(optionsResponse == NULL) {<BR> *env <<
clientProtocolName << " \"OPTIONS\" request failed:" <<
env->getResultMsg() << "\n";<BR> } else
{<BR> *env << clientProtocolName << "
\"OPTIONS\" request returned: "<BR>
<< optionsResponse << "\n"; <BR>
}<BR> delete[] optionsResponse;<BR> }<BR><BR><BR>
<DIV class=gmail_quote>On Sun, Oct 26, 2008 at 5:20 AM, Mat Laibowitz <SPAN
dir=ltr><<A
href="mailto:mlaibow.davinci@gmail.com">mlaibow.davinci@gmail.com</A>></SPAN>
wrote:<BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">So
I have made it pretty far referencing the complete source code and the test
programs.<BR>But I am a bit stuck on one issue.<BR>I have built a RTSP
server with a custom FrameSource that talks to my hardware for
encoding.<BR>This works great, it uses the background read handling and can
be received by openRTSP or mplayer or vlc or quicktime without
fail.<BR><BR>I have also created a custom client based on openRTSP that
talks to my hardware to decode the stream and display it on the framebuffer
or record it to a file. This also works great and when the two programs are
on different nodes the client can receive from the server.<BR><BR>If I put
them both on the same node, they also work, provided that I turn off the
connection to the hardware enc/dec in one of the programs (the client will
just record the mpeg4 stream to file and not decode it and display
it).<BR>This is because of a limit of the platform that I can only access
the hardware codec from one process/program.<BR><BR>So I am trying to
combine the client and the server in one application.<BR>The code is
essentially the same, it just uses one environment and one call to the task
loop.<BR><BR>The RTSP server starts up fine and I can receive the video
anywhere including with a version of the same application with the server
and hardware decoding turned off.<BR><BR>However, the client always fails
when started from the same program as the server.<BR>The error message
is:<BR>Failed to get a SDP description from URL "rtsp://<A
href="http://18.85.45.131:8554/videoStream"
target=_blank>18.85.45.131:8554/videoStream</A>":
<BR> Failed to read response: Cannot assign requested address<BR><BR>I
am guessing that the client somehow is trying to use some resource that is
already in use by the server. But I am not sure what that can be. Any help
would be greatly appreciated. I thought it was a port or sockets problem at
first, but one is a client and one is a server, and they both work if they
are in separate programs on the same device.<BR><BR>Thanks for a great
system, I am quite happy to have my devices streaming video between them, I
just need to solve this one integration issue and it will be great.<BR><FONT
color=#888888><BR>-mat<BR></FONT></BLOCKQUOTE></DIV><BR></BLOCKQUOTE></BODY>
<DIV><STRONG><FONT color=#000080 size=2></FONT></STRONG> </DIV>
<DIV align=left><STRONG><FONT face=Arial color=#000080 size=2>The information in
this e-mail transmission contains proprietary and business <BR>sensitive
information. Unauthorized interception of this e-mail may constitute <BR>a
violation of law. If you are not the intended recipient, you are hereby
<BR>notified that any review, dissemination, distribution or duplication of this
<BR>communication is strictly prohibited. You are also asked to contact the
sender <BR>by reply email and immediately destroy all copies of the original
message.<BR></FONT></STRONG></DIV>
</HTML>