[Live-devel] H264VideoStreamFramer
#TAY KOON HWEE#
TAYK0004 at ntu.edu.sg
Mon Jan 1 14:01:33 PST 2007
Hi guys,
i attempted to write the h.264videoframer. Can you guy help me take a look? I am super noivce in this area but thanks to the many help provided so far.
// Additional Implementation for H264videostreamframer
void H264VideoStreamFramer::doGetNextFrame() {
// Try to read as many bytes as will fit in the buffer provided
// (or "fPreferredFrameSize" if less)
if (fPreferredFrameSize > 0 && fPreferredFrameSize < fMaxSize) {
fMaxSize = fPreferredFrameSize;
}
fFrameSize = g_video_enc_rbuf->read(fTo,fMaxSize,0); //g_video_enc_rbuf is a ring buffer which contains the encoded video
// Record the current time as the 'presentation time':
gettimeofday(&fPresentationTime, NULL);
}
I have problem understanding and writing the "currentNALUnitEndsAccessUnit()". Can someone provide more information on this?
Many thanks in advanced.
Regards
zkunhui
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.live555.com/pipermail/live-devel/attachments/20070101/2922a22d/attachment.html
More information about the live-devel
mailing list