CCTV
Network setup for cameras¶
/etc/systemd/network/enp10s0f3u2.network
[Match]
Name=enp10s0f3u2
[Network]
Address=10.0.0.1/24
IPForward=yes
Add these lines
sudo systemctl enable systemd-networkd
sudo systemctl start systemd-networkd
sudo systemctl enable dhcpd4.service
sudo systemctl start dhcpd4.service
Frigate¶
source: https://ipv6.rs/tutorial/Arch_Linux/Frigate/
sudo pacman -S git python ffmpeg sudo pacman -S docker docker-buildx sudo systemctl start docker sudo systemctl enable docker
git clone --depth 1 https://github.com/blakeblackshear/frigate.git
cd frigate
cp config/config.yml.example config/config.yml
DOCKER_BUILDKIT=1 docker build -f docker/main/Dockerfile -t frigate .
Check out: https://github.com/blakeblackshear/frigate/discussions/4161
Find out the rtsp link for your camera. For mine it turned out to be:
ffmpeg -i "rtsp://admin:L288B3D8@10.0.0.12:554/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif" result.mp4
proto=Onvif
Without "proto=Onvif" I got no stream.
Where L288B3D8 was the safety code written on camera. In the link proto=Onvif was necessary. This page really helped: https://www.ispyconnect.com/camera/imou
Finally: