~ knotless Search/
↑↓ move↵ open⇧↵ all results

cameron.stream/prism

Audio-reactive WebGL visualizer for OBS streams

0
0
main
15 lines · 2.3 KB Raw History

Prism — LIVE audio-reactive visualizer

ONE fixed Chrome/OBS URL: http://127.0.0.1:4178

Owner authorized switchover at 2026-11-17 06:39Z. No OBS restart or stream stop. Current main index.html and server.cjs are deployed from next/. The old system-audio helper has been replaced by a read-only OBS InputVolumeMeters bridge. Actual nonzero live Ableton samples verified at /health, e.g. RMS .07275 / peak .18495. OBS stream remained active with zero skipped frames after switch; screenshot /tmp/obs-prism-upgraded.png.

Run from this directory: PORT=4178 node server.cjs (without timeout). Default in copied server is 4180, so PORT=4178 is REQUIRED in production. Job job_4a4d0acfb1 currently serves production indefinitely. Separate stage next/server.cjs remains on4180 job_4c987bd092.

Requires OBS running, authenticated WebSocket server enabled on4455, and an input named macOS Audio Capture targeting Ableton Live (com.ableton.live). Reads password from OBS existing local config, never outputs it. Subscribes only to InputVolumeMeters. No source settings or stream controls are changed. /health returns latest RMS and peak; /audio SSE feeds renderer. Audio metering is RMS/peak, not frequency analysis; radial texture represents amplitude history, not fake spectral bins. OBS captures audio separately; page plays no sound. Headphones unchanged.

Visuals: no text, photos, UI or background image; braided glass ring on black; 8 filament lanes, RGB spatial dispersion, light memory, caustics, transient wavefront, sound-only bottom crescent. Sound drives radius, deformation, brightness; silence decays. Internal rendering capped1280x720, CSS fills source; OBS source should be1920x1080. F/double-click fullscreen. No auto-reload in newly deployed HTML. Any subsequent live changes/reloads require authorization.

Rollback files: rollback-20261117/{index.html,server.cjs,README.md}. Restoring them requires server replacement and page refresh, so don't do it during a stream without permission.

Smoke test optimized shader at1280x720 had no JS errors and ingested29 actual OBS samples in1.5s; energy .3717, nonzero RMS. Headless fps only25 while OBS live: no60fps claim. OBS stream skipped-frame count was0 after deployment; still monitor rendering performance. Older next/README.md describes pre-optimization staging state.