Real-time, audio-driven eye candy for the Raspberry Pi 3B+ — inspired by the legendary Geiss Winamp plugin (now open source).
geiss4pi turns a Raspberry Pi into a plug-and-play music visualization appliance: stream music to it over Bluetooth, watch psychedelic visuals react on your TV over HDMI, and steer the effects live with a keyboard — like a game, or like a VJ instrument for venues.
geiss.mp4
The on-screen menu makes the visualizer feel like a dedicated living-room appliance.
- Geiss-style rendering engine — the classic draw waveform → warp the frame feedback loop, reimplemented on the GPU with OpenGL ES 2.0 shaders (VideoCore IV friendly).
- Flexible audio I/O — Bluetooth A2DP sink, USB audio input, or system loopback via PipeWire; audio out over HDMI, 3.5mm jack, or both.
- Live control — Geiss-like keyboard mappings: switch presets, zoom, rotate, flash, cycle palettes, randomize — all in real time.
- Preset system — visual scenes described as JSON files, hot-swappable and interpolated.
- AI artistic director — three escalating levels:
- L1 pure DSP (FFT, beats, BPM, energy) drives automatic scene transitions;
- L2 a small local classifier (TFLite) detects genre/mood;
- L3 a remote LLM acts as an artistic director, sending high-level scene directives — never drawing pixels itself.
- Appliance distribution — a flashable SD-card image (pi-gen) that boots straight into the visualizer, with a simple on-screen configuration menu (Recalbox/Kodi style) and a first-boot tutorial.
This installs geiss4pi as a dedicated appliance on a stock Raspberry Pi OS Lite (64-bit) system. You need a Pi 3B+, a 16 GB or larger microSD card, HDMI display, keyboard, network connection for installation, and a stable 5.1 V / 2.5 A power supply.
-
Download and open the official Raspberry Pi Imager on a computer with a microSD card reader.
-
Select Raspberry Pi 3 as the device, then choose Raspberry Pi OS Lite (64-bit). Use the Lite edition: geiss4pi renders directly through DRM/KMS and does not need a graphical desktop.
-
Select the microSD card. Writing the image erases everything currently on that card.
-
In OS Customisation, set:
- a hostname, for example
geiss4pi; - your administrator username and password;
- locale, time zone, and keyboard layout;
- Wi-Fi credentials, or plan to connect Ethernet;
- Remote Access → Enable SSH, using either your password or a public key.
- a hostname, for example
-
Write and verify the card, insert it into the Pi, connect HDMI and the network, then power it on. After the first boot, connect from your computer:
ssh <your-user>@geiss4pi.local
If
.localname resolution is unavailable, use the Pi's IP address instead. See Raspberry Pi's official headless setup guide for more detail.
Run the following commands on the Pi over SSH:
sudo apt update
sudo apt full-upgrade -y
sudo apt install --no-install-recommends -y \
git cmake g++ pkg-config \
libdrm-dev libgbm-dev libegl1-mesa-dev libgles2-mesa-dev \
libsdl2-dev libsdl2-ttf-dev libcurl4-openssl-dev \
libpipewire-0.3-dev libinput-dev \
pipewire pipewire-pulse wireplumber bluez libspa-0.2-bluetooth \
pulseaudio-utils rtkit fonts-dejavu-core python3-dbus python3-gi
git clone https://github.com/AlbertoSpain/geiss4pi.git
cd geiss4pi
cmake -B build -DGEISS4PI_PLATFORM=SDL
cmake --build build -j"$(nproc)"Raspberry Pi OS normally enables the full KMS driver already. Check
/boot/firmware/config.txt (older releases use /boot/config.txt) and ensure these
settings appear once:
dtoverlay=vc4-kms-v3d
gpu_mem=128
From the cloned repository:
cd ~/geiss4pi
sudo ./image/install.sh
sudo rebootThe installer creates the dedicated geiss4pi service user, installs the binary and
presets under /opt/geiss4pi, configures Bluetooth A2DP and the PipeWire audio stack,
enables realtime audio priority, and starts geiss4pi automatically at boot.
After reboot, use a keyboard connected to the Pi to complete the on-screen setup wizard and pair the phone that will stream music. Confirm the installation over SSH with:
systemctl is-active geiss4pi.service
git -C ~/geiss4pi remote get-url originThe expected results are active and
https://github.com/AlbertoSpain/geiss4pi.git. Once installed, the settings menu's
Update From Repo action pulls, rebuilds, and reinstalls the latest public version.
See image/README.md for maintenance and audio troubleshooting, and
docs/testing-on-pi.md for detailed hardware validation.
The keyboard turns geiss4pi into a live visual instrument. These controls apply while the visualizer is on screen; when the settings menu is open, the same keys navigate the menu instead.
| Goal | Keys |
|---|---|
| Choose a scene | 1–9 presets, 0 preset 10, N/P next/previous, Space random |
| Shape the motion | Arrows zoom/rotate, W/S feedback (trail length), F flash |
| Change the look | C palette, V waveform, E effect family, K mirror/kaleidoscope, [/] density |
| Control the session | A auto director, R reset live overrides, Tab diagnostics HUD, Esc settings |
Important: most live adjustments are sticky. Zoom, rotation, feedback, palette,
waveform, effect, mirror, and density changes remain active when presets change —
including changes made by the auto director. For example, after pressing E or K,
new presets keep that effect family or mirror style while their other parameters change.
Press R at any time to clear every live override and return fully to the current
preset's intended look. Overrides are session-only: restarting geiss4pi also clears them.
With Auto Director enabled, the configured Preset Interval is the inactivity
threshold after which it schedules a transition on the next detected beat; musical
section changes can trigger one earlier. A useful VJ workflow is to let the director
choose scenes, intervene temporarily with the live controls, then press R to hand the
complete look back to the presets. See docs/controls.md for the full
control model.
Audio (BT A2DP / USB / loopback)
→ PipeWire capture
→ Analysis (FFT bands, beat, BPM, energy)
→ MusicalState
→ Director (L1 rules / L2 classifier / L3 LLM)
→ SceneState (presets, interpolated)
→ Render engine (C++ / OpenGL ES 2.0, feedback warp)
→ HDMI
The director layer only mutates a scene state; the engine renders it deterministically at 60 fps. This separation lets the "brain" be swapped (local rules, local model, remote LLM) without touching the renderer. See docs/architecture.md.
| Document | Contents |
|---|---|
| docs/vision.md | Goals, inspiration, target experience |
| docs/architecture.md | System design, modules, data flow, threading |
| docs/presets.md | Preset JSON schema and semantics |
| docs/controls.md | Keyboard mappings and live-control model |
| docs/ai-director.md | The three director levels and the scene-directive protocol |
| docs/image-build.md | Building the appliance SD image (pi-gen) |
| docs/testing-on-pi.md | Step-by-step: flash, build, and test on real Pi 3B+ hardware |
| docs/roadmap.md | Development phases and status |
The engine runs on a desktop (macOS/Linux) using an SDL2 backend for fast iteration — no Raspberry Pi required during development.
# Prerequisites: CMake ≥ 3.16, a C++17 compiler, and:
# macOS: brew install sdl2 sdl2_ttf curl
# Debian/Raspberry Pi OS: apt install libsdl2-dev libsdl2-ttf-dev libcurl4-openssl-dev \
# libpipewire-0.3-dev libgles2-mesa-dev libegl1-mesa-dev
cmake -B build -DGEISS4PI_PLATFORM=SDL
cmake --build build -j
./build/geiss4pi # synthetic test audio (120 BPM)
./build/geiss4pi --audio capture # real audio from the default capture device
./build/geiss4pi --audio pipewire # Linux only: whatever plays on the default sink"quality": "low|medium|high" (config.json, or --quality for one run) picks the
internal render resolution as a fraction of the actual display mode (1/3, 1/2, or
native capped at 1080p). The upscale is always bilinear, so lower settings look
softly blurred, never pixelated. Defaults: high on desktop, medium on the Pi
(e.g. 960×540 → 1920×1080).
On the Raspberry Pi, a bare ./build/geiss4pi is enough: with no desktop session
around, the binary selects SDL_VIDEODRIVER=kmsdrm itself (and renices itself to
10 so audio wins over visuals) — an explicit SDL_VIDEODRIVER still overrides.
It renders
directly via DRM/KMS (no X11/desktop); see docs/image-build.md
and image/README.md for the current manual-install path (a fully
automated flashable image is future work, see docs/roadmap.md).
- In: phone → Bluetooth A2DP → Pi
- Out: HDMI (video + audio) → TV
- Control: USB or Bluetooth HID keyboard
The Pi 3B+ has a single Bluetooth radio; A2DP in + A2DP out simultaneously is possible but not recommended. See docs/vision.md for the supported setups.
geiss4pi is licensed under the GNU General Public License v3.0. Geiss is a spiritual inspiration; no Geiss code is reused.
