← back to projects

~/projects/obs-stream-controller

Headless OBS Stream ControllerControlador de Streaming para OBS Headless

March 2026·shipped·source not published
Headless OBS Stream Controller
PythonFlaskOBS WebSocketLinux

A web-based controller for a headless OBS instance running on a 2-core ARM64 Oracle Cloud VM, using OBS WebSocket v5. It handles scene and source management, layer reordering, live volume control, and a polling-based live preview — all through a lightweight token-authenticated Flask backend with auto-reconnect.

Infrastructure work

Getting this stable involved fixing PulseAudio access from a systemd service context, correcting the active OBS profile path, and tuning x264 encoding settings for a 2-core/24fps target. I also patched a Type=forking systemd supervision bug that was causing the service to report healthy before OBS had actually finished starting.

Un controlador web para una instancia de OBS headless corriendo en una VM ARM64 de Oracle Cloud con 2 núcleos, usando OBS WebSocket v5. Maneja la gestión de escenas y fuentes, el reordenamiento de capas, el control de volumen en vivo y una vista previa por sondeo — todo a través de un backend ligero en Flask autenticado por token y con reconexión automática.

Trabajo de infraestructura

Lograr estabilidad implicó corregir el acceso a PulseAudio desde el contexto de un servicio systemd, arreglar la ruta del perfil activo de OBS y ajustar la codificación x264 para un objetivo de 2 núcleos / 24 fps. También parcheé un bug de supervisión systemd con Type=forking que hacía que el servicio reportara estado saludable antes de que OBS terminara de iniciar.