<html><head><meta http-equiv="Content-Type" content="text/html charset=gb18030"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Because you are streaming from a live source, your first method of setting "fPresentationTime" - i.e., just by calling "gettimeofday()" - is best. However, I doubt that this is the cause of the problems that you are seeing when you are trying to view your stream using VLC.<div><br></div><div>You haven't said anything else about the rest of your application, but you should make sure that your "H264VideoUDPSource" feeds its H.264 NAL units - *without* any preceding 4-byte 'start codes' - to a "H264VideoStreamDiscreteFramer" (*not* a "H264VideoStreamFramer"), and from this into a "H264VideoRTPSink".</div><div><br></div><div>Also, if you are having problems viewing your stream using VLC, I suggest that you first try using "openRTSP" to receive your stream, and record it into a file. Rename the resulting file to have a ".h264" filename suffix, and see if you can play this file using VLC.</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>