MM

membraneframework/membrane_core

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

1522 stars 质量 73 趋势 20Apache-2.0

Membrane Framework的核心,是用Elixir编写的多媒体处理框架

概览

Membrane 是一个多功能的多媒体流媒体和处理框架。你可以用它搭建你需要的媒体服务器,它可以: - 通过WebRTC、RTSP、RTMP、HLS、HTTP等协议进行流式传输,- 转码、混合并应用视频和音频的定制处理,- 接受并生成/录制到MP4、MKV、FLV及其他容器,- 动态连接和断开流,- 无缝扩展和恢复错误,- 如果你自己实现,可以做任何你想象的:D Membrane让你几乎可以在任何处理阶段插入代码。 上面的缩写你没印象吗?访问membrane.stream/learn,让Membrane带你进入多媒体世界吧! 如果您有问题或需要咨询,我们可以通过我们的Discord、论坛、GitHub讨论区、X(Twitter)以及电子邮件为您服务。 你也可以在X(Twitter)关注Membrane,或加入我们的Discord,获取最新动态并参与社区活动。

概述(AI 翻译)

Membrane 是一个多功能的多媒体流媒体和处理框架。你可以用它搭建你需要的媒体服务器,它可以:

  • 通过WebRTC、RTSP、RTMP、HLS、HTTP及其他协议进行流式传输,
  • 转码、混合并应用视频和音频的定制处理,
  • 接受并生成/录制到MP4、MKV、FLV及其他容器,
  • 动态连接和断开流,
  • 无缝扩展和恢复错误,
  • 如果你自己实现,可以随心所欲地实现:D Membrane 让你几乎可以在任何处理阶段插入代码。

上面的缩写你没印象吗?访问membrane.stream/learn,让Membrane带你进入多媒体世界吧!

如果您有问题或需要咨询,我们可以通过我们的Discord、论坛、GitHub讨论区、X(Twitter)以及电子邮件为您服务。

你也可以在X(Twitter)关注Membrane,或加入我们的Discord,获取最新动态并参与社区活动。

如果您已经使用过Membrane,我们非常感谢您能填写一份简短的调查问卷,帮助我们改进框架并决定下一步行动。

对于那些用AI助手编写Membrane代码的人,我们会为他们提供专门的技能。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Membrane Framework

Membrane is a versatile multimedia streaming & processing framework. You can use it to build a media server of your need, that can:

  • stream via WebRTC, RTSP, RTMP, HLS, HTTP and other protocols,
  • transcode, mix and apply custom processing of video & audio,
  • accept and generate / record to MP4, MKV, FLV and other containers,
  • handle dynamically connecting and disconnecting streams,
  • seamlessly scale and recover from errors,
  • do whatever you imagine if you implement it yourself :D Membrane makes it easy to plug in your code at almost any point of processing.

The abbreviations above don’t ring any bells? Visit membrane.stream/learn and let Membrane introduce you to the multimedia world!

If you have questions or need consulting, we’re for you at our Discord, forum, GitHub discussions, X (Twitter) and via e-mail.

You can also follow Membrane on X (Twitter) or join our Discord to be up to date and get involved in the community.

If you already had a chance to use Membrane, we will be grateful if you could fill out a quick survey to help us improve framework and decide on what to do next.

For people who write Membrane code with AI assistants, we ship a dedicated skill for them.

Membrane is maintained by Software Mansion.

Quick start

Mix.install([
  :membrane_hackney_plugin,
  :membrane_mp3_mad_plugin,
  :membrane_portaudio_plugin,
])

defmodule MyPipeline do
  use Membrane.Pipeline

  @impl true
  def handle_init(_ctx, mp3_url) do
    spec =
      child(%Membrane.Hackney.Source{
        location: mp3_url, hackney_opts: [follow_redirect: true]
      })
      |> child(Membrane.MP3.MAD.Decoder)
      |> child(Membrane.PortAudio.Sink)

    {[spec: spec], %{}}
  end
end
在 GitHub 查看完整 README

推荐工具

换一个关键词,或者移除筛选条件。

安装

npx skillfish add membraneframework/membrane_core
新手?先看 mcpskill.org 教程 →