[Live-devel] simple NAL unit data streamer

Ross Finlayson finlayson at live555.com
Wed May 16 07:19:47 PDT 2012


> We already have a source which gives us this data(NAL unit data) so, our requirement is, a streamer which will get this NAL unit data and stream it.

If your data source object delivers *discrete* NAL units - i.e., one at a time - instead of in an unstructured byte stream, then you must feed this source into a "H264VideoStreamDIscreteFramer", not a "H264VideoStreamFramer".

Of course, in this case, your input data source object will *not* be a "ByteStreamFileSource".  Instead, it will be a custom subclass of "FramedSource"  (perhaps similar to the "DeviceSource" code) that you have written yourself.

Note also that the H.264 NAL units that you deliver to the "H264VideoStreamDIscreteFramer" MUST NOT begin with a MPEG 'start code' (i.e., 0x00000001).

To transmit this data via RTP, you use a "H264VideoRTPSink" (unmodified), as usual.


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/20120516/78182ed0/attachment.html>


More information about the live-devel mailing list