[Live-devel] mplayer not playing stream
Ross Finlayson
finlayson at live555.com
Wed Apr 18 15:06:24 PDT 2012
> I am currently testing Live555 based application on Freescale’s i.MX51 platform, the camera frames are encoded by Hardware encoder (H.264 format). The encoded frames are sent to deliverFarme without any modifications. After this I am streaming over UDP.
>
> With reference is taken from DeviceSource.cpp, I am able to stream but following warnings are displayed continuously.
>
> ....
> Warning: Invalid 'nal_unit_type': 0. Does the NAL unit begin with a MPEG 'start code' by mistake?
The problem here is (probably) that you are feeding your "H264VideoStreamDiscreteFramer" object with NAL units that begin with MPEG start codes (i.e., 0x00 0x00 0x00 0x01). You must not do this. Instead, if (as appears to be the case) your encoder delivers NAL units that begin with MPEG start codes, you must make sure that you don't copy those when your "FramedSource" subclass does its delivery. (Don't forget to adjust "fFrameSize" accordingly.)
(Also, your version of the "LIVE555 Streaming Media" code is a little out of date. I recommend upgrading.
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/20120419/4d0f8d22/attachment.html>
More information about the live-devel
mailing list