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

ExMP4

Hex.pm API Docs

ISO-MP4 reader and writer.

This package contains MPEG-4 specifications defined in parts:

  • ISO/IEC 14496-12 - ISO Base Media File Format (QuickTime, MPEG-4, etc)
  • ISO/IEC 14496-14 - MP4 file format

This package is an alternative to and inspired from membrane_mp4_plugin. This package differs from the membrane_mp4_plugin in that it allows to manipulate mp4 files without the usage of membrane pipelines.

Installation

The package can be installed by adding ex_mp4 to your list of dependencies in mix.exs:

def deps do
  [
    {:ex_mp4, "~> 0.6.0"}
  ]
end

API

The API is not yet stable, so breaking changes may occur when upgrading minor version.

Usage

check the examples folder for usage.

Summary

Functions

Get the size of the header of a full box.

Get the header size of a box.

Types

@type duration() :: non_neg_integer()
@type offset() :: integer()
@type timescale() :: Ratio.t() | integer()

Functions

@spec base_date() :: DateTime.t()
@spec full_box_header_size() :: integer()

Get the size of the header of a full box.

@spec header_size() :: integer()

Get the header size of a box.

@spec movie_timescale() :: integer()