<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><blockquote type="cite"><div bgcolor="#ffffff" text="#000000"><blockquote cite="mid:EB0282A6-36F5-4673-B102-8C0238AFACC2@live555.com" type="cite"><div>That's a possibility.  However a more likely cause of problems
        like this is that you are setting "fPresentationTime"
        incorrectly for one or both of your audio and video substreams -
        so they end up being non-synchronized at the receiver (VLC) end.</div>
      <div><br>
      </div>
      <div>For each frame delivered by your input source,
        "fPresentationTime" must be set properly, and must be aligned
        with 'wall clock' time - i.e., the time that you'd get by
        calling "gettimeofday()".</div>
    </blockquote>
    <br>
    I do set fPresentationTime using gettimeofday() in my implementation
    of DeviceSource. It's the same class for both video and audio.<br></div></blockquote><div><br></div></div>That's good.  Nonetheless, the symptoms you describe are consistent with bad presentation times, so - just to be sure - I suggest that you try running "testRTSPClient" as your client application, and check that the frame presentation times are sane.<div><br></div><div>Also, because you report that you can stream video-only, but have a problem only when you try to stream both audio and video, I suggest that you try streaming audio-only.</div><br><br><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">Ross Finlayson<br>Live Networks, Inc.<br><a href="http://www.live555.com/">http://www.live555.com/</a></span></span>
</div>
<br></body></html>