View Source ExMP4.Box.Moof (MP4 Reader and Writer v0.6.0)

A module repsenting an moof box.

The movie fragments extend the presentation in time. They provide the information that would previously have been in the Movie Box.

Summary

Types

@type t() :: %ExMP4.Box.Moof{mfhd: ExMP4.Box.Mfhd.t(), traf: [ExMP4.Box.Traf.t()]}

Functions

Link to this function

update_base_offsets(moof, base_data_offset, base_is_moof)

View Source
@spec update_base_offsets(t(), integer(), boolean()) :: t()

Update the data base offset.

if base_is_moof is false, the base_data_offset is set in the tfhd box and trun boxes updated to include the data_offset starting from 0 for the first trun.

If base_is_moof is true, the base_data_offset of tfhd is set to 0 and the first trun will have base_data_offset as the starting offset.