[Live-devel] more help on h.264

#TAY KOON HWEE# TAYK0004 at ntu.edu.sg
Wed Jan 3 06:44:01 PST 2007


Hi Ross,
 
thanks for helping me with the h.264 framer. Few more questions before I test out the framer.
 
1) "currentNALUnitEndsAccessUnit()" - for this boolean function, how do we know whether a NAL unit is the last unit in a frame? How different is this NAL unit so that i can write a IF statement
 
2) My teammate is still working on the encoder so I can only test with a encoded file. The file is using Annex B file format. Do I have to amend the previous framer which i posted to take into account?
 
// 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);
}

Many thanks again. Hopefully I can make it by dateline
 
Regards.
 
Zkunhui
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.live555.com/pipermail/live-devel/attachments/20070103/f46dc195/attachment.html 


More information about the live-devel mailing list