View Source Membrane.File.Sink (Membrane File plugin v0.16.0)
Element that creates a file and stores incoming buffers there (in binary format).
When Membrane.File.SeekSinkEvent
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.SeekSinkEvent
moduledoc.
Element options
Passed via struct Membrane.File.Sink.t/0
location
Path.t()
Required
Path of the output file
Pads
:input
Accepted formats:
_any
Direction: | :input |
Availability: | :always |
Flow control: | :manual |
Demand unit: | :buffers |
Summary
Types
Struct containing options for Membrane.File.Sink
Types
@type t() :: %Membrane.File.Sink{location: Path.t()}
Struct containing options for Membrane.File.Sink
Functions
@spec options() :: keyword()
Returns description of options available for this module