<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>In each case - because your input source is H.264 video - your input source object (i.e., your subclass of "FramedSource") must deliver NAL units - *without* any 'start code' - one at a time to a "H264VideoStreamDiscreteFramer" (*not* a "H264VideoStreamFramer").</div><br><div><blockquote type="cite"><div style="line-height: 1.7; font-size: 14px; font-family: Arial;"><div> One is living video, other device transfer their h264 data to my system, I copied them to one queue, and the framed source would get one sample every time, these sample is h264 nalu, and isn't add start code (0x00,0x00,0x00,0x01).</div></div></blockquote><div><br></div>As noted above, you must deliver one NAL unit at a time - without a start code - to a "H264VideoStreamDiscreteFramer".</div><div><br></div><div><br><blockquote type="cite"><div style="line-height: 1.7; font-size: 14px; font-family: Arial;"><div> Other is VOID, every time video framed source would read one sample in mp4 file. This sample contains more than one nalu, and each nalu would be started with (0x00,0x00,0x00,0x01)</div></div></blockquote><div><br></div>In this case, you need to parse the input data, so that (as above) you are delivering one NAL unit at a time - without a start code - to a "H264VideoStreamDiscreteFramer".</div><div><br></div><div>The data that gets delivered to a "H264VideoRTPSink" - and thus across the network - must *never* contain a start code!</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; "><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; ">Ross Finlayson<br>Live Networks, Inc.<br><a href="http://www.live555.com/">http://www.live555.com/</a></span></span>
</div>
<br></body></html>