Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
L

libfunnel

> 编程语言
Open source

Easy app-to-app frame sharing using PipeWire

100 stars0 likes1 views
WebsiteGitHub

About

Easy app-to-app frame sharing using 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 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

C

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category编程语言
PricingOpen source

> Related tools

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