{"id":18352832,"url":"https://github.com/membraneframework/membrane_aac_fdk_plugin","last_synced_at":"2025-12-12T00:15:41.243Z","repository":{"id":38206190,"uuid":"173694971","full_name":"membraneframework/membrane_aac_fdk_plugin","owner":"membraneframework","description":"Membrane AAC decoder and encoder based on FDK library","archived":false,"fork":false,"pushed_at":"2024-04-03T08:37:51.000Z","size":1233,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-04-03T10:09:16.589Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/membraneframework.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2019-03-04T07:26:27.000Z","updated_at":"2024-04-16T14:40:15.680Z","dependencies_parsed_at":"2023-10-05T14:50:31.451Z","dependency_job_id":"4702c3c7-a6fd-4651-b6ec-1a024ffcd9f9","html_url":"https://github.com/membraneframework/membrane_aac_fdk_plugin","commit_stats":{"total_commits":130,"total_committers":16,"mean_commits":8.125,"dds":0.5538461538461539,"last_synced_commit":"57dd5d87bbc8b711555ae0ffc971b8ddba1bc95f"},"previous_names":["membraneframework/membrane-element-fdk-aac"],"tags_count":30,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/membraneframework%2Fmembrane_aac_fdk_plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/membraneframework%2Fmembrane_aac_fdk_plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/membraneframework%2Fmembrane_aac_fdk_plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/membraneframework%2Fmembrane_aac_fdk_plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/membraneframework","download_url":"https://codeload.github.com/membraneframework/membrane_aac_fdk_plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247478152,"owners_count":20945258,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-05T21:37:35.882Z","updated_at":"2025-12-12T00:15:41.211Z","avatar_url":"https://github.com/membraneframework.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Membrane AAC FDK plugin\n\n[![Hex.pm](https://img.shields.io/hexpm/v/membrane_aac_fdk_plugin.svg)](https://hex.pm/packages/membrane_aac_fdk_plugin)\n[![API Docs](https://img.shields.io/badge/api-docs-yellow.svg?style=flat)](https://hexdocs.pm/membrane_aac_fdk_plugin/)\n[![CircleCI](https://circleci.com/gh/membraneframework/membrane_aac_fdk_plugin.svg?style=svg)](https://circleci.com/gh/membraneframework/membrane_aac_fdk_plugin)\n\nAAC decoder and encoder based on FDK library.\n\nIt is part of [Membrane Multimedia Framework](https://membraneframework.org).\n\nThe docs can be found at [HexDocs](https://hexdocs.pm/membrane_aac_fdk_plugin).\n\n## Installation\n\nThe package can be installed by adding `membrane_aac_fdk_plugin` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:membrane_aac_fdk_plugin, \"~\u003e 0.18.11\"}\n  ]\nend\n```\n\nThis package depends on the [FDK-AAC](https://github.com/mstorsjo/fdk-aac) library. The precompiled build will be pulled and linked automatically. However, should there be any problems, consider installing it manually.\n\n### Manual instalation of dependencies\n#### Ubuntu\n\n(Make sure you have Multiverse repository enabled. See: \u003chttps://help.ubuntu.com/community/Repositories/Ubuntu\u003e)\n\n```bash\nsudo apt-get install libfdk-aac-dev\n```\n\n#### Arch/Manjaro\n\n```bash\npacman -S libfdk-aac\n```\n\n#### MacOS\n\n```bash\nbrew install fdk-aac\n```\n\n## Usage\n\n### Encoder  \n\nThe following pipeline takes wav file as input and encodes it as AAC.\n\n```elixir\nMix.install([:membrane_file_plugin, :membrane_wav_plugin, :membrane_aac_fdk_plugin])\n\ndefmodule AAC.Pipeline do\n  use Membrane.Pipeline\n\n  @impl true\n  def handle_init(_ctx, _opts) do\n    spec = \n      child(:source, %Membrane.File.Source{location: \"input.wav\"})\n      |\u003e child(:parser, Membrane.WAV.Parser)\n      |\u003e child(:aac_encoder, Membrane.AAC.FDK.Encoder)\n      |\u003e child(:sink, %Membrane.File.Sink{location: \"output.aac\"})\n\n    {[spec: spec], %{}}\n  end\nend\n\n{:ok, _pipeline_supervisor, _pipeline} = Membrane.Pipeline.start_link(AAC.Pipeline, [])\n```\n\n### Decoder\n\nThe following pipeline takes AAC file as input and plays it on speakers.\n\n```elixir\nMix.install([\n  :membrane_file_plugin,\n  :membrane_ffmpeg_swresample_plugin,\n  :membrane_aac_fdk_plugin, \n  :membrane_portaudio_plugin\n])\n\ndefmodule AAC.Pipeline do\n  use Membrane.Pipeline\n\n  @impl true\n  def handle_init(_ctx, _opts) do\n    spec =\n      child(:source, %Membrane.File.Source{location: \"input.aac\"})\n      |\u003e child(:aac_decoder, Membrane.AAC.FDK.Decoder)\n      |\u003e child(:converter, %Membrane.FFmpeg.SWResample.Converter{\n        output_stream_format: %Membrane.RawAudio{\n          sample_format: :s16le,\n          sample_rate: 48000,\n          channels: 2\n        }\n      })\n      |\u003e child(:sink, Membrane.PortAudio.Sink)\n\n    {[spec: spec], %{}}\n  end\nend\n\n{:ok, _pipeline_supervisor, _pipeline} = Membrane.Pipeline.start_link(AAC.Pipeline, [])\n```\n\n## Copyright and License\n\nCopyright 2018, [Software Mansion](https://swmansion.com/?utm_source=git\u0026utm_medium=readme\u0026utm_campaign=membrane)\n\n[![Software Mansion](https://logo.swmansion.com/logo?color=white\u0026variant=desktop\u0026width=200\u0026tag=membrane-github)](https://swmansion.com/?utm_source=git\u0026utm_medium=readme\u0026utm_campaign=membrane)\n\nLicensed under the [Apache License, Version 2.0](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmembraneframework%2Fmembrane_aac_fdk_plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmembraneframework%2Fmembrane_aac_fdk_plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmembraneframework%2Fmembrane_aac_fdk_plugin/lists"}