FluxCast
FluxCast streams a Linux desktop to a TV.
🌐 Need a free subdomain for your project? Check out sub.fluxcast.dev (GitHub repo) — a free GitOps subdomain registry for developers!
Demo
https://github.com/user-attachments/assets/ce01804c-2f86-4a5d-8ecf-d6f2a72f55d1
Project Status
Current validated scope:
wfdis the primary path and the only mode tested as release-ready.dlnaworks as fallback.castis experimental and currently not working in the tested Samsung setup.
The project currently focuses on WFD/Miracast on Linux (Hyprland/wlroots class setups).
DLNA and Cast are available, but they are best treated as fallback or experimental paths.
Current limitation:
- KDE/GNOME Wayland desktop capture uses
xdg-desktop-portalin WFD mode. - For portal mode, install Python dependency
dbus-nextand allow screen-share in the desktop picker dialog.
Quick Start
Default WFD run (interactive monitor/peer selection):
python3 src/main.py
WFD with latency/session JSONL log:
python3 src/main.py --wfd-latency-log
DLNA fallback:
python3 src/main.py --protocol dlna --transport hls
Cast mode (optional, if your TV supports it):
python3 src/main.py --protocol cast
Force backend manually (if auto is not suitable on your session):
python3 src/main.py --capture-backend wf-recorder
python3 src/main.py --capture-backend x11grab
python3 src/main.py --protocol wfd --wfd-capture-backend portal
python3 src/main.py --protocol wfd --wfd-capture-backend wf-recorder
python3 src/main.py --protocol wfd --wfd-capture-backend x11grab
What Works Best
WFD (Primary)
screen + audio capture -> H.264/AAC RTP -> Wi-Fi Direct + RTSP -> TV WFD receiver
This is the lowest-latency and most predictable path in the current codebase.
DLNA (Fallback)
desktop capture -> HTTP stream -> DLNA/UPnP AVTransport -> native TV player
- Prefer
--transport hlson Samsung TVs. progressive-tscan freeze or stutter on some models.
Cast (Optional)
- Requires a TV/device with real Google Cast support.
- Requires
pychromecast. - Not reliable on many Samsung TV models.
Installation
AppImage
Download the latest FluxCast-x86_64.AppImage from the Releases page, then:
chmod +x FluxCast-x86_64.AppImage
./FluxCast-x86_64.AppImage
On first launch FluxCast will ask for your password once to install a system file for Wi-Fi Direct.
Depending on your desktop environment, you may need to install:
- Hyprland / Sway:
wf-recorder,ffmpeg - KDE / GNOME:
gst-plugins-ugly(package name varies by distro)
PyPI
pip install fluxcast
sudo fluxcast-install-system
fluxcast-install-system installs the D-Bus policy, desktop entry, and system packages (GStreamer, ffmpeg, NetworkManager, etc.). Run it once after the pip install.
Arch Linux - AUR
yay -S fluxcast-git
# or
paru -S fluxcast-git
From source
git clone https://github.com/IlyaP358/fluxcast.git
cd fluxcast
pip install -r requirements.txt
sudo meta/install.sh
sudo systemctl reload dbus
sudo gtk-update-icon-cache /usr/share/icons/hicolor
[!WARNING] If
PIPrefuses to install the required libraries to your system, you will need to do that yourself using your distro's package manager.
DLNA/Cast features require additional packages listed in requirements.txt.
System tools (just as important)
WFD mode also depends on system binaries, not only Python packages:
ffmpegwf-recorder(Wayland/wlroots capture path)xdg-desktop-portal(+ desktop backend:xdg-desktop-portal-kde/xdg-desktop-portal-gnome/xdg-desktop-portal-wlr)nmcli,gdbus,iw,wpa_cli(Wi-Fi Direct and diagnostics)pactl(audio monitor autodetect)
Use:
python3 src/main.py --doctor
to check your machine before running WFD.
Note: on KDE/GNOME Wayland, WFD auto backend now prefers portal first.
Note: on firewalld systems, FluxCast opens the WFD RTSP port (7236/tcp) for the duration of a session and closes it on exit (no-op without firewalld; disable with --wfd-no-firewall). See DOCUMENTATION.md -> "WFD and firewalld".
Documentation
Detailed flags, modes, and usage examples:
documentation/DOCUMENTATION.md
Tested Environment
Hardware:
ThinkBook 14 G4+ IAP
- CPU: Intel i5-1240P (16 threads) up to 4.40 GHz
- GPU: Intel Iris Xe Graphics
- RAM: 16 GB
Dell XPS 13 Plus
- CPU: Intel i5-1260P (16 threads) up to 4.70 GHz
- GPU: Intel Iris Xe Graphics
- RAM: 16 GB LPDDR5
ThinkPad T14 Gen 4
- CPU: Intel i7-1355U (12 threads) up to 5.00 GHz
- GPU: Intel Iris Xe Graphics
- RAM: 32 GB
Software:
Arch Linux
- Kernels: 7.0.8-arch1-1, 6.12.91-1-lts612
- WMs: Hyprland (0.55.2)
- DEs (for testing): KDE Plasma (6.6.5) | GNOME (50.1)
- Shell: zsh (5.9), fish (4.7.1)
- Terminal: kitty (0.46.2, 0.47.1)
CachyOS
- Kernels: 7.0.3-1-cachyos
- DEs (for testing): KDE Plasma (6.6.4)
- Shell: bash (5.3.9)
- Terminal: konsole (26.4.0)
Metadata
Release files for fluxcast 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| fluxcast-0.2.1.tar.gz | 177.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fluxcast-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 365.6 kB
Release files / fluxcast-0.2.1.tar.gz
| Download URL | fluxcast-0.2.1.tar.gz |
|---|---|
| Size | 177.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
af10a41c358263f2efb81eae79d5b649852b47f725dbd5fbfe7990edc3e6e726
|
|
BLAKE2b-256 checksum How to use checksums |
c68083c48e337edcacfdea05b68ca8506d0aa4955dc9675c6c37342d3d58da31
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 1, 2026.
Transparency logRelease files / fluxcast-0.2.1-py3-none-any.whl
| Download URL | fluxcast-0.2.1-py3-none-any.whl |
|---|---|
| Size | 188.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4290d57cac2c60ce002172d18f9ac16e3ae2b9e9d8b03c2927d3a47cc1109df7
|
|
BLAKE2b-256 checksum How to use checksums |
609c6fe84709f8fee61ab08233d11de3fc37bf43811bd0112d6c63513d658e55
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 1, 2026.
Transparency log