<div>Hi :</div> <div> </div> <div> I am trying to stream from a H264 bytestream file(sequcen of NALU).<BR> <BR> Till now, I've already read through the code of livemedia555 and the tutorial about how to streaming H264 written by Mojtaba Hosseini.<BR> <BR> I think I should implement my own H264VideoStreamFramer. This class is to get several bytes from ByteStream, get a NALU from thoese bytes and gives it to H264VideoFUAFragment. This NALU, or its fragment will be passed to H264VideoRTPSink, thus packed and send to the client.<BR> <BR> Am I right in understanding the keypoint?<BR> <BR> <BR> In implementing my own H264VideoStreamFramer, I come across some problems that you might help with. Some of the problems have alreday been discussed on the maillist before, but I sitll can not figure out the solution when streaming a
H264 bitstream file:<BR> <BR> 1.How to calculate the presentationTime for each frame:<BR> <BR> The first frame's presentationTime is get from the wallclock by "gettimeofday()", what about the following frames? <BR> <BR> 2.How to calculate the durationTime?<BR> <BR> DurationTime is usede to calculate the nextTime to send packet, how to calculate it if I am streaming from a H264 bytestream file, <BR> rather than from a live encoder?<BR> <BR> 3.How to judge the current NALU Ends one AccessUnit in the function currentNALUnitEndsAccessUnit()?<BR> <BR> I found some clues in H264's standand document's section 7.4.1.2.4, is it the right place?<BR> <BR> <BR> Any help will be apprecaiated!<BR> Thanks.<BR>
<BR>B.R.<BR>Felix.Xu<BR>Mar.22.2008</div><p> 
<hr size=1><a href="http://cn.mail.yahoo.com/"> ÑÅ»¢ÓÊÏ䣬ÄúµÄÖÕÉúÓÊÏ䣡</a>