Zum Hauptinhalt springen

RTSP, ONVIF & Smart Home

In der App Einstellungen → RTSP / ONVIF → RTSP aktivieren einschalten.

  • RTSP: rtsps://[benutzer]:[passwort]@[ip_address]:8554/live (Hauptstream, H.264) und /live/sub (kleinerer Stream für langsame Verbindungen). Digest-Anmeldung, TLS wenn aktiviert, UDP oder TCP. Zum Testen mpv oder ffplay nutzen (VLC kommt mit selbstsignierten RTSPS-Zertifikaten schlecht zurecht).
  • ONVIF: https://[ip_address]:8000/onvif/device_service (Profile S, WS-Discovery, Fotos unter /onvif/snapshot.jpg, Bewegungsereignisse über PullPoint und WS-BaseNotification). Die Erkennung funktioniert nur im selben Netz.
  • Home Assistant: das Handy mit der ONVIF-Integration hinzufügen (Host https://[ip_address], Port 8000) oder den MJPEG-Stream mit der MJPEG-IP-Kamera-Integration nutzen.

Beispiel für Frigate (go2rtc):

go2rtc:
streams:
growcinema:
- "rtsps://[benutzer]:[passwort]@[ip_address]:8554/live"
growcinema-sub:
- "rtsps://[benutzer]:[passwort]@[ip_address]:8554/live/sub"

cameras:
growcinema:
enabled: true
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/growcinema
input_args: preset-rtsp-restream
roles:
- record
- path: rtsp://127.0.0.1:8554/growcinema-sub
input_args: preset-rtsp-restream
roles:
- detect

Ohne RTSP kann https://[benutzer]:[passwort]@[ip_address]:4444/video/h264 als go2rtc-Quelle dienen. Sonderzeichen im Passwort URL-kodieren: python3 -c 'import urllib.parse; print(urllib.parse.quote(input(), safe=""))'.