Self-host go2rtc
v1.9.15Camera restreaming server for RTSP, WebRTC and HLS
- Stars
- 14 604
- Ports
- 1984 (HTTP API and Web interface), 8554 (RTSP server), 8555 (WebRTC connections (TCP and UDP)), 8443 (SRTP server, used for HomeKit)
alexxit/go2rtcWhat is go2rtc?
go2rtc is a small single-binary media streaming server aimed at IP cameras and smart-home video. It ingests dozens of source types - RTSP, RTMP, ONVIF, MJPEG, HLS, raw bitstreams, local V4L2 and ALSA devices, and vendor camera ecosystems such as Tapo, Kasa, Tuya, Xiaomi, Wyze, Ring, Nest, Doorbird and Roborock - and republishes each stream on demand as WebRTC, RTSP, RTMP, HLS, MP4/MSE or MJPEG. A single stream can combine several sources, and go2rtc matches codecs per client automatically, so one camera feeds a browser over WebRTC and an NVR over RTSP at the same time; heavier conversion is delegated to FFmpeg, including hardware-accelerated transcoding, only when needed. Two-way audio lets you play music, radio or TTS through a camera speaker, any stream can be published out to RTMP/RTMPS services such as YouTube or Telegram, and streams can be pushed into go2rtc or preloaded at startup. The browser interface on port 1984 gives a YAML config editor with syntax checking plus a stats page listing every active connection, and an HTTP/WebSocket API lets other projects drive it. You run it by downloading a binary for Windows, macOS, Linux or FreeBSD, pulling a Docker image, or installing the Home Assistant add-on. By default the API, RTSP and WebRTC ports answer the whole LAN without authentication, so access control is left to the operator (Basic auth config options, a bind to localhost, or a reverse proxy).
go2rtc alternatives
Kerberos AgentSelf-hosted, open-source video surveillance agent for IP cameras with motion detection, recording, and cloud storage. Runs on Raspberry Pi, Docker, Kubernetes.CompareKerberos Agent with go2rtc
RestreamerOpen-source, self-hosted live video streaming server with a web UI: ingest via RTMP or SRT, restream to YouTube, Twitch and Vimeo, and embed a player.CompareRestreamer with go2rtc
µStreamerOpen-source, self-hosted MJPEG-HTTP streamer that broadcasts video from any V4L2 webcam or HDMI capture device with multithreaded and Raspberry Pi hardware JPEG encoding.CompareµStreamer with go2rtc
StreamFlowSelf-hosted web app for live streaming to YouTube, Facebook, and RTMP with video gallery, scheduling, and real-time monitoring.CompareStreamFlow with go2rtc
OpenNVRSelf-hosted NVR with open AI adapter contract — run any model on your hardware, air-gapped by default, with full audit trails and model fingerprinting.CompareOpenNVR with go2rtc
livegoSelf-hosted, open-source live video streaming server written in pure Go that accepts RTMP pushes and replays them over HLS, HTTP-FLV and RTMP.Comparelivego with go2rtc
fastocloudSelf-hosted video streaming for OTT/IPTV/CCTV with live, VOD, transcoding, WebRTC. Community (GPL-3.0) via Docker/Linux; paid tiers add AI/ML, CDN, DRM.Comparefastocloud with go2rtc
mirotalkbroMiroTalk BRO is a self-hosted, open-source WebRTC platform for one-to-many live streaming with P2P and SFU modes, built for webinars and events.Comparemirotalkbro with go2rtc
Should you self-host go2rtc?
go2rtc scores 74/100 on selfhost.directory (how scoring works) and ranks #4 of 54 in Media Streaming. It has 14 604 GitHub stars, +298 in the last 30 days.
It shipped 5 stable releases in the past year. The latest, v1.9.15, came out on 25 October 2026. New versions land roughly every 5 weeks.
Setup is easy: most people get it running in one sitting. An official Docker image is available. It is MIT-licensed and written mostly in Go.
Its closest alternative on selfhost.directory is Invidious (80/100, 25 895 stars). It scores higher overall, so compare the two before you pick. See go2rtc vs Invidious side by side.
Features
- Audio playback to cameras
- Automatic codec negotiation
- Connection statistics
- HLS Output
- HomeKit camera bridge
- HTTP and WebSocket API
- ONVIF Support
- RTSP client and server
- Snapshot capture
- Stream ingest
- Stream publishing to RTMP services
- Two-way Audio
- WebRTC Streaming
- Web UI with config editor
More in Media Streaming
Halcyon VideoSelf-hosted 3D video store for Jellyfin/Plex/Emby libraries with VHS cases, clerk, and streaming links.
hls-restream-proxySelf-hosted HLS proxy that injects headers and rewrites playlists for Jellyfin, Emby, Plex and other media servers to play IPTV streams requiring specific HTTP headers.
hotio/plexA self-hosted, open-source Docker image for running Plex Media Server with built-in hardware transcoding, WireGuard VPN support, and Plex Pass beta updates.
HRCloud2HRCloud2 is an open-source, self-hosted cloud storage platform with file conversion, OCR, media streaming, virus scanning, and a voice-enabled personal assistant.- Icecast 2Icecast is a free server software for streaming multimedia, supporting Ogg (Vorbis and Theora), Opus, WebM, and MP3 streams. It can be used to create an Internet radio station or a privately running jukebox.
infra-homeSelf-hosted stack restoring Philips Ambilight+Hue sync, syncing TV colors to PC LEDs, debloating Fire TV, and blocking ads with Pi-hole from one Home Assistant dashboard.
InvidiousOpen-source AGPL front-end for YouTube: watch without ads, tracking or JavaScript, with own subscriptions, playlists and a REST API; runs via Docker and PostgreSQL.
iptv-proxyA self-hosted IPTV reverse proxy that rewrites M3U and Xtream Codes streams to your own address with custom login, plus HDHomeRun emulation for media servers.
iSponsorBlockTVSelf-hosted SponsorBlock client that skips sponsors and mutes ads on YouTube TV apps for Android TV, Apple TV, Samsung, LG, Roku, Fire TV, and consoles.
jcorp-nomadOpen-source offline media server on an ESP32-S3: self-hosted browser streaming of movies, music, books, DLNA, offline Wikipedia, maps and games.
JellyswarrmJellyswarrm is a self-hosted, open-source reverse proxy that merges multiple Jellyfin servers into one unified interface for browsing and playback.
K7A personal media server you host yourself for movies, shows, and music, with transcoding, federation, and native apps on every platform.


0 comments