The h.264 hardware compression card procedures NALU's from captured video.
I am trying to wrap the NALU's into FLV and I almost succeed.
I don't know how to fill the Composition Time field in FLV for each NALU.
According to the FLV spec, http://download.macromedia.com/f4v/video_file_format_spec_v10_1.pdf, E.4.3.1.
CompositionTime Composition time offset
See ISO 14496-12, 8.15.3 for an explanation of composition times. The offset in an FLV file is always in milliseconds
Then look into the ISO 14496-12,8.15.3 , Page 24 and 26
provides the offset between decoding time and composition time. Since decoding time must be less than the composition time, the offsets are expressed as unsigned numbers such that CT(n) = DT(n) + CTTS(n) where CTTS(n) is the (uncompressed) table entry for sample n.
How can I know the DT and CTTS in each NALU? or how to caculate the CT without DT and CTTS?
Thank you