What is go2rtc?
go2rtc is a free, open-source media server created by AlexxIT. It acts as a universal streaming proxy and server — it can take virtually any IP camera stream as input (RTSP, RTMP, HTTP, ONVIF, FFmpeg, Homekit) and re-broadcast it in multiple output formats including RTSP, WebRTC, HLS, MSE, and HomeKit.
go2rtc can share one camera connection between several consumers, including Frigate, Home Assistant dashboards, and RTSP viewers. This helps cameras with limited simultaneous connections. The number of viewers still depends on server resources, network bandwidth, and the streams requested.
Why Use go2rtc with IP Cameras?
Share a camera source between Frigate, Home Assistant, and SmartRTSP. Reusing one named stream can reduce direct camera connections.
go2rtc offers WebRTC and other browser playback outputs. Playback depends on the camera's codecs and the browser; some combinations require transcoding.
Home Assistant can manage go2rtc for camera playback. A separate go2rtc app or server has its own configuration and ports.
go2rtc includes a HomeKit bridge for compatible camera streams. Check its codec and configuration requirements before setting up Apple Home.
go2rtc RTSP URL Format
Standalone go2rtc listens for RTSP client connections on port 8554 by default. Each stream defined in your go2rtc.yaml gets its own RTSP endpoint:
Examples:
SmartRTSP tip: Enter any of these URLs directly in SmartRTSP on your iPhone — tap + → Manual URL → paste the go2rtc RTSP URL → Connect.
go2rtc RTSP restream not working?
Check which device returned 401
- Camera source login
- Open the camera URL from the go2rtc host. If the source keeps returning 401, check the camera’s local streaming account. Encode reserved characters once in credentials embedded in the source URL.
- Restream viewer login
- Open the named restream from your viewing device. Use the go2rtc or Frigate host address and the configured RTSP port. If the restream keeps returning 401, check its viewer username and password.
Frigate’s source URL and password checks
If the viewer gets 404 from go2rtc, match the URL path to the exact stream name in go2rtc.yaml or Frigate. If the go2rtc log shows a 404 from the camera, check the camera’s RTSP path. For a timeout, check whether the viewer can reach the host and port.
go2rtc RTSP has video but no audio?
Run this check on your local network. Replace the host, port and stream name with your restream details, then run it again with the camera’s own RTSP URL for the same feed. Look for an audio track and its codec.
ffprobe -v error -rtsp_transport tcp -show_entries stream=codec_type,codec_name -of compact "rtsp://go2rtc-host:8554/front_door"
If the camera’s own stream has no audio track, check that it has a microphone and that audio is enabled for that exact channel and stream. Selecting AAC in a URL cannot supply missing audio.
If the original stream has audio but your viewer cannot play its format, add an AAC audio source under the same stream name. Keep your existing camera URL. In Frigate, merge the streams entry into the existing go2rtc block. FFmpeg must be available to go2rtc.
streams:
front_door:
- "rtsp://CAMERA_HOST:554/STREAM_PATH"
- "ffmpeg:front_door#audio=aac"
Use this URL to select the existing H.264 or H.265 video and the AAC audio track. The URL selects tracks. The FFmpeg source in the configuration produces AAC. Reopen the stream, repeat the check and listen for sound.
rtsp://go2rtc-host:8554/front_door?video=h264,h265&audio=aac
Built-in Home Assistant ports
Home Assistant’s built-in go2rtc uses RTSP port 18554 internally. Other devices on your network cannot connect to that port. WebRTC uses 18555, and the HTTP API on 11984 is available only when the debug UI is enabled.
To watch in SmartRTSP from another device, use the camera’s own RTSP URL if available, or set up and use an RTSP restream in Frigate or standalone go2rtc.
official Home Assistant integration documentation · Home Assistant Core default port configuration
Installing go2rtc
Option 1 · go2rtc app on Home Assistant OS
On Home Assistant OS, install the separate go2rtc app from the developer’s repository.
- In Home Assistant, go to Settings → Apps
- Add the repository
https://github.com/AlexxIT/hassio-addons, then install go2rtc - Start the app and open the web interface
- Edit
go2rtc.yamlto add your camera streams
Option 2: Docker
Use Docker Engine on Linux, or Docker Desktop 4.34 or later with Linux containers and host networking enabled.
Save go2rtc.yaml in an existing folder. Replace /path/to/config with the path to that folder before running the command.
Which RTSP port should I use with Docker?
With a Docker bridge network, a mapping of 28554:8554 sends connections on host port 28554 to container port 8554. In your player, use the host’s local address and port 28554.
rtsp://go2rtc-host:28554/front_doorRun this on the Docker host to check its mapping. Replace go2rtc with your container name and 8554 with its configured RTSP port.
docker port go2rtc 8554/tcpA mapping to 127.0.0.1 is reachable only on the Docker host. Keep access limited to trusted devices.
With Docker host networking, the player uses the port in rtsp.listen. If that port is in use, choose a free one in the go2rtc configuration and update the viewer URL.
Option 3: Direct Binary (Linux/macOS/Windows)
Test go2rtc without a camera
This test uses standalone go2rtc and FFmpeg on your PATH. Download the sample into a new folder, save the configuration below as sample-go2rtc.yaml in that folder, and start go2rtc from there.
Download the 60-second video and audio sample
streams:
sample: ffmpeg:./sample.mp4
rtsp:
listen: "127.0.0.1:28554"
api:
listen: ""
srtp:
listen: ""
webrtc:
listen: ""go2rtc -c sample-go2rtc.yamlOpen a second terminal on the same computer and play the local RTSP stream. You should see a moving color pattern and hear a steady tone.
ffplay -rtsp_transport tcp rtsp://127.0.0.1:28554/sampleWith the test server still running, request a stream that was never configured. The expected response is 404.
ffprobe -v error -rtsp_transport tcp rtsp://127.0.0.1:28554/missingVerified with go2rtc 1.10.0 on a Mac with Apple silicon. The /sample stream delivered decodable H.264 video and AAC audio. The /missing stream returned 404.
If the sample plays, try your camera’s source URL next. If it does not play, check that sample.mp4 is next to the configuration file and that go2rtc can find FFmpeg. Stop the test server when you finish.
go2rtc.yaml: Adding RTSP Camera Streams
Standalone go2rtc reads go2rtc.yaml from its working directory by default. The streams: section maps names to sources. Use separate names for main and sub-streams when you want to choose their quality explicitly.
Local Network Configuration Example
This example keeps the API on the server itself and requires credentials for RTSP viewers on other devices. Open the Web UI on that server at http://127.0.0.1:1984. The viewer URL is rtsp://viewer:YOUR_PASSWORD@go2rtc-host:8554/frontdoor. Restrict port 8554 to trusted viewers with your local firewall; authentication does not encrypt RTSP.
Verify one stream from source to viewer
For one viewer that already plays the camera reliably, use the camera URL directly. A named go2rtc stream helps when Frigate, Home Assistant and other viewers need to share one upstream connection.
- Open the camera’s source URL directly with VLC or FFplay on the go2rtc host.
- Set that URL as the source for frontdoor in go2rtc.yaml. Restart go2rtc and open its local Web UI on port 1984 to confirm the stream name.
- In the viewer, open the go2rtc RTSP URL on port 8554. Use the go2rtc viewer credentials when configured and check video and audio separately.
ffprobe -rtsp_transport tcp -show_entries stream=codec_type,codec_name rtsp://127.0.0.1:8554/frontdoor
The 127.0.0.1 command checks the output on the go2rtc host. go2rtc skips restream authentication on loopback. Test from your viewing device to confirm the restream credentials.
Local check on 2026-11-11 with go2rtc v1.9.15. FFmpeg published a synthetic source to MediaMTX and decoded the go2rtc output over TCP. The output contained 640 × 360 H.264 video at 15 fps and AAC audio.
Generate the same local RTSP test signal
Separate Main and Sub-Stream Names
Adding an ONVIF Source by IP
After editing go2rtc.yaml, restart go2rtc and inspect the named stream in the local Web UI. If the source cannot open there, check the camera URL and credentials before troubleshooting the viewer. See the maintainer's RTSP server and authentication documentation.
go2rtc Source URLs by Camera Brand
| Brand | go2rtc streams: entry |
|---|---|
| Reolink | rtsp://CAMERA_USER:CAMERA_PASS@CAMERA_IP:PORT/Preview_01_main |
| Hikvision | rtsp://CAMERA_USER:CAMERA_PASS@CAMERA_IP:PORT/Streaming/channels/101 |
| Dahua | rtsp://admin:pass@ip:554/cam/realmonitor?channel=1&subtype=0 |
| Axis | rtsp://root:pass@ip/axis-media/media.amp |
| Tapo | rtsp://camera_user:camera_password@ip:554/stream1 |
| Amcrest | rtsp://admin:pass@ip:554/cam/realmonitor?channel=1&subtype=0 |
| ONVIF-compatible camera | onvif://user:pass@ip |
These are example paths for supported models; verify the exact camera and firmware. Tapo uses its separate Camera Account. See the full RTSP URL list → for more brands.
go2rtc with Frigate NVR
- For a new camera, open Settings → Global configuration → Camera management → Add Camera if your Frigate version includes the wizard. It configures the named restream and live view mapping.
- For an existing camera, check Settings → System → go2rtc Streams for its source. If it is missing, choose Add stream and enter the camera’s documented stream URL. Copy the exact stream name into your viewer URL.
- If live view works in Frigate but fails in Home Assistant, match the primary go2rtc stream name to the Frigate camera name or explicitly map it under live → streams. For a separate RTSP player, use the Frigate host’s LAN address and configured RTSP port.
For manual setup, adapt this example in Frigate’s config.yaml.
Use the same stream name from go2rtc.streams in your viewer URL. If you enable RTSP authentication, supply those restream credentials in the viewer. Follow the official Frigate restream guide for authentication and Docker port configuration.
Home Assistant + Frigate users: Open the named restream in SmartRTSP when its configured host RTSP port is reachable from your local network.
Viewing go2rtc Streams in SmartRTSP
SmartRTSP can view compatible go2rtc RTSP restreams. Check source and viewer codec support, credentials, and network reachability before connecting. A shared restream can reduce direct connections to cameras that limit concurrent viewers.
- 1. Confirm the named source opens in the Web UI on the go2rtc server. With the local API configuration above, open http://127.0.0.1:1984 on that server.
- 2. Open SmartRTSP on the device where you want to watch.
- 3. Tap + → Manual URL
- 4. Paste the complete local RTSP address using the configured viewer port. For a password-protected restream, use its own RTSP account.
- 5. Connect and confirm video playback. If it fails, check the stream name, viewer credentials, LAN firewall, and codec support.
Note: go2rtc streams are available on your local network. For remote access from outside your home, connect via VPN first, then use the same RTSP URL with the internal IP.
Official setup and security references
Reviewed October 18, 2026. The examples distinguish standalone go2rtc, Frigate restreaming, and Home Assistant's managed integration. Check the documentation for the installation and version you run.
go2rtc FAQ
Does go2rtc re-encode the stream?
A compatible RTSP source can be restreamed without video re-encoding, preserving the encoded video quality. Forwarding still uses CPU and bandwidth. Explicit FFmpeg transcoding, such as converting a codec for a browser, adds processing work.
What are the default go2rtc ports?
Standalone go2rtc uses TCP 1984 for the Web UI and API, TCP 8554 for RTSP, and TCP or UDP 8555 for direct WebRTC. Check your configured ports in Frigate or Home Assistant.
Can go2rtc replace a dedicated NVR?
go2rtc is a streaming server, not an NVR — it does not record. For recording, pair it with Frigate NVR (which uses go2rtc internally) or another DVR solution. go2rtc's job is stream re-broadcasting and format conversion.
Is go2rtc free and open source?
Yes. go2rtc is fully open source (MIT license) and free to use. It is maintained by AlexxIT on GitHub.
SmartRTSP
Watch a compatible camera or recorder’s RTSP stream on your local network. SmartRTSP is available for iPhone, iPad, Mac, Apple TV, Windows and Android, including compatible Android TV and Google TV devices with Google Play.
Choose your device and download SmartRTSP