Files
ducoterra ef9104c796
All checks were successful
Reese's Arch Toolbox / build-and-push-arch-toolbox (push) Successful in 14s
moving everything to active or retired vs incubating and graduated
2025-04-19 18:52:33 -04:00

39 lines
1.0 KiB
Markdown

# Unifi
## VAAPI Hardware Decoding
```bash
ffmpeg \
-hwaccel vaapi -hwaccel_device /dev/dri/renderD128 \
-rtsp_transport tcp \
-i 'rtsps://192.168.2.1:7441/7IF4VumJ84VoYyP2?enableSrtp' -f matroska -vf 'format=nv12,hwupload' -c:v hevc_vaapi -c:a copy -b:v 100M - | ffplay -i -
```
## Unifi Protect Camera Access with ffplay
Create a .desktop file like so:
```conf
[Desktop Entry]
Name=Unifi Cameras
Exec=ffplay -fflags nobuffer -flags low_delay "rtsps://"
Icon=/home/ducoterra/.icons/unifi_protect.jpg
Type=Application
Actions=doorbell;package;garage;
Keywords=camera,doorbell,package,garage;
[Desktop Action doorbell]
Name=Doorbell
Exec=ffplay -fflags nobuffer -flags low_delay "rtsps://"
Icon=/home/ducoterra/.icons/unifi_protect.jpg
[Desktop Action package]
Name=Package
Exec=ffplay -fflags nobuffer -flags low_delay "rtsps://"
Icon=/home/ducoterra/.icons/unifi_protect.jpg
[Desktop Action garage]
Name=Garage
Exec=ffplay -fflags nobuffer -flags low_delay "rtsps://"
Icon=/home/ducoterra/.icons/unifi_protect.jpg
```