View Source Membrane.FLV.Demuxer (Membrane FLV Plugin v0.3.0)

Element for demuxing FLV streams into audio and video streams. FLV format supports only one video and audio stream. They are optional however, FLV without either audio or video is also possible.

When a new FLV stream is detected, you will be notified with Membrane.FLV.Demuxer.new_stream_notification().

If you want to pre-link the pipeline and skip handling notifications, make sure use the following output pads:

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

pads

Pads

input

:input

Availability :always
Caps Membrane.RemoteStream, restrictions:
  content_format: one_of([nil, Membrane.FLV]),
  type: :bytestream
Demand mode :manual
Demand unit :buffers
Direction :input
Mode :pull
Name :input

video

:video

Availability :on_request
Caps Membrane.H264.RemoteStream, restrictions:
  stream_format: :byte_stream
Demand mode :manual
Demand unit :buffers
Direction :output
Mode :pull
Name :video

audio

:audio

Availability :on_request
Caps Membrane.RemoteStream,
Membrane.AAC.RemoteStream
Demand mode :manual
Demand unit :buffers
Direction :output
Mode :pull
Name :audio

Link to this section Summary

Types

List of formats supported by the demuxer.

Type of notification that is sent when a new FLV stream is detected.

Functions

Returns pads descriptions for Membrane.FLV.Demuxer

Link to this section Types

@type codec_t() :: Membrane.FLV.audio_codec_t() | :H264

List of formats supported by the demuxer.

For video, only H264 is supported Audio codecs other than AAC might not work correctly, although they won't throw any errors.

Link to this type

new_stream_notification_t()

View Source
@type new_stream_notification_t() :: {:new_stream, Membrane.Pad.ref_t(), codec_t()}

Type of notification that is sent when a new FLV stream is detected.

Link to this section Functions

@spec membrane_pads() :: [{Membrane.Pad.name_t(), Membrane.Pad.description_t()}]

Returns pads descriptions for Membrane.FLV.Demuxer