{"id":18352767,"url":"https://github.com/membraneframework/membrane_scissors_plugin","last_synced_at":"2025-04-10T00:39:09.355Z","repository":{"id":46037845,"uuid":"242761232","full_name":"membraneframework/membrane_scissors_plugin","owner":"membraneframework","description":"Element for cutting off parts of the stream","archived":false,"fork":false,"pushed_at":"2024-04-03T15:17:12.000Z","size":64,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T00:39:05.123Z","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":"2020-02-24T14:44:32.000Z","updated_at":"2023-05-16T04:03:05.000Z","dependencies_parsed_at":"2023-01-23T10:56:33.843Z","dependency_job_id":"4ded3189-a402-4176-bf32-2091c6c65e63","html_url":"https://github.com/membraneframework/membrane_scissors_plugin","commit_stats":{"total_commits":26,"total_committers":6,"mean_commits":4.333333333333333,"dds":0.3846153846153846,"last_synced_commit":"14f2ab6265a9bcce01408941422e62c7ece9ab6b"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/membraneframework%2Fmembrane_scissors_plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/membraneframework%2Fmembrane_scissors_plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/membraneframework%2Fmembrane_scissors_plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/membraneframework%2Fmembrane_scissors_plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/membraneframework","download_url":"https://codeload.github.com/membraneframework/membrane_scissors_plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248138003,"owners_count":21053775,"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:15.474Z","updated_at":"2025-04-10T00:39:09.333Z","avatar_url":"https://github.com/membraneframework.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Membrane Scissors plugin\n\n[![Hex.pm](https://img.shields.io/hexpm/v/membrane_scissors_plugin.svg)](https://hex.pm/packages/membrane_scissors_plugin)\n[![API Docs](https://img.shields.io/badge/api-docs-yellow.svg?style=flat)](https://hexdocs.pm/membrane_scissors_plugin/)\n[![CircleCI](https://circleci.com/gh/membraneframework/membrane_scissors_plugin.svg?style=svg)](https://circleci.com/gh/membraneframework/membrane_scissors_plugin)\n\nElement for cutting off parts of the stream.\n\n## Usage\n\nThe following setup will preserve one buffer per 10 milliseconds (assuming each buffer lasts `caps.duration`):\n\n```elixir\n%Membrane.Scissors{\n  intervals: Stream.iterate(0, \u0026 \u00261 + Membrane.Time.Milliseconds(10)) |\u003e Stream.map(\u0026{\u00261, 1}),\n  interval_duration_unit: :buffers,\n  buffer_duration: fn _buffer, caps -\u003e caps.duration end\n}\n```\n\nNote that particular codecs may allow the stream to be cut at specific points only or forbid cutting at all.\n\n## Installation\n\nAdd the following line to your `deps` in `mix.exs`. Run `mix deps.get`.\n\n```elixir\n\t{:membrane_scissors_plugin, \"~\u003e 0.8.0\"}\n```\n\n## Copyright and License\n\nCopyright 2020, [Software Mansion](https://swmansion.com/?utm_source=git\u0026utm_medium=readme\u0026utm_campaign=membrane_scissors_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_scissors_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_scissors_plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmembraneframework%2Fmembrane_scissors_plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmembraneframework%2Fmembrane_scissors_plugin/lists"}