<h1 align="center">
![go2rtc](assets/logo.gif)
<br>
[![stars](https://img.shields.io/github/stars/AlexxIT/go2rtc?style=flat-square&logo=github)](https://github.com/AlexxIT/go2rtc/stargazers)
[![docker pulls](https://img.shields.io/docker/pulls/alexxit/go2rtc?style=flat-square&logo=docker&logoColor=white&label=pulls)](https://hub.docker.com/r/alexxit/go2rtc)
[![releases](https://img.shields.io/github/downloads/AlexxIT/go2rtc/total?color=blue&style=flat-square&logo=github)](https://github.com/AlexxIT/go2rtc/releases)
[![goreport](https://goreportcard.com/badge/github.com/AlexxIT/go2rtc)](https://goreportcard.com/report/github.com/AlexxIT/go2rtc)
</h1>
Ultimate camera streaming application with support RTSP, WebRTC, HomeKit, FFmpeg, RTMP, etc.
![](assets/go2rtc.png)
- zero-dependency and zero-config [small app](#go2rtc-binary) for all OS (Windows, macOS, Linux, ARM)
- zero-delay for many supported protocols (lowest possible streaming latency)
- streaming from [RTSP](#source-rtsp), [RTMP](#source-rtmp), [DVRIP](#source-dvrip), [HTTP](#source-http) (FLV/MJPEG/JPEG/TS), [USB Cameras](#source-ffmpeg-device) and [other sources](#module-streams)
- streaming from any sources, supported by [FFmpeg](#source-ffmpeg)
- streaming to [RTSP](#module-rtsp), [WebRTC](#module-webrtc), [MSE/MP4](#module-mp4), [HomeKit](#module-homekit) [HLS](#module-hls) or [MJPEG](#module-mjpeg)
- [publish](#publish-stream) any source to popular streaming services (YouTube, Telegram, etc.)
- first project in the World with support streaming from [HomeKit Cameras](#source-homekit)
- support H265 for WebRTC in browser (Safari only, [read more](https://github.com/AlexxIT/Blog/issues/5))
- on the fly transcoding for unsupported codecs via [FFmpeg](#source-ffmpeg)
- play audio files and live streams on some cameras with [speaker](#stream-to-camera)
- multi-source 2-way [codecs negotiation](#codecs-negotiation)
- mixing tracks from different sources to single stream
- auto match client supported codecs
- [2-way audio](#two-way-audio) for some cameras
- streaming from private networks via [ngrok](#module-ngrok)
- can be [integrated to](#module-api) any smart home platform or be used as [standalone app](#go2rtc-binary)
**Inspired by:**
- series of streaming projects from [@deepch](https://github.com/deepch)
- [webrtc](https://github.com/pion/webrtc) go library and whole [@pion](https://github.com/pion) team
- [rtsp-simple-server](https://github.com/aler9/rtsp-simple-server) idea from [@aler9](https://github.com/aler9)
- [GStreamer](https://gstreamer.freedesktop.org/) framework pipeline idea
- [MediaSoup](https://mediasoup.org/) framework routing idea
- HomeKit Accessory Protocol from [@brutella](https://github.com/brutella/hap)
- creator of the project's logo [@v_novoseltsev](https://www.instagram.com/v_novoseltsev)
---
* [Fast start](#fast-start)
* [go2rtc: Binary](#go2rtc-binary)
* [go2rtc: Docker](#go2rtc-docker)
* [go2rtc: Home Assistant Add-on](#go2rtc-home-assistant-add-on)
* [go2rtc: Home Assistant Integration](#go2rtc-home-assistant-integration)
* [go2rtc: Dev version](#go2rtc-dev-version)
* [Configuration](#configuration)
* [Module: Streams](#module-streams)
* [Two way audio](#two-way-audio)
* [Source: RTSP](#source-rtsp)
* [Source: RTMP](#source-rtmp)
* [Source: HTTP](#source-http)
* [Source: ONVIF](#source-onvif)
* [Source: FFmpeg](#source-ffmpeg)
* [Source: FFmpeg Device](#source-ffmpeg-device)
* [Source: Exec](#source-exec)
* [Source: Echo](#source-echo)
* [Source: Expr](#source-expr)
* [Source: HomeKit](#source-homekit)
* [Source: Bubble](#source-bubble)
* [Source: DVRIP](#source-dvrip)
* [Source: Tapo](#source-tapo)
* [Source: Kasa](#source-kasa)
* [Source: GoPro](#source-gopro)
* [Source: Ivideon](#source-ivideon)
* [Source: Hass](#source-hass)
* [Source: ISAPI](#source-isapi)
* [Source: Nest](#source-nest)
* [Source: Roborock](#source-roborock)
* [Source: WebRTC](#source-webrtc)
* [Source: WebTorrent](#source-webtorrent)
* [Incoming sources](#incoming-sources)
* [Stream to camera](#stream-to-camera)
* [Publish stream](#publish-stream)
* [Module: API](#module-api)
* [Module: RTSP](#module-rtsp)
* [Module: RTMP](#module-rtmp)
* [Module: WebRTC](#module-webrtc)
* [Module: HomeKit](#module-homekit)
* [Module: WebTorrent](#module-webtorrent)
* [Module: ngrok](#module-ngrok)
* [Module: Hass](#module-hass)
* [Module: MP4](#module-mp4)
* [Module: HLS](#module-hls)
* [Module: MJPEG](#module-mjpeg)
* [Module: Log](#module-log)
* [Security](#security)
* [Codecs filters](#codecs-filters)
* [Codecs madness](#codecs-madness)
* [Codecs negotiation](#codecs-negotiation)
* [Projects using go2rtc](#projects-using-go2rtc)
* [Camera experience](#cameras-experience)
* [TIPS](#tips)
* [FAQ](#faq)
## Fast start
1. Download [binary](#go2rtc-binary) or use [Docker](#go2rtc-docker) or Home Assistant [Add-on](#go2rtc-home-assistant-add-on) or [Integration](#go2rtc-home-assistant-integration)
2. Open web interface: `http://localhost:1984/`
**Optionally:**
- add your [streams](#module-streams) to [config](#configuration) file
- setup [external access](#module-webrtc) to webrtc
**Developers:**
- write your own [web interface](#module-api)
- integrate [web api](#module-api) into your smart home platform
### go2rtc: Binary
Download binary for your OS from [latest release](https://github.com/AlexxIT/go2rtc/releases/):
- `go2rtc_win64.zip` - Windows 10+ 64-bit
- `go2rtc_win32.zip` - Windows 7+ 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](https://github.com/AlexxIT/XiaomiGateway3), [Wyze cameras](https://github.com/gtxaspec/wz_mini_hacks))
- `go2rtc_mac_amd64.zip` - macOS 10.13+ Intel 64-bit
- `go2rtc_mac_arm64.zip` - macOS ARM 64-bit
Don't forget to fix the rights `chmod +x go2rtc_xxx_xxx` on Linux and Mac.
### go2rtc: Docker
The Docker container [`alexxit/go2rtc`](https://hub.docker.com/r/alexxit/go2rtc) supports multiple architectures including `amd64`, `386`, `arm64`, and `arm`. This container offers the same functionality as the [Home Assistant Add-on](#go2rtc-home-assistant-add-on) but is designed to operate independently of Home Assistant. It comes preinstalled with [FFmpeg](#source-ffmpeg), [ngrok](#module-ngrok), and [Python](#source-echo).
### go2rtc: Home Assistant Add-on
[![](https://my.home-assistant.io/badges/supervisor_addon.svg)](https://my.home-assistant.io/redirect/supervisor_addon/?addon=a889bffc_go2rtc&repository_url=https%3A%2F%2Fgithub.com%2FAlexxIT%2Fhassio-addons)
1. Install Add-On:
- Settings > Add-ons > Plus > Repositories > Add `https://github.com/AlexxIT/hassio-addons`
- go2rtc > Install > Start
2. Setup [Integration](#module-hass)
### go2rtc: Home Assistant Integration
[WebRTC Camera](https://github.com/AlexxIT/WebRTC) custom component can be used on any [Home Assistant installation](https://www.home-assistant.io/installation/), including [HassWP](https://github.com/AlexxIT/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: Dev version
Latest, but maybe unstable version:
- Binary: [latest nightly release](https://nightly.link/AlexxIT/go2rtc/workflows/build/master)
- Docker: `alexxit/go2rtc:master` or `alexxit/go2rtc:master-hardware` versions
- Hass Add-on: `go2rtc master` or `go2rtc master hardware` versions
## Configuration
- by default go2rtc will search `go2rtc.yaml` in the current work directory
-
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
终极摄像机流媒体应用程序,支持 RTSP、WebRTC、HomeKit、FFmpeg、RTMP 等。适用于所有操作系统(Windows、macOS、Linux、ARM)的零依赖、零配置小应用程序对许多支持的协议实现零延迟(最低的流媒体延迟)从RTSP、RTMP、DVRIP、HTTP(FLV/MJPEG/JPEG/TS)、USB 摄像头和其他来源进行流式传输FFmpeg支持从任何来源进行流式传输流式传输至RTSP、WebRTC、MSE/MP4、HomeKit HLS或MJPEG将任何来源发布到流行的流媒体服务(YouTube、Telegram 等)世界上第一个支持HomeKit 摄像头流媒体播放的项目在浏览器中支持用于 WebRTC 的 H265(仅限 Safari,了解更多)通过FFmpeg对不支持的编解码器进行实时转码在某些带扬声器的相机上播放音频文件和直播多源双向编解码器协商将来自不同来源的音轨混合到单个流中自动匹配客户端支持的编解码器部分摄像头支持双向音频通过ngrok从私有网络进行流式传输可以集成到任何智能家居平台或作为独立应用程序
资源推荐
资源详情
资源评论
收起资源包目录
终极摄像机流媒体应用程序,支持 RTSP、RTMP、HTTP-FLV、WebRTC、MSE、HLS、MP4、MJPEG、HomeKit、FFmpeg 等 .zip (363个子文件)
build.cmd 2KB
hardware.Dockerfile 2KB
Dockerfile 2KB
logo.gif 154KB
.gitignore 99B
ffmpeg_test.go 24KB
annexb_test.go 15KB
onvif_test.go 13KB
ffmpeg.go 12KB
amf_test.go 11KB
demuxer.go 10KB
client_pairing.go 9KB
atoms.go 9KB
client.go 9KB
sps.go 8KB
client.go 8KB
payloader.go 8KB
client.go 8KB
conn.go 8KB
server.go 7KB
helpers.go 7KB
api.go 7KB
webrtc.go 7KB
api.go 7KB
conn.go 7KB
client.go 7KB
rtsp_test.go 7KB
accessory_test.go 7KB
client.go 7KB
ascii.go 7KB
tlv8.go 6KB
server.go 6KB
client.go 6KB
producer.go 6KB
rtsp.go 6KB
client.go 6KB
muxer.go 6KB
client.go 6KB
client.go 6KB
server_pairing.go 6KB
producer.go 6KB
rfc2435.go 6KB
pcm.go 5KB
hass.go 5KB
hardware.go 5KB
server.go 5KB
producer.go 5KB
client.go 5KB
codec.go 5KB
milestone.go 5KB
api.go 5KB
consumer.go 5KB
server.go 5KB
homekit.go 5KB
conn.go 5KB
kinesis.go 5KB
exec.go 5KB
codecs.go 5KB
hls.go 5KB
producer.go 5KB
server.go 5KB
rtp.go 5KB
pcm.go 5KB
payloader.go 4KB
adts.go 4KB
rtp.go 4KB
init.go 4KB
consumer.go 4KB
media.go 4KB
request.go 4KB
muxer.go 4KB
stream.go 4KB
server.go 4KB
init.go 4KB
add_consumer.go 4KB
yaml.go 4KB
server.go 4KB
ws.go 4KB
track.go 4KB
producer.go 4KB
dot.go 4KB
amf.go 4KB
consumer.go 4KB
init.go 4KB
rtmp.go 4KB
rtp.go 4KB
helpers.go 4KB
api.go 4KB
producer.go 4KB
flac.go 4KB
rtp.go 4KB
muxer.go 4KB
mp4.go 4KB
openipc.go 3KB
accessory.go 3KB
checksum.go 3KB
accessory.go 3KB
dvrip.go 3KB
connection.go 3KB
log.go 3KB
共 363 条
- 1
- 2
- 3
- 4
资源评论
赵闪闪168
- 粉丝: 1726
- 资源: 6942
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 饼图-数据图表-简约清新 3.pptx
- 饼图-数据图表-简约清新-3.pptx
- 饼图-数据图表-简约圆环-3.pptx
- 简约圆形比例图PPT模板素材-1.pptx
- 饼图-数据图表-简约折线-3.pptx
- 饼图-数据图表-简约线条-3.pptx
- 环形数据对比分析PPT模板-1.pptx
- 饼图-数据图表-简约总分-4.pptx
- 两项比较百分比饼图PPT模板-1.pptx
- 三部分百分比PPT饼图素材-4.pptx
- 三项对比环形饼图PPT模板-4.pptx
- 圆环图-数据图表-三圆并列-4.pptx
- 红灰色调PPT表格模板素材-1.pptx
- 实用的PPT数据表格模板-4.pptx
- 大气商务蓝灰色调PPT表格-1.ppt
- 简单简洁PPT表格模板素材-2.pptx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功