Sorry. You are right.
In x264.h written:
int b_annexb; /* if set, place start codes (4 bytes) before NAL units,
* otherwise place size (4 bytes) before NAL units. */
* otherwise place size (4 bytes) before NAL units. */
Thus in any case, the first 4 bytes should be removed.
There is also an option: int b_repeat_headers; /* put SPS/PPS before each keyframe */. It should be set in 0?
22.01.2012, 01:20, "Ross Finlayson" <finlay...@live555.com>:
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.Warning: Invalid 'nal_unit_type': 0. Does the NAL unit begin with a MPEG 'start code' by mistake?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/_______________________________________________
live-devel mailing list
live-devel@lists.live555.com
http://lists.live555.com/mailman/listinfo/live-devel
_______________________________________________ live-devel mailing list live-devel@lists.live555.com http://lists.live555.com/mailman/listinfo/live-devel