View Source ExMP4.Box.MovieFragment (MP4 Reader and Writer v0.4.0)

A module containing a function for assembling an MPEG-4 movie fragment (moof) box.

Summary

Functions

Link to this function

assemble(fragments, sequence_number)

View Source
@spec assemble([ExMP4.Track.Fragment.t()], integer()) :: ExMP4.Container.t()

Creates a new moof box from the ExMP4.Track.Fragment fragments.

@spec unpack(ExMP4.Container.t()) :: [ExMP4.Track.Fragment.t()]

Unpacks a moof box into a list of ExMP4.Track.Fragment fragments.

Link to this function

update_base_data_offsets(movie_fragment, offsets)

View Source
@spec update_base_data_offsets(ExMP4.Container.t(), %{
  required(track_id :: integer()) => offset :: integer()
}) :: ExMP4.Container.t()