Mid-Stream Decoder Lock
Injects H.264 SPS/PPS parameter sets into every keyframe (dump_extra) so hardware TV decoders lock on immediately when you tune in mid-stream.
Rust · UPnP / DLNA · Virtual HDTV Tuner
Zero TV apps to install. No typing IP addresses into a clunky TV browser. Stream your PC desktop or games natively to Samsung, LG, Sony, Roku, and any DLNA Smart TV as Channel 1.1.
A lightweight local broadcast bridge that speaks native HDTV tuner protocols so your TV locks on in ~1 second.
Stream H.264 video from OBS to rtmp://localhost:1935/live using NVENC, AMF, QuickSync, VideoToolbox, or x264.
Holds the live feed in an internal lightweight socket buffer with zero FFmpeg overhead until a TV tunes in.
Announces a virtual ATSC tuner over SSDP, injects SPS/PPS headers on keyframes, transcodes audio to AC-3, and pads jitter.
Open your TV’s native Inputs or Media Devices list, pick OBS HomeRun → Channel 1.1, and watch.
Solves the exact failure modes that break generic DLNA media servers and wireless screen casting.
Injects H.264 SPS/PPS parameter sets into every keyframe (dump_extra) so hardware TV decoders lock on immediately when you tune in mid-stream.
Converts audio on the fly to broadcast-standard AC-3 (or optional passthrough) for universal Smart TV compatibility.
Maintains a configurable ~3-second clock cushion (muxdelay/muxpreload) so Wi-Fi micro-stutters don’t trigger endless loading wheels.
FFmpeg only spawns when a TV actively watches and is terminated immediately when the TV disconnects—leaving idle CPU at 0.0%.
Visit http://<host>:5004/ for a live HTMX status page showing active viewers, RTSP ingest health, and tuner endpoints.
Need recording or time-shifting? Point Plex Live TV, Jellyfin, Kodi, or Channels DVR at /auto/v1.1 and /discover.json.
Run with host networking (--net=host / Network=host) so SSDP multicast discovery reaches your LAN.
Save as ~/.config/containers/systemd/obs-homerun.container:
[Unit]
Description=OBS HomeRun - Virtual HDTV Tuner
After=network-online.target
Wants=network-online.target
[Container]
Image=ghcr.io/bradwestness/obs-homerun:latest
ContainerName=obs-homerun
Network=host
Pull=newer
AutoUpdate=registry
Environment="FRIENDLY_NAME=OBS HomeRun"
Environment=CHANNEL_NUMBER=1.1
Environment=BUFFER_SECONDS=3.0
[Install]
WantedBy=default.target
systemctl --user daemon-reload
systemctl --user start obs-homerun.service
loginctl enable-linger $USER
services:
obs-homerun:
image: ghcr.io/bradwestness/obs-homerun:latest
container_name: obs-homerun
network_mode: host
restart: unless-stopped
environment:
- FRIENDLY_NAME=OBS HomeRun
- CHANNEL_NUMBER=1.1
- BUFFER_SECONDS=3.0
In OBS Studio → Settings → Stream, pick Custom…, set Server to rtmp://localhost:1935/live (or your NAS IP), Stream Key to stream, and in Output use H.264 CBR with Keyframe Interval: 1 s and Max B-frames: 0.
Step-by-step setup guides for every OS, GPU encoder, and home network.
Podman Quadlets with auto-updates, Docker Compose, Windows 11 WSL2 mirrored networking, macOS, and Synology/TrueNAS/Unraid.
Read guide →Tuned recipes for NVENC, AMD AMF/VA-API, Intel QuickSync, Apple VideoToolbox, x264, ultrawide aspect ratios, and 5.1 audio.
Read guide →Firewall rules (firewalld, ufw, Windows, macOS), router IGMP/multicast settings, and fixes for common discovery issues.
Read guide →