Membrane.MPEGTS.Muxer.TS (Membrane MPEG-TS Plugin v0.5.0)

View Source

Module responsible for wrapping PES and PSI into TS packets.

Summary

Functions

Registeres new Program ID in the MPEG-TS packets stream.

Returns new instance of MPEG-TS packets serializer.

Serializes Program Specific Information, like Program Association Tables or Program Mapping Table.

Types

t()

@opaque t()

Functions

add_pid(state, pid)

@spec add_pid(t(), non_neg_integer()) :: t()

Registeres new Program ID in the MPEG-TS packets stream.

new()

@spec new() :: t()

Returns new instance of MPEG-TS packets serializer.

serialize_pes(pes, pid, state, is_keyframe, is_first_part \\ true)

@spec serialize_pes(binary(), non_neg_integer(), t(), boolean(), boolean()) ::
  {[binary()], t()}

Serializes Packetized Elementry Stream.

serialize_psi(payload, pid, state)

@spec serialize_psi(binary(), non_neg_integer(), t()) :: {[binary()], t()}

Serializes Program Specific Information, like Program Association Tables or Program Mapping Table.