test
unknown
elixir
2 years ago
460 B
10
Indexable
defmodule MyPipeline do
use Membrane.Pipeline
@impl true
def handle_init(_ctx, _opt) do
spec = [
child(:source, Membrane.CameraCapture)
|> child(:converter, %Membrane.FFmpeg.SWScale.PixelFormatConverter{format: :I420})
|> child(:sink, %MySink{filename: "/tmp/frame", quality: 100})
]
{[spec: spec], %{}}
end
def start_link(options) do
Membrane.Pipeline.start_link(__MODULE__, options, name: MyPipeline)
end
end
Editor is loading...
Leave a Comment