<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        text-align:right;
        direction:rtl;
        unicode-bidi:embed;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {mso-style-priority:99;
        mso-style-link:"Plain Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        text-align:right;
        direction:rtl;
        unicode-bidi:embed;
        font-size:10.5pt;
        font-family:Consolas;}
span.PlainTextChar
        {mso-style-name:"Plain Text Char";
        mso-style-priority:99;
        mso-style-link:"Plain Text";
        font-family:Consolas;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:930088606;
        mso-list-type:hybrid;
        mso-list-template-ids:-296582604 -21616880 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
        {mso-level-text:"%1\)";
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        color:#0070C0;}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoPlainText style='text-align:left;direction:ltr;unicode-bidi:embed'>>while(true)<o:p></o:p></p><p class=MsoPlainText style='text-align:left;direction:ltr;unicode-bidi:embed'><span dir=RTL></span><span lang=HE dir=RTL style='font-family:"Arial","sans-serif"'><span dir=RTL></span>>{<o:p></o:p></span></p><p class=MsoPlainText style='text-align:left;direction:ltr;unicode-bidi:embed'><span dir=LTR></span><span dir=LTR></span>>       fWatchVariable = 0;<o:p></o:p></p><p class=MsoPlainText style='text-align:left;direction:ltr;unicode-bidi:embed'>>       dummyTask(NULL); // 100ms<o:p></o:p></p><p class=MsoPlainText style='text-align:left;direction:ltr;unicode-bidi:embed'>>       env->taskScheduler().doEventLoop(&fWatchVariable);<o:p></o:p></p><p class=MsoPlainText style='text-align:left;direction:ltr;unicode-bidi:embed'>>       if (fWatchVariable = 1)<o:p></o:p></p><p class=MsoPlainText style='text-align:left;direction:ltr;unicode-bidi:embed'><span dir=RTL></span><span lang=HE dir=RTL style='font-family:"Arial","sans-serif"'><span dir=RTL></span>>       {<o:p></o:p></span></p><p class=MsoPlainText style='text-align:left;direction:ltr;unicode-bidi:embed'><span dir=LTR></span><span dir=LTR></span>>             printf("\nIn While fWatchVariable=%d,",fWatchVariable);<o:p></o:p></p><p class=MsoPlainText style='text-align:left;direction:ltr;unicode-bidi:embed'>>             if (!mP4LiveSms->mpeg4LiveSource != NULL)<o:p></o:p></p><p class=MsoPlainText style='text-align:left;direction:ltr;unicode-bidi:embed'>>                               mP4LiveSms->mpeg4LiveSource->deliverFrame();<o:p></o:p></p><p class=MsoPlainText style='text-align:left;direction:ltr;unicode-bidi:embed'><span dir=RTL></span><span lang=HE dir=RTL style='font-family:"Arial","sans-serif"'><span dir=RTL></span>>       }<o:p></o:p></span></p><p class=MsoPlainText style='text-align:left;direction:ltr;unicode-bidi:embed'><span lang=HE dir=RTL style='font-family:"Arial","sans-serif"'>>}<o:p></o:p></span></p><p class=MsoPlainText style='text-align:left;direction:ltr;unicode-bidi:embed'><span lang=HE dir=RTL style='font-family:"Arial","sans-serif"'><o:p> </o:p></span></p><p class=MsoPlainText style='text-align:left;direction:ltr;unicode-bidi:embed'>Note that you don't need to test for "if (fWatchVariable == 1)", <o:p></o:p></p><p class=MsoPlainText style='text-align:left;direction:ltr;unicode-bidi:embed'>because we return from "doEventLoop()" only if "fWatchVariable" is <o:p></o:p></p><p class=MsoPlainText style='text-align:left;direction:ltr;unicode-bidi:embed'>not 0.  (I presume that you have some other thread - not running <o:p></o:p></p><p class=MsoPlainText style='text-align:left;direction:ltr;unicode-bidi:embed'>LIVE555 code - that is setting "fWatchVariable" to 1 when new data <o:p></o:p></p><p class=MsoPlainText style='text-align:left;direction:ltr;unicode-bidi:embed'>becomes available.)<o:p></o:p></p><p class=MsoPlainText style='text-align:left;direction:ltr;unicode-bidi:embed'><span lang=HE dir=RTL style='font-family:"Arial","sans-serif";color:#0070C0'><o:p> </o:p></span></p><p class=MsoPlainText style='margin-left:36.0pt;text-align:left;text-indent:-18.0pt;mso-list:l0 level1 lfo1;direction:ltr;unicode-bidi:embed'><![if !supportLists]><span style='color:#0070C0'><span style='mso-list:Ignore'>1)<span style='font:7.0pt "Times New Roman"'>  </span></span></span><![endif]><span dir=LTR></span><span style='color:#0070C0'>How should I call deliverFrame() from the Main thread(DS Graph in a Filter) in order to signal my FramedSource that a new frame is arrived.<o:p></o:p></span></p><p class=MsoPlainText style='text-align:left;direction:ltr;unicode-bidi:embed'><span lang=HE dir=RTL style='font-family:"Arial","sans-serif";color:black'><o:p> </o:p></span></p><p class=MsoPlainText style='text-align:left;direction:ltr;unicode-bidi:embed'><span dir=LTR></span><span dir=LTR></span>>RTSPClientSession[00E79B20]::handleRequestBytes() read 0 new bytes <o:p></o:p></p><p class=MsoPlainText style='text-align:left;direction:ltr;unicode-bidi:embed'>>(of 9836); te<o:p></o:p></p><p class=MsoPlainText style='text-align:left;direction:ltr;unicode-bidi:embed'>>rminating connection!<o:p></o:p></p><p class=MsoPlainText style='text-align:left;direction:ltr;unicode-bidi:embed'><span lang=HE dir=RTL style='font-family:"Arial","sans-serif"'><o:p> </o:p></span></p><p class=MsoPlainText style='text-align:left;direction:ltr;unicode-bidi:embed'>This is strange.  Your client's TCP connection (for RTSP) has <o:p></o:p></p><p class=MsoPlainText style='text-align:left;direction:ltr;unicode-bidi:embed'>unexpectedly ended.  This might not have anything to do with your <o:p></o:p></p><p class=MsoPlainText style='text-align:left;direction:ltr;unicode-bidi:embed'>server's new code.<o:p></o:p></p><p class=MsoPlainText style='text-align:left;direction:ltr;unicode-bidi:embed'><span lang=HE dir=RTL style='font-family:"Arial","sans-serif"'><o:p> </o:p></span></p><p class=MsoPlainText style='text-align:left;direction:ltr;unicode-bidi:embed'>I suggest that you first try to run the *unmodified* <o:p></o:p></p><p class=MsoPlainText style='text-align:left;direction:ltr;unicode-bidi:embed'>"testOnDemandRTSPServer" demo application on your system - streaming <o:p></o:p></p><p class=MsoPlainText style='text-align:left;direction:ltr;unicode-bidi:embed'>from a MPEG-4 Elementary Stream Video - i.e., ".m4e" - file.  Only <o:p></o:p></p><p class=MsoPlainText style='text-align:left;direction:ltr;unicode-bidi:embed'>when you get this running correctly, then you can try modifying it to <o:p></o:p></p><p class=MsoPlainText style='text-align:left;direction:ltr;unicode-bidi:embed'>stream from another kind of input source object.<o:p></o:p></p><p class=MsoPlainText style='text-align:left;direction:ltr;unicode-bidi:embed'><span dir=RTL></span><span lang=HE dir=RTL style='font-family:"Arial","sans-serif"'><span dir=RTL></span>-- <o:p></o:p></span></p><p class=MsoPlainText style='text-align:left;direction:ltr;unicode-bidi:embed'><span dir=LTR></span><span style='color:#0070C0'><span dir=LTR></span>2) I did, testOnDemandRTSPServer works fine I'm streaming the test.m4e  into VLC player on more than one Pc on a local net.<o:p></o:p></span></p><p class=MsoPlainText style='text-align:left;direction:ltr;unicode-bidi:embed'><span style='color:#0070C0'>  The problem is to stream from a live DirectShow filter, I think it's something with synchronized both threads and signaling to live lib when I'm getting a new frame , for the FramedSource::deliverFrame to take the global frame buffer, frame size,etc.<o:p></o:p></span></p><p class=MsoPlainText style='text-align:left;direction:ltr;unicode-bidi:embed'><span style='color:#0070C0'><o:p> </o:p></span></p><p class=MsoPlainText style='text-align:left;direction:ltr;unicode-bidi:embed'><span style='color:#0070C0'>3) Question about the parameters : fPresentationTime, fDurationInMicroseconds what exactly they mean.<o:p></o:p></span></p><p class=MsoPlainText style='text-align:left;direction:ltr;unicode-bidi:embed'><span style='color:#0070C0'>  fPresentationTime Is the different between sample(frame) start and Stop – in my received filter -> pSample->GetTime(&tStart, &tStop);?<o:p></o:p></span></p><p class=MsoPlainText style='text-align:left;direction:ltr;unicode-bidi:embed'><span style='color:#0070C0'>  fDurationInMicroseconds – How do I set this parameter? Is it depand if the stream is VBR or CBR, Or should I set it to 25 fps when I'm using PAL </span>source?<o:p></o:p></p><p class=MsoPlainText style='text-align:left;direction:ltr;unicode-bidi:embed'><span style='color:#0070C0'><o:p> </o:p></span></p><p class=MsoPlainText style='text-align:left;direction:ltr;unicode-bidi:embed'><span style='color:#0070C0'>Thanks,</span><span lang=HE dir=RTL style='font-family:"Arial","sans-serif";color:#0070C0'><o:p></o:p></span></p><p class=MsoPlainText style='text-align:left;direction:ltr;unicode-bidi:embed'>Ross Finlayson<o:p></o:p></p><p class=MsoPlainText style='text-align:left;direction:ltr;unicode-bidi:embed'>Live Networks, Inc.<o:p></o:p></p><p class=MsoPlainText style='text-align:left;direction:ltr;unicode-bidi:embed'>http://www.live555.com/<o:p></o:p></p></div>
<HR><Font face=arial size=2 color=black><I>

LEGAL NOTICE - Unless expressly stated otherwise, this message, its annexes, attachments, appendixes, 
<BR>any subsequent correspondence, and any document, data, sketches, plans and/or other material 
that<BR> is hereby attached, are proprietary confidential and may be legally privileged.<BR>
Nothing in this e-mail is intended to conclude a contract on behalf of Aeronautics or 
<BR>make it subject to any other legally binding commitments, unless the e-mail <BR>
contains an express statement to the contrary or incorporates a formal Purchase Order.<BR>
This transmission is intended for the named addressee only. Unless you are the named addressee (or 
<BR>authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else, any 
<BR>disclosure or copying of the contents of this e-mail or any action taken (or not taken) in reliance on it is 
<BR>unauthorised and may be unlawful. If you are not an addressee, please inform the sender 
immediately.<BR>



</body></html>