ISOMedia.Parser (ISOMedia v0.1.0)

Copy Markdown View Source

Decodes an ISOBMFF binary into a list of ISOMedia.Box structs.

Summary

Functions

Parse binary into {:ok, [%Box{}]}, or {:error, reason} on malformed input.

Functions

parse(binary, opts \\ [])

Parse binary into {:ok, [%Box{}]}, or {:error, reason} on malformed input.

Options:

  • :heuristic (default false) — sniff unknown box types for nested boxes.
  • :offset (default 0) — absolute byte offset the binary begins at; threaded into every box's source_offset so they are absolute even when parsing a slice.