类 SttsBox


  • public class SttsBox
    extends Box
    Decoding Time to Sample Box,时间戳和Sample映射表 **********************************************************************************************************

    BoxSize :24 BoxType :stts EntryCount :1 SampleCount :87 SampleDelta :512

    以上说明该视频包含87帧数据,每帧包含512个采样。总共512*87=44544个采样。 Duration / TimeScale = 44544 / 12288 = 3.625秒 正是我们的视频播放长度。 12288 / 512 = 24 p/s (帧率)。 **********************************************************************************************************

    • 构造器详细资料

      • SttsBox

        public SttsBox()
    • 方法详细资料

      • getEntryCount

        public long getEntryCount()
      • setEntryCount

        public void setEntryCount​(long entryCount)
      • getSampleCount

        public int getSampleCount()
      • setSampleCount

        public void setSampleCount​(int sampleCount)
      • getSampleDelta

        public int getSampleDelta()
      • setSampleDelta

        public void setSampleDelta​(int sampleDelta)