[Mp4-tech] Ask for help in streaming H264 bitstream using RTP

Felix xuwei_felix yahoo.com.cn
Tue Mar 25 12:11:43 EDT 2008


Hi All:
    I am trying to stream from a H264 bytestream file(a sequence of NALUs in Annex B format).
    I come across some problems that you might help with. 
    Some similar problems might have alreday been discussed on the maillist before, but I sitll can not figure out the solution when streaming a H264 bitstream file:
   1.How to calculate the presentationTime for each frame:
     The first frame's presentationTime is get from the wallclock by "gettimeofday()", what about the following frames? 
   2.How to calculate the DurationTime?
     DurationTime is usede to calculate the nextTime to send packet, how to calculate it if I am streaming from a H264 bytestream file, rather than from a live encoder? Is the DurationTime the reciprocal of Frame Rate?
   3.How to judge the current NALU Ends one AccessUnit in the function currentNALUnitEndsAccessUnit()?
     I found some clues in H264's standand document's section 7.4.1.2.4, is it the right place?
   Any help will be apprecaiated!
   Thanks.
B.R.
Felix.Xu
---------------------------------
 ÑÅ»¢ÓÊÏ䣬ÄúµÄÖÕÉúÓÊÏ䣡
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/mp4-tech/attachments/20080325/48c39d2e/attachment.html


More information about the Mp4-tech mailing list