https://github.com/membraneframework/membrane_flac_plugin
Parser for files in FLAC bitstream format
https://github.com/membraneframework/membrane_flac_plugin
Last synced: 8 days ago
JSON representation
Parser for files in FLAC bitstream format
- Host: GitHub
- URL: https://github.com/membraneframework/membrane_flac_plugin
- Owner: membraneframework
- License: apache-2.0
- Created: 2019-05-22T13:42:57.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2026-05-15T11:31:49.000Z (24 days ago)
- Last Synced: 2026-05-15T13:29:07.348Z (24 days ago)
- Language: Elixir
- Size: 283 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Membrane FLAC plugin
[](https://hex.pm/packages/membrane_flac_plugin)
[](https://hexdocs.pm/membrane_flac_plugin/)
[](https://circleci.com/gh/membraneframework/membrane_flac_plugin)
This package provides an element for parsing FLAC encoded audio stream.
More info can be found in [the docs for element module](https://hexdocs.pm/membrane_flac_plugin).
## Installation
The package can be installed by adding `membrane_flac_plugin` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[
{:membrane_flac_plugin, "~> 0.12.1"}
]
end
```
## Usage example
```elixir
defmodule Membrane.Demo.FlacPipeline do
use Membrane.Pipeline
alias Membrane.{Fake}
@impl true
def handle_init(_opts) do
links = [
child(:file, %Membrane.File.Source{location: "sample.flac"})
|> child(:parser, %Membrane.FLAC.Parser{streaming?: false})
|> child(:fake_sink, Fake.Sink.Buffers)
]
{[spec: links], %{}}
end
end
```
To run the example:
```elixir
alias Membrane.Demo.FlacPipeline
{:ok, pid} = FlacPipeline.start_link_supervised!("sample.flac")
FlacPipeline.play(pid)
```
Dependencies for the example above:
```elixir
{:membrane_file_plugin, "~> 0.14.0"},
{:membrane_fake_plugin, "~> 0.10.0"},
{:membrane_flac_plugin, "~> 0.12.1"}
```
## Sponsors
This project is sponsored by [Abridge AI, Inc.](https://abridge.com)
## Copyright and License
Copyright 2019, [Software Mansion](https://swmansion.com/?utm_source=git&utm_medium=readme&utm_campaign=membrane_flac_plugin)
[](https://swmansion.com/?utm_source=git&utm_medium=readme&utm_campaign=membrane_flac_plugin)
Licensed under the [Apache License, Version 2.0](LICENSE)