[Live-devel] x264 nal unist and H264VideoStreamDiscreteFramer
Ross Finlayson
finlayson at live555.com
Sat Jan 21 13:20:46 PST 2012
> Warning: Invalid 'nal_unit_type': 0. Does the NAL unit begin with a MPEG 'start code' by mistake?
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.
Most likely, the H.264 NAL units that you are (trying to) feed into the "H264VideoStreamDiscreteFramer" begin with a MPEG 'start code' (0x00000001 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.)
Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20120121/42a4df64/attachment.html>
More information about the live-devel
mailing list