[Live-devel] H264VideoStreamFramer

Ross Finlayson finlayson at live555.com
Mon Jan 1 16:07:44 PST 2007


>   fFrameSize = g_video_enc_rbuf->read(fTo,fMaxSize,0); 
>//g_video_enc_rbuf is a ring buffer which contains the encoded video

This will work only if the 'read()' function returns only a complete 
NAL unit - nothing more and nothing less.

Also, you should really be doing the read asynchronously - e.g., 
using TaskScheduler::turnOnBackgroundReadProcessing()".  Otherwise 
your application won't be able to do any work while your 'read()' 
function is blocked waiting for data.

>I have problem understanding and writing the 
>"currentNALUnitEndsAccessUnit()". Can someone provide more 
>information on this?

An 'access unit' is a complete video frame (which is typically made 
up from several consecutive NAL units).  Your 
"currentNALUnitEndsAccessUnit()" function returns True iff the NAL 
unit that you're currently delivering is the last NAL unit in an 
access unit (video frame).
-- 

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/20070101/22d47252/attachment.html 


More information about the live-devel mailing list