Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
G

go2rtc

> 编程语言
Open source

Ultimate camera streaming application

13.6K stars0 likes4 views
WebsiteGitHub

About

Ultimate camera streaming application

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

  • zero-dependency small app for all OS (Windows, macOS, Linux, FreeBSD)
  • zero-delay for many supported protocols (lowest possible streaming latency)
  • streaming input from dozens formats and protocols
  • streaming output in all popular formats
  • streaming ingest in a number of popular formats
  • publish any source to popular streaming services (YouTube, Telegram)
  • on-the-fly transcoding only if necessary via FFmpeg
  • two-way audio support for many formats
  • streaming audio to all cameras with two-way audio support
  • mixing tracks from different sources to single stream
  • auto-match client-supported streaming formats and codecs
  • streaming stats for all active connections
  • can be integrated to any project or be used as standalone app

Inspired by

  • series of streaming projects from @deepch
  • webrtc go library and whole @pion team
  • rtsp-simple-server idea from @aler9
  • GStreamer framework pipeline idea
  • MediaSoup framework routing idea
  • HomeKit Accessory Protocol from @brutella
  • creator of the project's logo @v_novoseltsev

Table of Contents
  • Installation
    • go2rtc: Binary
    • go2rtc: Docker
    • go2rtc: Home Assistant add-on
    • go2rtc: Home Assistant Integration
    • go2rtc: Master version
  • Configuration
  • Features
    • Streaming input
    • Streaming output
    • Streaming ingest
    • Two-way audio
    • Stream to camera
    • Publish stream
    • Preload stream
    • Streaming stats
  • Codecs
    • Codecs filters
    • Codecs madness
    • Built-in transcoding
    • Codecs negotiation
  • Security
  • Projects using go2rtc
  • Camera experience
  • Tips

Installation

  1. Download binary or use Docker or Home Assistant add-on or integration
  2. Open web interface: http://localhost:1984/
  3. Add streams to config

Developers: integrate HTTP API into your smart home platform.

go2rtc: Binary

Download binary for your OS from latest release:

name description
go2rtc_win64.zip Windows 10+ 64-bit
go2rtc_win32.zip Windows 10+ 32-bit
go2rtc_win_arm64.zip Windows ARM 64-bit
go2rtc_linux_amd64 Linux 64-bit
go2rtc_linux_i386 Linux 32-bit
go2rtc_linux_arm64 Linux ARM 64-bit (ex. Raspberry 64-bit OS)
go2rtc_linux_arm Linux ARM 32-bit (ex. Raspberry 32-bit OS)
go2rtc_linux_armv6 Linux ARMv6 (for old Raspberry 1 and Zero)
go2rtc_linux_mipsel Linux MIPS (ex. Xiaomi Gateway 3, Wyze cameras)
go2rtc_mac_amd64.zip macOS 11+ Intel 64-bit
go2rtc_mac_arm64.zip macOS ARM 64-bit
go2rtc_freebsd_amd64.zip FreeBSD 64-bit
go2rtc_freebsd_arm64.zip FreeBSD ARM 64-bit

Don't forget to fix the rights chmod +x go2rtc_xxx_xxx on Linux and Mac.

PS. The application is compiled with the latest versions of the Go language for maximum speed and security. Therefore, the minimum OS versions depend on the Go language.

go2rtc: Docker

The Docker containers alexxit/go2rtc and ghcr.io/alexxit/go2rtc support multiple architectures including 386, amd64, arm/v6, arm/v7 and arm64. These containers offer the same functionality as the Home Assistant add-on but are designed to operate independently of Home Assistant. It comes preinstalled with FFmpeg and Python.

go2rtc: Home Assistant add-on

  1. Settings > Add-ons > Plus > Repositories > Add
    https://github.com/AlexxIT/hassio-addons
  2. go2rtc > Install > Start

go2rtc: Home Assistant Integration

WebRTC Camera custom component can be used on any Home Assistant installation, including HassWP on Windows. It can automatically download and use the latest version of go2rtc. Or it can connect to an existing version of go2rtc. Addon installation in this case is optional.

go2rtc: Master version

Latest, but maybe unstable version:

  • Binary: latest master build
  • Docker: alexxit/go2rtc:master or alexxit/go2rtc:master-hardware versions
  • Home Assistant add-on: go2rtc master or go2rtc master hardware versions

Configuration

This is the go2rtc.yaml file in YAML-format. The configuration can be changed in the WebUI at http://localhost:1984. The editor provides syntax highlighting and checking.

The simplest config looks like this:

yaml
streams:
  hall-camera: rtsp://admin:[email protected]/cam/realmonitor?channel=1&subtype=0
  • by default go2rtc will search go2rtc.yaml in the current work directory
  • api server will start on default 1984 port (TCP)
  • rtsp server will start on default 8554 port (TCP)
  • webrtc will use port 8555 (TCP/UDP) for connections

More information can be found here.

Features

A summary table of all modules and features can be found here.

Core modules

  • app - Reading configs and setting up logs.
  • api - Handle HTTP and WebSocket API.
  • streams - Handle a list of streams.

Streaming input

public protocols

  • mpjpeg - The legacy but still used MJPEG protocol for real-time media transmission.
  • onvif - A popular ONVIF protocol for receiving media in RTSP format.
  • rtmp - The legacy but still used RTMP protocol for real-time media transmission.
  • rtsp - The most common RTSP protocol for real-time media transmission.
  • webrtc - WebRTC web-compatible protocol for real-time media transmission.
  • yuv4mpegpipe - Raw YUV frame stream with YUV4MPEG header.

private protocols

  • bubble - Some NVR from dvr163.com and eseecloud.com.
  • doorbird - Doorbird devices with two-way audio.
  • dvrip - DVR-IP NVR, NetSurveillance, Sofia protocol (XMeye SDK).
  • [`

Issues· 959 open

View all issuesOpen on GitHub
  • #2425

    HomeKit proxy source stuck in mDNS discovery loop, never reaches SetupEndpoints — regression between 1.9.2 (working) and 1.9.13 (broken)

    bugmodule/homekitUpdated Oct 1, 2026
  • #2474

    Bug Report: `(c *Codec) Match()` fails on codec query filter without explicit sample rate (e.g. `?audio=aac`)

    enhancementsize/smallUpdated Oct 1, 2026
  • #2476

    Support for RFC7616 auth is missing

    enhancementmodule/rtspUpdated Oct 1, 2026
  • #2386

    Nest source: duplicate H264 receiver track on every WebRTC negotiation, RTSP output wired to the empty one

    enhancementbrand/nestUpdated Oct 1, 2026
  • #2260

    Feature request: AV1 support for MSE/fMP4 streaming

    enhancementUpdated Oct 1, 2026
  • #2481

    exec pipe source that never writes hangs the whole stream forever

    bugUpdated Oct 1, 2026
  • #2131

    get cameras bye mac address ?

    enhancementUpdated Oct 1, 2026
  • #2488

    xiaomi: `midr.cateye.ph300` needs a MIoT wake action before `miss_get_vendor` returns keys

    enhancementbrand/xiaomisize/smallUpdated Oct 1, 2026
  • #2218

    CORS preflight OPTIONS fails with 401 when authentication is enabled

    bugUpdated Oct 1, 2026
  • #2470

    XIaomi CCTV Offline Intermittently

    bugbrand/xiaomiUpdated Oct 1, 2026

> Tags

Goffmpeggogolanghassio

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedOct 2, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言