ID 29328455schema v1agg. 2026-11-19
devopsgo2rtc_configNON VERIFICATO SU HW
go2rtc per 4 telecamere RTSP: main H.265 in registrazione + sub H.264 per detection
Parametri impianto
registrazione: continuous
n°
giorni
Risultati
overhead trasporto 3%
Banda live
14,8Mbps
link consigliato 100 Mbit/s
Bitrate registrato
12,3Mbps
payload su disco · continuous
Storage al giorno
132,7GB
Storage grezzo
1,86TB
14 giorni
Storage richiesto
2,23TB
+20% overhead filesystem
Budget PoE
61,6W
4 × 15,4 W (802.3af) lato switch
| Profilo | kbps/sorgente | Flussi | Mbps live | Duty reg. % |
|---|---|---|---|---|
| main | 3072 | 4 | 12,66 | 100 |
| sub | 512 | 4 | 2,11 | 0 |
Costanti fisiche
valori da database
| Parametro | Valore | Unità |
|---|---|---|
| Registrazione | ||
| Modalità | continuous | |
| Retention | 14 | giorni |
| Calcolato (seeder) | ||
| Overhead trasporto | 3 | % |
| Banda aggregata | 14,77 | Mbps |
| Link consigliato | 100 | Mbps |
| Storage al giorno | 132,71 | GB |
| Storage totale | 1,858 | TB |
Bill of Materials / Required Hardware
3 voci · 3 obbligatorie
| Q.tà | Componente | Req. | Acquisto |
|---|---|---|---|
| 1 | Hard Disk 3.5 pollici CMR Videosorveglianza 4 TB storage · Capacita sufficiente per 4 flussi da 3072 kbps continui per 14 giorni (circa 1.8 TB necessari). q: HDD videosorveglianza 3.5 4TB CMR 5400RPM | SÌ | |
| 1 | Switch Gigabit PoE+ 8 porte 10/100/1000 Mbps networking · Gestisce il throughput aggregato continuo dei flussi e alimenta fino a 4 telecamere IP. q: switch 8 porte gigabit poe unmanaged | SÌ | |
| 1 | Mini PC Intel Celeron N5105 8GB RAM 1x GbE compute · Esegue go2rtc e software NVR gestendo l'ingestione di 4 flussi RTSP H.265 e H.264. q: mini pc celeron n5105 8gb ram gigabit | SÌ |
Profili stream memorizzati
| Profilo | Protocollo | Codec | Risoluzione | fps | Bitrate | kbps | GOP | Flussi | Duty reg. % |
|---|---|---|---|---|---|---|---|---|---|
| main | rtsp | h265 | 2560×1440 | 20 | vbr | 3072 | 40 | 4 | 100 |
| sub | rtsp | h264 | 640×360 | 10 | cbr | 512 | 20 | 4 | 0 |
go2rtc.yaml
# go2rtc - generated. Placeholders are resolved from the container environment (.env).
api:
listen: ":1984"
username: ${GO2RTC_USER}
password: ${GO2RTC_PASS}
rtsp:
listen: ":8554"
username: ${GO2RTC_USER}
password: ${GO2RTC_PASS}
webrtc:
listen: ":8555"
streams:
cam01_main: rtsp://${CAM_USER}:${CAM_PASS}@${CAM01_HOST}:554/Streaming/Channels/101
cam01_sub: rtsp://${CAM_USER}:${CAM_PASS}@${CAM01_HOST}:554/Streaming/Channels/102
cam02_main: rtsp://${CAM_USER}:${CAM_PASS}@${CAM02_HOST}:554/Streaming/Channels/101
cam02_sub: rtsp://${CAM_USER}:${CAM_PASS}@${CAM02_HOST}:554/Streaming/Channels/102
cam03_main: rtsp://${CAM_USER}:${CAM_PASS}@${CAM03_HOST}:554/Streaming/Channels/101
cam03_sub: rtsp://${CAM_USER}:${CAM_PASS}@${CAM03_HOST}:554/Streaming/Channels/102
cam04_main: rtsp://${CAM_USER}:${CAM_PASS}@${CAM04_HOST}:554/Streaming/Channels/101
cam04_sub: rtsp://${CAM_USER}:${CAM_PASS}@${CAM04_HOST}:554/Streaming/Channels/102compose.yaml
# Required in .env: CAM_USER, CAM_PASS, GO2RTC_USER, GO2RTC_PASS, CAM01_HOST, CAM02_HOST, CAM03_HOST, CAM04_HOST
services:
go2rtc:
image: alexxit/go2rtc:1.9.9
container_name: go2rtc
network_mode: host # WebRTC/UDP needs the host network
restart: unless-stopped
env_file: .env
volumes:
- ./go2rtc.yaml:/config/go2rtc.yaml:roNote e fonti
- N1Bitrate medi stimati: variano con complessità della scena, rumore notturno IR e funzioni smart codec.
- N2Banda aggregata include overhead di trasporto; link consigliato con margine x1.3.
- N3Storage = payload video registrato, esclusi filesystem, RAID/parità e snapshot.