ExMP4.Box.Stbl (MP4 Reader and Writer v0.10.0)

View Source

A module representing an stbl box.

The sample table contains all the time and data indexing of the media samples in a track. Using the tables here, it is possible to locate samples in time, determine their type (e.g. I‐frame or not), and determine their size, container, and offset into that container.

Summary

Functions

Gets the next sample metadata from the sample table.

Types

t()

@type t() :: %ExMP4.Box.Stbl{
  _duration: term(),
  _idx: term(),
  co64: ExMP4.Box.Co64.t() | nil,
  ctts: ExMP4.Box.Ctts.t() | nil,
  stco: ExMP4.Box.Stco.t() | nil,
  stsc: ExMP4.Box.Stsc.t(),
  stsd: ExMP4.Box.Stsd.t(),
  stss: ExMP4.Box.Stss.t() | nil,
  stsz: ExMP4.Box.Stsz.t() | nil,
  stts: ExMP4.Box.Stts.t(),
  stz2: ExMP4.Box.Stz2.t() | nil
}

Functions

next_sample(stbl)

@spec next_sample(t()) :: {ExMP4.SampleMetadata.t() | nil, t()}

Gets the next sample metadata from the sample table.

The return type is a tuple with the first element being the sample metadata and the second element is the sample table after removing the extracted sample.

If there's no more samples, the first element will be nil.