<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 have subclassed FramedSource similarly to the DeviceSource <br>example to accept calls from a separate thread using the <br>signalNewFrameData() method. It parses the mdat data coming<br>from an iPhone mp4 hardware encoder, which should be<br>an AVC H264 Stream. This "file stream" parser  replaces<br>the NAL Lengths with NAL start codes 0x00000001 <br>(and delivers this modified stream buffer to fTO). <br></div></blockquote><div>[...]</div><blockquote type="cite"><div>createNewStreamSource->DeviceSource->return H264VideoStreamFramer<br></div></blockquote><div><br></div>Because your input source is delivering discrete NAL units (i.e., one-at-a-time), then it would be better to use a "H264VideoStreamDiscreteFramer", not a "H264VideoStreamFramer".  Each 'frame' (really "NAL unit") must be delivered to the "H264VideoStreamDiscreteFramer" *without* a preceding start code.</div><div><br></div><div><blockquote type="cite"><div>Unfortunately when extracting this data <br>OnDemandServerMediaSubsession fails to produce any SDP <br>description of the stream, I can only assume this is because <br>the SPS PPS are not being sent in-Band the h264 data from <br>the MP4 mdat contents.<br></div></blockquote></div><div><br></div><div>Yes.  </div><div><br></div><div><br><blockquote type="cite"><div>createNewRTPSink->return H264VideoRTPSink. <br></div></blockquote><div><br></div>This is where you can pass the SPS and PPS NAL units, because they are not present in-band.  Note - in "liveMedia/include/H264VideoRTPSink.hh" - the optional variants of the "createNew()" function, which allow you to pass the SPS and PPS NAL units, either directly, or as a comma-separated pair of Base-64-encoded strings.</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>