[Live-devel] unicast onDemand from live source NAL Units

Ross Finlayson finlayson at live555.com
Mon Jan 28 01:20:24 PST 2013


> To use the example data that you used in your last email, this means that the data that you should copy to *fTo should be
> 	09 10 00 00 00 01 67 42 C0 1F F4 02 00 30 D8 08 80 00 01 F4 ...

Oops, it turns out that this wasn't correct.  The "00 00 00 01" in the data is the 'start code', that we shouldn't be including.

In this example, the first NAL unit is just two bytes long:
	09 10
(FYI, it's an "access unit delimiter" NAL unit)

That's ALL that you you should be copying to *fTo at first.

The second NAL unit is 0x20 (i.e., 32) bytes long, and begins
	67 42 C0 1F F4 02 00 30 D8 08 80 00 01 F4 80 00 75 30 70 00 00 0B ...
(FYI, it's a "sequence parameter set" (i.e., SPS) NAL unit)

It's important that you copy only one NAL unit at a time (and, of course, set "fFrameSize" correctly for each).


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/20130128/e4bf20d7/attachment.html>


More information about the live-devel mailing list