Membrane.MP4.Payload (Membrane MP4 format v0.7.0) View Source

MP4 payload description.

Only a payloaded stream can be muxed into MP4 container.

Link to this section Summary

Types

t()

MP4 payload description.

Link to this section Types

Specs

t() :: %Membrane.MP4.Payload{
  content: struct(),
  height: non_neg_integer(),
  timescale: pos_integer(),
  width: non_neg_integer()
}

MP4 payload description.

Contains the following fields:

  • content - a struct with content-specific information
  • timescale - used to express sample durations within MP4. Each sample duration should be a multiply of the timescale for good timing accuracy. Expressed in ticks per second.
  • height - frame height in pixels, should be set to 0 for non-visual streams
  • width - frame width in pixels, should be set to 0 for non-visual streams