Ultimate camera streaming application
Ultimate camera streaming application with support for dozens formats and protocols.
http://localhost:1984/Developers: integrate HTTP API into your smart home platform.
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.
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.
https://github.com/AlexxIT/hassio-addonsWebRTC 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.
Latest, but maybe unstable version:
alexxit/go2rtc:master or alexxit/go2rtc:master-hardware versionsgo2rtc master or go2rtc master hardware versionsThis 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:
streams:
hall-camera: rtsp://admin:[email protected]/cam/realmonitor?channel=1&subtype=0go2rtc.yaml in the current work directoryapi 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 connectionsMore information can be found here.
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.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.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).HomeKit proxy source stuck in mDNS discovery loop, never reaches SetupEndpoints — regression between 1.9.2 (working) and 1.9.13 (broken)
Bug Report: `(c *Codec) Match()` fails on codec query filter without explicit sample rate (e.g. `?audio=aac`)
Support for RFC7616 auth is missing
Nest source: duplicate H264 receiver track on every WebRTC negotiation, RTSP output wired to the empty one
Feature request: AV1 support for MSE/fMP4 streaming
exec pipe source that never writes hangs the whole stream forever
get cameras bye mac address ?
xiaomi: `midr.cateye.ph300` needs a MIoT wake action before `miss_get_vendor` returns keys
CORS preflight OPTIONS fails with 401 when authentication is enabled
XIaomi CCTV Offline Intermittently