Open-source project
AlexxIT/go2rtc avatar
AlexxIT/go2rtc

go2rtc: A Streaming Gateway That Turns Any Camera Feed Into WebRTC, HLS, and More

Ultimate camera streaming application

14,712 stars1,533 forksGoMIT

At a glance

What is it?
go2rtc is a standalone Go binary that ingests many camera protocols and re-emits them in modern formats, prioritizing low latency. Optional transcoding integrations can require external tools such as FFmpeg. This review covers its architecture, setup, limitations, and where it fits in a home automation stack.
Who is it for?
Adopt go2rtc if you manage IP cameras and need a lightweight, low-latency bridge to web clients or Home Assistant, especially when you want to avoid per-client transcoding. Skip it if you require a full NVR with recording and motion detection, as go2rtc focuses on streaming, not storage.
Can I use it commercially?
Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
Is it still maintained?
Yes. The repository received new commits within the last day.
What is it written in?
Mainly Go, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 23, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • AlexxIT/go2rtc14,712 ★ · +729
Star history
Repository2026-08-182026-11-23
AlexxIT/go2rtc14k14.7k

729 Stars in the last 97 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

The Problem: Camera Streams That Do Not Play in a Browser

Most IP cameras output RTSP or MJPEG, which browsers and smart home dashboards cannot play natively. A developer who wants to view a camera feed in a web page must either transcode to HLS or negotiate WebRTC, both of which are fiddly. go2rtc solves this by acting as a single gateway: it ingests from dozens of protocols, then re-emits in formats like WebRTC, HLS, and MSE, automatically matching what the client supports. The intended audience is clear from the README: developers integrating camera streams into smart home platforms, and hobbyists running Home Assistant. It is not a video recorder; it is a streaming router.

How It Works: Stream Routing, Not Transcoding

The core mechanism is a stream router. go2rtc receives a source, such as an RTSP URL, and exposes it under a name. When a client requests that stream, the server negotiates the best output format based on the client's capabilities. The README describes an 'auto-match' feature in the JavaScript API that picks client-supported formats and codecs. This avoids transcoding in most cases, because WebRTC can carry the original H.264 or H.265 bitstream if the client supports it. Transcoding is only invoked when necessary, via FFmpeg, which is an external dependency. The design is inspired by GStreamer pipelines and MediaSoup routing, meaning streams are treated as data paths, not recordings. This is a key distinction: go2rtc does not store video; it moves it.

Getting Started: Binary, Docker, or Home Assistant Add-on

Installation is straightforward. The README lists prebuilt binaries for Windows, macOS, Linux, FreeBSD, and even MIPS for devices like Xiaomi Gateway 3. You download a zip, run the executable, and open http://localhost:1984/ in a browser. The web interface is where you add streams. Configuration lives in a config file. For Docker, there is an image at alexxit/go2rtc, and a Home Assistant add-on is available. The project also offers a Home Assistant integration, which suggests deep coupling with that platform. The zero-dependency claim holds for the core binary, but note that transcoding relies on FFmpeg, so if you need that feature, you must have FFmpeg installed separately.

Latency and Codec Handling: The 'Zero-Delay' Promise

A headline feature is 'zero-delay for many supported protocols,' meaning the lowest possible streaming latency. This is achieved by avoiding transcoding and using WebRTC, which is designed for real-time communication. The README mentions 'codecs madness' as a section, implying the project handles a wide array of codecs and formats. For a security camera, low latency matters when you want to react to motion in real time. However, the zero-delay claim is conditional: it applies to supported protocols and codecs. If a client does not support the source codec, go2rtc must transcode, which introduces delay and CPU load. The project's philosophy is to let the source bitstream flow through untouched whenever possible, which is a sound design for latency but limits flexibility.

Two-Way Audio and Publishing: Beyond Video

go2rtc is not just about video. The README lists two-way audio support for many formats, which allows you to talk through a camera's microphone and speaker. It also supports streaming audio to cameras, meaning you can push audio from another source to a camera's speaker. This is useful for intercom-like features. Additionally, go2rtc can publish a stream to external services like YouTube and Telegram, turning a camera feed into a live broadcast. This is a different use case from local viewing. The mixing of tracks from different sources into a single stream is another advanced feature, useful for overlaying audio from a separate microphone onto a video feed. These features make go2rtc more than a simple relay, but they also add complexity to configuration.

Security and Exposure: A Real Concern

The README has a dedicated Security section, which matters for a streaming server that may be exposed to the internet. Read it before you make the web interface on port 1984 reachable from other machines, and for any internet-facing deployment combine whatever it describes with network-level protection such as a VPN or firewall.

Alternatives and the Trade-off

The README credits rtsp-simple-server as an inspiration. That project, now called MediaMTX, is a direct alternative. MediaMTX also ingests RTSP and outputs WebRTC and HLS, but it is more focused on re-streaming and less on the browser-side auto-matching that go2rtc emphasizes. MediaMTX is a single binary as well, but go2rtc's advantage is its deep integration with Home Assistant and its broader protocol support, including MJPEG and ONVIF. The trade-off is that go2rtc's feature set is larger, which can mean more configuration complexity. If you only need to take one RTSP feed and convert it to HLS, MediaMTX might be simpler. But if you have a mixed fleet of cameras and want a unified streaming layer for a web dashboard, go2rtc's auto-matching is compelling. The choice hinges on whether you need the browser negotiation or just a simple relay.

Maintenance and Upgrade Cost

The project is actively maintained, with releases v1.9.13 in December 2025, v1.9.14 in January 2026, and v1.9.15 in October 2026. The gap of about nine months before v1.9.15 shows releases do not follow a fixed cadence. Upgrade cost is low because it is a single binary; you replace the executable and restart. However, the README mentions a 'Master version' in the table of contents, which implies you can run the latest development build, but that comes with risk. The license is MIT, which allows commercial use with attribution, but you should review the license text for exact terms. Since go2rtc depends on FFmpeg for transcoding, you also need to track FFmpeg updates for security fixes. The project's own code is Go, which compiles to a static binary, so there are no runtime dependencies beyond the OS.

Editorial conclusion

Adopt go2rtc if you manage IP cameras and need a lightweight, low-latency bridge to web clients or Home Assistant, especially when you want to avoid per-client transcoding. Skip it if you require a full NVR with recording and motion detection, as go2rtc focuses on streaming, not storage. Before deploying, verify your camera models support the protocols you need, test audio two-way support, and check the security implications of exposing the web UI on your network. For production, pin a specific release like v1.9.15 and review the config for any exposed streams.

Frequently asked questions

how to install go2rtc

Pick one of four routes: a binary from the latest release page for your architecture, the Docker image, a Home Assistant add-on, or a Home Assistant integration. Then open the web interface at http://localhost:1984/ and add your streams to the configuration file.

Can I use go2rtc with Home Assistant?

Yes, through two separate routes listed in the installation section, an add-on and an integration. A worked example lives in examples/go2rtc_hass, and there is also a Master version option if you want current code instead of a tagged build.

How do I configure go2rtc?

Streams are added to the configuration file, and the table of contents carries a dedicated Configuration section. Protocol and codec handling is automatic through auto-match against what the client supports, implemented in the JavaScript API under www/README.md.

how to access go2rtc

The web interface is served at http://localhost:1984/ once the app is running. For anything beyond a browser, there is an HTTP API documented at internal/api/README.md, which the project points developers at for integrating into a smart home platform.

Official sources

  1. Official documentation
  2. Official README
  3. Project repository
  4. Release notes
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/alexxit-go2rtc.svg)](https://hysenlabs.com/projects/alexxit-go2rtc)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/alexxit-go2rtc.svg)](https://hysenlabs.com/projects/alexxit-go2rtc)

Was this useful?