{"id":18352738,"url":"https://github.com/membraneframework/membrane_generator_plugin","last_synced_at":"2026-02-13T17:08:11.757Z","repository":{"id":40510624,"uuid":"416736324","full_name":"membraneframework/membrane_generator_plugin","owner":"membraneframework","description":"Video and audio samples generator","archived":false,"fork":false,"pushed_at":"2023-11-17T14:51:29.000Z","size":88,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-20T02:59:49.967Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://membrane.stream","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,"publiccode":null,"codemeta":null}},"created_at":"2021-10-13T12:36:40.000Z","updated_at":"2023-01-31T19:13:05.000Z","dependencies_parsed_at":"2023-02-17T05:55:19.992Z","dependency_job_id":"6a2429e4-d053-42f3-ac29-88eef5047448","html_url":"https://github.com/membraneframework/membrane_generator_plugin","commit_stats":{"total_commits":52,"total_committers":7,"mean_commits":7.428571428571429,"dds":0.6730769230769231,"last_synced_commit":"a1ea4d957e1f8e9dbf74e533ec6fafef960ed99a"},"previous_names":[],"tags_count":15,"template":false,"template_full_name":"membraneframework/membrane_template_plugin","purl":"pkg:github/membraneframework/membrane_generator_plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/membraneframework%2Fmembrane_generator_plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/membraneframework%2Fmembrane_generator_plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/membraneframework%2Fmembrane_generator_plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/membraneframework%2Fmembrane_generator_plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/membraneframework","download_url":"https://codeload.github.com/membraneframework/membrane_generator_plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/membraneframework%2Fmembrane_generator_plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29412684,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-13T06:24:03.484Z","status":"ssl_error","status_checked_at":"2026-02-13T06:23:12.830Z","response_time":78,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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:07.005Z","updated_at":"2026-02-13T17:08:11.753Z","avatar_url":"https://github.com/membraneframework.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Membrane Generator Plugin\n\n[![Hex.pm](https://img.shields.io/hexpm/v/membrane_generator_plugin.svg)](https://hex.pm/packages/membrane_generator_plugin)\n[![API Docs](https://img.shields.io/badge/api-docs-yellow.svg?style=flat)](https://hexdocs.pm/membrane_generator_plugin)\n[![CircleCI](https://circleci.com/gh/membraneframework/membrane_generator_plugin.svg?style=svg)](https://circleci.com/gh/membraneframework/membrane_generator_plugin)\n\nThis repository contains audio and video generator.\n\nIt is part of [Membrane Multimedia Framework](https://membraneframework.org).\n\n## Installation\n\nThe package can be installed by adding `membrane_generator_plugin` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n\t{:membrane_generator_plugin, \"~\u003e 0.10.1\"}\n  ]\nend\n```\n\n## Usage Example\n\n### Silence generator\n```elixir\ndefmodule AudioGenerating.Pipeline do\n  use Membrane.Pipeline\n\n  @impl true\n  def handle_init(_ctx, _opts) do\n    structure = \n      child(\n      :generator, %Membrane.SilenceGenerator{\n        stream_format: %Membrane.RawAudio{\n          channels: 1,\n          sample_rate: 16_000,\n          sample_format: :s16le\n        },\n        duration: Membrane.Time.milliseconds(100)\n      })\n      |\u003e child(:sink, %Membrane.File.Sink{location: \"/tmp/output.raw\"})\n\n    {[spec: structure], %{}}\n  end\nend\n```\n\n### Blank Video Generator\n```elixir\ndefmodule VideoGenerating.Pipeline do\n  use Membrane.Pipeline\n\n  @impl true\n  def handle_init(_ctx, _opts) do\n    structure = \n      child(\n        :generator,\n        %Membrane.BlankVideoGenerator{\n          stream_format: %Membrane.RawVideo{\n            pixel_format: :I420,\n            height: 720,\n            width: 1280,\n            framerate: {30, 1},\n            aligned: true\n          },\n          duration: Membrane.Time.milliseconds(100)\n        }\n      )\n      |\u003e child(:sink, %Membrane.File.Sink{location: \"/tmp/output.raw\"})\n\n    {[spec: structure], %{}}\n  end\nend\n```\n\n## Copyright and License\n\nCopyright 2021, [Software Mansion](https://swmansion.com/?utm_source=git\u0026utm_medium=readme\u0026utm_campaign=membrane_generator_plugin)\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_generator_plugin)\n\nLicensed under the [Apache License, Version 2.0](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmembraneframework%2Fmembrane_generator_plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmembraneframework%2Fmembrane_generator_plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmembraneframework%2Fmembrane_generator_plugin/lists"}