Membrane.MP4.Track (Membrane MP4 plugin v0.9.0) View Source
A module defining a structure that represents an MPEG-4 track.
All new samples of a track must be stored in the structure first in order to build a sample table of a regular MP4 container. Samples that were stored can be flushed later in form of chunks.
Link to this section Summary
Link to this section Types
Specs
t() :: %Membrane.MP4.Track{
content: struct(),
duration: non_neg_integer() | nil,
height: non_neg_integer(),
id: pos_integer(),
movie_duration: non_neg_integer() | nil,
sample_table: Membrane.MP4.Track.SampleTable.t(),
timescale: pos_integer(),
width: non_neg_integer()
}
Link to this section Functions
Specs
current_chunk_duration(t()) :: non_neg_integer()
Specs
finalize(t(), pos_integer()) :: t()
Specs
flush_chunk(t(), non_neg_integer()) :: {binary(), t()}
Specs
new(%{
id: pos_integer(),
content: struct(),
height: non_neg_integer(),
width: non_neg_integer(),
timescale: pos_integer()
}) :: t()
Specs
store_sample(t(), Membrane.Buffer.t()) :: t()