Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/membraneframework/membrane_funnel_plugin
Membrane plugin for merging multiple input streams into a single output
https://github.com/membraneframework/membrane_funnel_plugin
membrane
Last synced: 2 days ago
JSON representation
Membrane plugin for merging multiple input streams into a single output
- Host: GitHub
- URL: https://github.com/membraneframework/membrane_funnel_plugin
- Owner: membraneframework
- License: apache-2.0
- Created: 2020-12-18T16:14:13.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2024-09-26T12:00:44.000Z (about 1 month ago)
- Last Synced: 2024-10-20T14:04:39.526Z (18 days ago)
- Topics: membrane
- Language: Elixir
- Homepage:
- Size: 60.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Membrane Funnel plugin
[![Hex.pm](https://img.shields.io/hexpm/v/membrane_funnel_plugin.svg)](https://hex.pm/packages/membrane_funnel_plugin)
[![API Docs](https://img.shields.io/badge/api-docs-yellow.svg?style=flat)](https://hexdocs.pm/membrane_funnel_plugin/)
[![CircleCI](https://circleci.com/gh/membraneframework/membrane_funnel_plugin.svg?style=svg)](https://circleci.com/gh/membraneframework/membrane_funnel_plugin)Membrane plugin for merging multiple input streams into a single output.
It can be used for collecting data from multiple inputs and sending it through one output.
It is part of [Membrane Multimedia Framework](https://membraneframework.org).
## Installation
The package can be installed by adding `membrane_funnel_plugin` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[
{:membrane_funnel_plugin, "~> 0.9.1"}
]
end
```## Usage
Playing this pipeline should merge two files `a.txt` and `b.txt` into file `c.txt````elixir
defmodule FunnelDemo do
use Membrane.Pipelinedef handle_init(_) do
children = [
a_source: %Membrane.File.Source{location: "a.txt"},
b_source: %Membrane.File.Source{location: "b.txt"},
funnel: Membrane.Funnel,
sink: %Membrane.File.Sink{location: "c.txt"}
]links = [
link(:a_source) |> to(:funnel),
link(:b_source) |> to(:funnel),
link(:funnel) |> to(:sink)
]spec = %ParentSpec{children: children, links: links}
{{:ok, spec: spec, playback: :playing}, %{}}
end
end
```## Copyright and License
Copyright 2020, [Software Mansion](https://swmansion.com/?utm_source=git&utm_medium=readme&utm_campaign=membrane_funnel_plugin)
[![Software Mansion](https://logo.swmansion.com/logo?color=white&variant=desktop&width=200&tag=membrane-github)](https://swmansion.com/?utm_source=git&utm_medium=readme&utm_campaign=membrane_funnel_plugin)
Licensed under the [Apache License, Version 2.0](LICENSE)