百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
L

libfunnel

> 编程语言
开源

使用 PipeWire 进行简单的应用程序间帧共享

100 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

使用 PipeWire 进行简单的应用程序间帧共享

libfunnel

A library to make creating PipeWire video streams easy, using zero-copy DMA-BUF frame sharing. "Spout2 / Syphon, but for Linux".

Documentation

See libfunnel Documentation

Building

meson setup build
ninja -C build

Status

This is still rough around the edges and the API is not considered stable yet.

Features:

  • Sending frames
  • Receiving frames
  • Multiple synchronized streams
  • Implicit sync
  • Hybrid sync (explicit API, implicit stream)
  • Explicit sync
  • Async and multiple sync modes (with and without buffering)
  • Raw GBM API
  • EGL API integration
  • Vulkan API integration
  • GLX API integration (if someone really really needs it... ideally apps should switch to X11+EGL)
  • Cross-GPU frame sharing for reasonable drivers
  • Vulkan: Cross-GPU frame sharing between Nvidia prop driver and other GPUs/drivers (sometimes, problematic due to driver bugs?)
  • GL: Cross-GPU frame sharing between Nvidia prop driver and other GPUs/drivers
  • GL: Automatic optimization for cross-GPU frame sharing (framebuffer optimization/conversion blits)

Note: Frame sharing between an Nvidia GPU using the proprietary GL driver and a non-Nvidia GPU requires special support code and extra blitting, which will probably not be implemented until much later. Using Vulkan can also have issues due to what look like driver/interop bugs. If you have an Nvidia GPU, please consider using NVK instead, since it implements all the missing features that Nvidia refuses to implement in their proprietary driver, and therefore doesn't require us application and library developers to add Nvidia-specific workaround code.

Sending frames

The library initially targets sending frames to other applications (output). This covers the common use case of apps sending video to OBS for streaming.

Receiving frames

Receiving is not implemented yet, but is in scope. Before jumping into this, I'd like to hear from maintainers of applications that receive video via Spout2/Syphon. If you maintain such an app (with existing or planned Linux support), please file an issue and let me know!

Of course, that doesn't make the sending side useless. To receive video streams in OBS, you can use obs-pwvideo, which comes with its own PipeWire code (not using libfunnel itself).

It is also possible to hijack the input of any app using PipeWire screen sharing (such as Firefox, etc.) and redirect a libfunnel input stream into it, though this requires some hacky pw-cli shenanigans. If you have a use case for this, please let me know, as it should be possible to write a tool to do it mostly automatically.

Multiple streams (multiple senders, multiple receivers, or combinations)

Multiple streams are supported the "obvious" way, but the streams behave completely independently (no synchronization) in the current implementation. For applications that synchronously process video, such as filters (input => output), there are better ways to do it. If you maintain an app that expects to input and/or output multiple video streams with locked frame sync, please file an issue and let me know your needs! The underlying PipeWire API is extremely powerful and complicated, and I need some example use cases to decide what a simplified libfunnel API for this should look like.

Usage

TL;DR for EGL

…

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

C

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言