selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

go2rtc logo

Self-host go2rtc

v1.9.15

Camera restreaming server for RTSP, WebRTC and HLS

ReleaseOpen SourceMIT
Updatedlast week
LanguageGo
Setup difficultyEasy
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)
Docker
alexxit/go2rtc
Install with Docker
WebUI YAML configuration editor with syntax highlightingWebUI page showing active connections and stream stats

What is go2rtc?

go2rtc alternatives

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

go2rtc README

go2rtc - GitHub Stars go2rtc - Docker Pulls go2rtc - GitHub Downloads

go2rtc - Trendshift

Ultimate camera streaming application with support for dozens formats and protocols.

How to install go2rtc

Install go2rtc with Docker

The Docker containers alexxit/go2rtc and ghcr.io/alexxit/go2rtc support multiple architectures including 386, amd64, arm/v6, arm/v7 and arm64.

Containers are independent of Home Assistant and come preinstalled with FFmpeg and Python; `master` and `master-hardware` tags exist for the latest unstable build.

How to configure go2rtc

  • streamsTop-level streams section: each stream name maps to one or more source URLs (rtsp, rtmp, hls, mjpeg, ffmpeg, exec, echo, vendor camera modules, ...)
  • publishTop-level publish section: stream names mapped to RTMP/RTMPS targets (Telegram, YouTube)
  • preloadTop-level preload section: streams to start at go2rtc boot, optionally with a codec filter such as "video=h264&audio=opus"
  • listen:1984Listen address in the api section for the HTTP API/WebUI (empty string disables it); the same key also appears in the rtsp (:8554), srtp (:8443) and webrtc (:8555) sections
  • usernameapi section: Basic auth username for the WebUI (requests from localhost bypass auth unless local_auth is enabled)

go2rtc releases & version history

@ Every self-hosted release, weekly

One Monday email with the week's stable releases across the directory.

More in Media Streaming

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…