<div>Sorry. You are right.</div><div>š</div><div>In x264.h written:</div><div>int b_annexb;š /* if set, place start codes (4 bytes) before NAL units,<br />ššššššššššššššššššššššš * otherwise place size (4 bytes) before NAL units. */</div><div>Thus in any case, the first 4 bytes should be removed.</div><div>š</div><div>There is also an option: int b_repeat_headers;š /* put SPS/PPS before each keyframe */. It should be set in 0?</div><div>22.01.2012, 01:20, "Ross Finlayson" <finlayson@live555.com>:</div><blockquote type="cite"><div><blockquote type="cite"><div>Warning: Invalid 'nal_unit_type': 0. šDoes the NAL unit begin with a MPEG 'start code' by mistake?</div></blockquote>This message means exactly what it says (and you can very easily see - in the "H264VideoStreamDiscreteFramer" source code - where/why it's displayed). šRemember, You Have Complete Source Code.</div><div>Most likely, the H.264 NAL units that you are (trying to) feed into the "H264VideoStreamDiscreteFramer" begin with a MPEG 'start code' (0x<span>00000001</span> or 0x000001). šYou must not do this. šInstead, you need to skip over these 'start code' bytes before feeding the NAL unit data into theš"H264VideoStreamDiscreteFramer". š(Remember also to reduce "fFrameSize" accordingly.)</div><br /><br /><div><span style="border-collapse:separate;font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;line-height:normal;text-transform:none;font-size:medium;"><span style="border-collapse:separate;font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;line-height:normal;text-transform:none;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 /><p>_______________________________________________<br />live-devel mailing list<br /><a href="mailto:live-devel@lists.live555.com">live-devel@lists.live555.com</a><br /><a href="http://lists.live555.com/mailman/listinfo/live-devel">http://lists.live555.com/mailman/listinfo/live-devel</a></p></blockquote>