<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><blockquote type="cite"><div>I'm try to stream live video using X264 and live555. Currently, what I do is: (i) whenever doGetNextFrame() is called, I read a frame from a local YUV file, and encode it into one or multiple NAL units, and (ii) whenever deliverFrame() is called I copy all the NALs to the buffer</div></blockquote><div><br></div>This is a mistake. You should instead be copying ***one NAL unit at a time*** to your downstream object (which should be a "H264VideoStreamDiscreteFramer").</div><div><br></div><div><br><blockquote type="cite"><div>fDurationInMicroseconds = 33333.33; <br></div></blockquote><div><br></div>BTW, "fDurationInMicroseconds" is an unsigned integer, not a float.</div><div><br></div><div><br><blockquote type="cite"><div>But when playing the RTP/RTSP stream using ffplay</div></blockquote><div><br></div>I suggest that you first test your stream using "testRTSPClient" (and "openRTSP"), before using a 3rd-party RTSP client.</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>