<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">At least part of the problem here is that you are trying to feed a "imLiveStreamSource" (your new data source class) directly into a "H264VideoRTPSink". You can't do this. "H264VideoRTPSink" objects must be fed from a "H264VideoStreamFramer" (or a "H264VideoStreamDiscreteFramer").<div><br></div><div>Because your data source object is (I presume) delivering H.264 NAL units, your "createNewStreamSource()" function must return a "H264VideoStreamDiscreteFramer". So instead of doing</div><div><span class="Apple-tab-span" style="white-space:pre"> return imLiveStreamSource::createNew(envir(), param);</span></div><div>you should do</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>FramedSource* h264NALSource = <span class="Apple-tab-span" style="white-space: pre; ">imLiveStreamSource::createNew(envir(), param);</span></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>return H264VideoStreamDiscreteFramer::createNew(envir(), h264NALSource);</div><div><br></div><div>Note also that your "imLiveStreamSource" object must deliver NAL units, one at a time, *without* any preceding MPEG start code - i.e., *without* any preceding 0x00 0x00 0x00 0x01 bytes.</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>