View Source ExMP4 (MP4 Reader and Writer v0.4.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.4.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

Types

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

Functions

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