View Source Membrane.G711.FFmpeg.Encoder (Membrane G711 FFmpeg Plugin v0.1.0)

Membrane element that encodes raw audio frames to G711 format (only A-law is supported). It is backed by encoder from FFmpeg.

The element expects that each received buffer has whole samples, so the parser (Membrane.Element.RawAudio.Parser) may be required in a pipeline before the encoder. The amount of samples in a buffer may vary.

Additionally, the encoder has to receive proper stream_format (see accepted format on input pad) before any encoding takes place.

Pads

:input

Accepted formats:

%RawAudio{channels: G711.num_channels(), sample_rate: G711.sample_rate(), sample_format: :s16le}
Direction::input
Availability::always
Flow control::auto

:output

Accepted formats:

%G711{encoding: :PCMA}
Direction::output
Availability::always
Flow control::auto