71 lines
2.6 KiB
YAML
71 lines
2.6 KiB
YAML
# Example rtsp-streamer config. Copy to ~/.config/rtsp-streamer/config.yaml
|
|
# (or point $RTSP_STREAMER_CONFIG at it) and edit. Keep secrets out of it by
|
|
# using password_env instead of an inline password.
|
|
|
|
controller:
|
|
host: 192.168.1.1 # UniFi OS console IP / hostname
|
|
username: viewer # a local Protect user with camera view access
|
|
password_env: RTSP_STREAMER_PASSWORD # read the password from this env var
|
|
verify_tls: false # UniFi ships a self-signed cert
|
|
rtsp_port: 7441 # Protect RTSPS port (default)
|
|
|
|
# Pin the render resolution, or leave empty to auto-detect from the connected
|
|
# output via sway.
|
|
display:
|
|
width: 1920
|
|
height: 1080
|
|
|
|
player:
|
|
hwdec: auto-safe # v4l2m2m/drm on the Pi 4; "no" to force software
|
|
profile: low-latency
|
|
restart_backoff_seconds: 3
|
|
extra_args: [] # e.g. ["--vf=fps=15"] to cap decode load
|
|
|
|
# Camera catalog. Normally populated by `rtsp-streamer discover`; shown here
|
|
# filled in by hand for illustration. Layouts reference cameras by `name`.
|
|
cameras:
|
|
- id: 60a1b2c3d4e5f6 # UniFi Protect camera id (blank for manual entries)
|
|
name: Front Door
|
|
rtsp: rtsps://192.168.1.1:7441/aBcD1234?enableSrtp
|
|
- name: Driveway
|
|
rtsp: rtsps://192.168.1.1:7441/eFgH5678?enableSrtp
|
|
- name: Back Yard
|
|
rtsp: rtsps://192.168.1.1:7441/iJkL9012?enableSrtp
|
|
- name: Garage
|
|
rtsp: rtsps://192.168.1.1:7441/mNoP3456?enableSrtp
|
|
|
|
# Layouts place cameras on a base grid (COLSxROWS). Cameras are "tiles" that
|
|
# may span multiple cells, so you can mix a big main view with small side
|
|
# tiles. Up to 16 cameras per layout. Edit these interactively with
|
|
# `rtsp-streamer tui` (a live ASCII preview shows the arrangement).
|
|
layouts:
|
|
# Simple even grid: four 1x1 tiles on a 2x2.
|
|
- name: quad
|
|
grid: 2x2
|
|
tiles:
|
|
- {camera: Front Door, col: 0, row: 0}
|
|
- {camera: Driveway, col: 1, row: 0}
|
|
- {camera: Back Yard, col: 0, row: 1}
|
|
- {camera: Garage, col: 1, row: 1}
|
|
|
|
# Security-wall style: one big 3x3 main view + a right column of three.
|
|
- name: main-plus
|
|
grid: 4x3
|
|
tiles:
|
|
- {camera: Front Door, col: 0, row: 0, colspan: 3, rowspan: 3}
|
|
- {camera: Driveway, col: 3, row: 0}
|
|
- {camera: Back Yard, col: 3, row: 1}
|
|
- {camera: Garage, col: 3, row: 2}
|
|
|
|
- name: front-focus
|
|
grid: 1x1
|
|
tiles:
|
|
- {camera: Front Door, col: 0, row: 0}
|
|
|
|
# The older one-camera-per-cell "slots" form still works and is upgraded to
|
|
# tiles automatically when you edit it:
|
|
# grid: 3x3
|
|
# slots: [Front Door, Driveway, Back Yard, Garage, "", "", "", "", ""]
|
|
|
|
active_layout: quad
|