Membrane.MP4.MovieBox (Membrane MP4 plugin v0.9.0) View Source

A module providing a function assembling an MPEG-4 movie box.

The movie box (moov) is a top-level box that contains information about a presentation as a whole. It consists of:

  • exactly one movie header (mvhd atom)

    The movie header contains media-independent data, such as the number of tracks, volume, duration or timescale (presentation-wide).

  • one or more track box (trak atom)

  • zero or one movie extends box (mvex atom)

For more information about movie box and its contents, refer to documentation of Membrane.MP4.MovieBox submodules or to ISO/IEC 14496-12.

Link to this section Summary

Link to this section Functions

Link to this function

assemble(tracks, extensions \\ [])

View Source

Specs

assemble(
  [
    %Membrane.MP4.Track{
      content: term(),
      duration: term(),
      height: term(),
      id: term(),
      movie_duration: term(),
      sample_table: term(),
      timescale: term(),
      width: term()
    }
  ],
  Membrane.MP4.Container.t()
) :: Membrane.MP4.Container.t()