YuanDa.Yu
YuanDa.Yu

Reputation: 127

Which box of fmp4 file contains CTTS information similar to that of ordinary MP4 file?

I converted fmp4 files into TS files by imitating the code of converting MP4 files into TS files. I encountered a problem: There is CTTS box in MP4 file, but there is no CTTS box in fmp4 file. The information inside CTTS (PTS = STTS + CTTS) is needed when calculating video PTS. What should I do? My h264 frame has no B frame. Do I need a CTTS box?

Upvotes: 0

Views: 554

Answers (1)

szatmary
szatmary

Reputation: 31110

fmp4 encodes timestamps, flags and sizes in the trun box

Upvotes: 1

Related Questions