Thanks Ross.

I had tried to neglect the first 4 bytes from the encoded buffer, but it did 
not helped, I had adjusted the fFrameSize accordingly.

Can you please provide me with the pseudo code for handling this.

Regards,
Ashfaque


From: Ross Finlayson 
Sent: Thursday, April 19, 2012 3:36 AM
To: LIVE555 Streaming Media - development & use 
Subject: Re: [Live-devel] mplayer not playing stream

  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/ 




--------------------------------------------------------------------------------
_______________________________________________
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

Reply via email to