<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><blockquote type="cite"><div>This stream is H264 AVC format. I am delivering single NAL units<br>(With AVC start codes) to H264VideoStreamDiscreteFramer</div></blockquote><div><br></div>No! You MUST NOT include 'start codes' (i.e., 0x00 0x00 0x00 0x01) in the NAL units that you feed to a "H264VideoStreamDiscreteFramer". I don't know how much clearer I (and the LIVE555 code) can be about this!</div><div><br><blockquote type="cite"><div> from a<br>Device subclass which in turn feeds to a H264VideoRTPSink;<br></div></blockquote><div>[...]</div><blockquote type="cite"><div>all is well in delivery except when the NAL's look like MPEG NALS <br>00 00 xx xx. (warning nal type:0)</div></blockquote><div><br></div>FYI, you may be using an out-of-date version of our software. If so, please upgrade.</div><div><br></div><div><br><blockquote type="cite"><div> You had mentioned in a <br>previous question there should be no start codes, however the <br>decoder (client side) certainly requires it for immediate play.<br></div></blockquote><div><br></div>That's irrelevant! We're not talking about feeding NAL units to a client; we're talking about feeding them to a "H264VideoStreamDiscreteFramer", which in turn gets fed to a "H264VideoRTPSink", which in turn get transmitted within RTP packets (which according to the IETF-defined payload format for H.264, MUST NOT include start codes). This all happens at the *sender* end - i.e., the server. Once again, the NAL units that you feed to a "H264VideoStreamDiscreteFramer" MUST NOT include start codes.</div><div><br></div><div><br></div><div><blockquote type="cite"><div>Are the start codes somehow reconstructed client side with a<br>proper setup?</div></blockquote><div><br></div><div>The *receiver* end - i.e., the client - receives NAL units that have been packed into RTP packets. Once again, according to the IETF-defined standard payload format for H.264, these NAL units DO NOT include start codes. Instead, the receiving client receives - from the RTP demultiplexor - a sequence of discrete NAL units, each with their size defined. (I.e., the receiving client doesn't need (and doesn't get) start codes, because instead it knows the size of each NAL unit.)</div><div><br></div><div>If the receiver also uses the LIVE555 software, then it would use a "H264VideoRTPSource", which (like all "FramedSource" subclasses) delivers a sequence of 'frames', each with its own length ("frameSize"). In this case, each such 'frame' is a H.264 NAL unit (without a start code). These NAL units would then be fed to a decoder. If the decoder needs a start code in front of each NAL unit, then you would insert it there - i.e., when you feed it to your decoder. If, however, the decoder doesn't need a start code - i.e., if the NAL unit lengths are enough for the decoder - then you don't need to insert one when you feed it to your decoder. I.e., it depends on your decoder.</div></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>