I tried the "H264VideoStreamDiscreteFramer" first and got the following:

Warning: Invalid 'nal_unit_type': 0. Does the NAL unit begin with a MPEG 'start code' by mistake?

Well yes, apparently it does. Note that in H.264 (unlike MPEG-1, 2 or 4), MPEG 'start codes' are supposed to be used only when H.264 data is delivered as a stream.

If your H.264 encoder is trying to deliver one NAL-unit-at-a-time, then you need to:
1/ Stop having it prepend the 0x00000001 start code before each NAL unit, and
2/ Use  "H264VideoStreamDiscreteFramer", not "H264VideoStreamFramer".


With the "H264VideoStreamFramer" and BANK_SIZE set to 2000000, I get the following for a few seconds while video plays:

I don't see any problem with this debugging output, *except* that if contains no timing information in the SPS. Therefore, "H264VideoStreamFramer" has no choice but to assume a 'default' frame rate of 25 fps.

Because you are, in fact, trying to deliver a different frame rate than this, then this is another reason why you need to be using "H264VideoStreamDiscreteFramer" (therefore, without any MPEG 'start codes' in the input data), rather than "H264VideoStreamFramer".
--

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

Reply via email to