mirror of
https://github.com/AlexxIT/go2rtc.git
synced 2026-04-22 23:57:20 +08:00
2.6 KiB
2.6 KiB
Real-Time Messaging Protocol
This module provides the following features for the RTMP protocol:
- Streaming input - RTMP client
- Streaming output and ingest in
rtmpformat - RTMP server - Streaming output and ingest in
flvformat - FLV server
RTMP Client
You can get a stream from an RTMP server, for example Nginx with nginx-rtmp-module.
Client Configuration
streams:
rtmp_stream: rtmp://192.168.1.123/live/camera1
RTMP Server
Streaming output stream in rtmp format:
ffplay rtmp://localhost:1935/camera1
Streaming ingest stream in rtmp format:
ffmpeg -re -i BigBuckBunny.mp4 -c copy -f flv rtmp://localhost:1935/camera1
Server Configuration
By default, the RTMP server is disabled.
rtmp:
listen: ":1935" # by default - disabled!
FLV Server
Streaming output in flv format.
ffplay http://localhost:1984/stream.flv?src=camera1
Streaming ingest in flv format.
ffmpeg -re -i BigBuckBunny.mp4 -c copy -f flv http://localhost:1984/api/stream.flv?dst=camera1
Tested clients
| From | To | Comment |
|---|---|---|
| go2rtc | Reolink RLC-520A fw. v3.1.0.801 | OK |
go2rtc.yaml
streams:
rtmp-reolink1: rtmp://192.168.10.92/bcs/channel0_main.bcs?channel=0&stream=0&user=admin&password=password
rtmp-reolink2: rtmp://192.168.10.92/bcs/channel0_sub.bcs?channel=0&stream=1&user=admin&password=password
rtmp-reolink3: rtmp://192.168.10.92/bcs/channel0_ext.bcs?channel=0&stream=1&user=admin&password=password
Tested server
| From | To | Comment |
|---|---|---|
| OBS 31.0.2 | go2rtc | OK |
| OpenIPC 2.5.03.02-lite | go2rtc | OK |
| FFmpeg 6.1 | go2rtc | OK |
| GoPro Black 12 | go2rtc | OK, 1080p, 5000kbps |
go2rtc.yaml
rtmp:
listen: :1935
streams:
tmp:
OBS
Settings > Stream:
- Service: Custom
- Server: rtmp://192.168.10.101/tmp
- Stream Key:
<empty> - Use auth:
<disabled>
OpenIPC
WebUI > Majestic > Settings > Outgoing
- Enable
- Address: rtmp://192.168.10.101/tmp
- Save
- Restart
FFmpeg
ffmpeg -re -i bbb.mp4 -c copy -f flv rtmp://192.168.10.101/tmp
GoPro
GoPro Quik > Camera > Translation > Other