<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div>But in the second case, even if I din't parse the data, and every nalu is started with start code, but live555 worked correctly.</div><div>The h264 data client recieved doesn't have start code. So live555 has removed them?</div><br><br><br><br><div></div><div id="divNeteaseMailCard"></div><br>At 2014-05-29 09:42:15, "Ross Finlayson" <finlayson@live555.com> wrote:<br> <blockquote id="isReplyContent" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><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></blockquote></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>