View Source Membrane.File.Sink (Membrane File plugin v0.13.2)
Element that creates a file and stores incoming buffers there (in binary format).
When Membrane.File.SeekEvent
is received, the element starts writing buffers starting
from position
. By default, it overwrites previously stored bytes. You can set insert?
field of the event to true
to start inserting new buffers without overwriting previous ones.
Please note, that inserting requires rewriting the file, what negatively impacts performance.
For more information refer to Membrane.File.SeekEvent
moduledoc.
element-options
Element options
Passed via struct Membrane.File.Sink.t/0
location
Path.t()
Required
Path of the output file
pads
Pads
input
:input
Accepted formats:
_any
Direction: | :input |
Availability: | :always |
Mode: | :pull |
Demand mode: | :manual |
Demand unit: | :buffers |
Link to this section Summary
Types
Struct containing options for Membrane.File.Sink
Link to this section Types
@type t() :: %Membrane.File.Sink{location: Path.t()}
Struct containing options for Membrane.File.Sink
Link to this section Functions
@spec options() :: keyword()
Returns description of options available for this module