View Source Membrane.FLV.Muxer (Membrane FLV Plugin v0.12.0)

Element for muxing AAC and H264 streams into FLV format.

Input pads are dynamic, but you nend to connect them before transitioning to state playing.

Due to limitations of the FLV format, only one audio and one video stream can be muxed and they both need to have a stream_id of 0. Therefore, please make sure you only use the following pads:

  • Pad.ref(:audio, 0)
  • Pad.ref(:video, 0)

Pads

:video

Accepted formats:

%H264{stream_structure: structure} when H264.is_avc(structure)
Direction::input
Availability::on_request
Flow control::manual
Demand unit::buffers

:audio

Accepted formats:

%AAC{encapsulation: :none, config: {:audio_specific_config, _config}}
Direction::input
Availability::on_request
Flow control::manual
Demand unit::buffers

:output

Accepted formats:

%Membrane.RemoteStream{content_format: FLV}
Direction::output
Availability::always
Flow control::manual
Demand unit:nil