CTS 、PTS、DTS
- stts
According to STTS box, the DTS of each sample can be calculated. Where sample_delta is an integer that gives the delta of these samples in the timescale of the media.
For example, entry_count=1,sample_count=5,sample_delta=1024, then DTS of the five samles are respectively : 0 1024 2048 3072 4096.
DT=DTS/timescale in mdhd.
- ctts
CTTS box stores the difference between the composition time and decode time of each sample. If there is no CTTS box, then CTS is equal to DTS, otherwise CTS=DTS+CTTS.(timescale in mdhd box).
- elst
Presentation times are in the movie timeline, that is they are composition times after the application of any edit list for the track.
segment_duration: