Proxmox - Frigate - 2 NIC's HELP

killaninja

New Member
Dec 3, 2024
2
0
1
Hi! Firstly thanks in advance to even reading this let alone helping!
I started to use the script made by home automation guy on youtube and have been encountering a few issues.
Setup:
Proxmox - TrueNAS - Docker (Frigate)
1gb nic Motherboard - 3 Reolink POE Camera -> POE Switch (Non VLAN) -> motherboard NIC - bridged from epn1s0 bridge setup as vmbr1
10gb nic pcie - 10gb NIC -> Router (for everything else) bridged from epn1s0 setup as vmbr0

1733261460927.png

I've managed to get Proxmox installed and running as well as installing TrueNAS and setting this share up into docker so that Frigate can record straight to TrueNAS instead of inside of docker.
The aim is to be able to have a NIC used for JUST the camera's so that they can't phone home, but also so that they can't be accessed from anywhere, unless on the local network. This would also mean I would have to setup a VPN which I assume would be using wireguard or something similar.
1733261432057.png

Inside of Portainer I will admit that I'm lost on how to import the 1gb nic over, I've managed to import the 10gb nic and can access the frigate ui on port 5000.
1733261803098.png
1733261826191.png
The other issue I seem to be having is that the frigate install seems to be looking for a camera on ip address 10.0.10.10.... I never set up this ip address and am really confused. Would someone be able to help me get the installation correct?

Here is the config.yml file as well:
GNU nano 7.2 config.yml
# Frigate configuration file for Reolink cameras

mqtt:
Enabled: False

cameras:
front_door:
ffmpeg:
inputs:
- path: rtsp://admin:Password@192.168.100.2:443/h264_stream # Replace with your Reolink camera's RTSP stream URL
roles:
- detect
- record
width: 2560
height: 1920
fps: 30
record:
enabled: True
retain:
days: 7 # Retain recordings for 7 days
snapshots:
enabled: True
retain:
hours: 24 # Keep snapshots for 24 hours

# back_door:
# ffmpeg:
# inputs:
# - path: # Replace with your second Reolink camera's RTSP stream URL
# roles:
# - detect
# - record
# width: 1920
# height: 1080
# fps: 15
# record:
# enabled: True
# retain:
# days: 7
# snapshots:
# enabled: True
# retain:
# hours: 24

# Optional: Object detection settings (modify to match your desired setup)
#detectors:
# coral:
# type: edgetpu
# device: usb

# Recordings and snapshots storage locations (ensure these paths are mounted in the container)
record:
enabled: True
retain:
days: 7 # Keep recordings for 7 days
events:
retention:
days: 7
clips:
enabled: True
retention:
hours: 24

snapshots:
enabled: True
retain:
hours: 24 # Retain snapshots for 24 hours

# Frigate will attempt to use the "frigate_network" as a custom Docker network
# This is optional and depends on your setup.
network:
mode: host # Use the host network mode to ensure Frigate can access cameras and local services

# Optional: Home Assistant integration settings (if you're using Home Assistant)
# If you're using Home Assistant to integrate with Frigate, you would uncomment the following section:
# home_assistant:
# url: "http://homeassistant.local:8123"
# token: "YOUR_LONG_LIVED_ACCESS_TOKEN"

And here is my docker-compose.yaml file:
GNU nano 7.2 docker-compose.yaml
version: '3.9'

services:

frigate:
container_name: frigate
privileged: true
restart: unless-stopped
image: ghcr.io/blakeblackshear/frigate:stable
shm_size: "128mb" # update for your cameras based on calculation above
devices:
- /dev/bus/usb:/dev/bus/usb
- /dev/dri/renderD128 # for intel hwaccel, needs to be updated for your hardware
volumes:
- /etc/localtime:/etc/localtime:ro
- /opt/frigate/config:/config:ro
- /cctv_clips:/media/frigate
- type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear
target: /tmp/cache
tmpfs:
size: 1000000000
ports:
- "5000:5000"
- "1935:1935" # RTMP feeds
environment:
FRIGATE_RTSP_PASSWORD: "Password"

Many thanks in advance!
 

Attachments

  • 1733261927059.png
    1733261927059.png
    64.4 KB · Views: 0
Hi! Firstly thanks in advance to even reading this let alone helping!
I started to use the script made by home automation guy on youtube and have been encountering a few issues.
Setup:
Proxmox - TrueNAS - Docker (Frigate)
1gb nic Motherboard - 3 Reolink POE Camera -> POE Switch (Non VLAN) -> motherboard NIC - bridged from epn1s0 bridge setup as vmbr1
10gb nic pcie - 10gb NIC -> Router (for everything else) bridged from epn1s0 setup as vmbr0

View attachment 78616

I've managed to get Proxmox installed and running as well as installing TrueNAS and setting this share up into docker so that Frigate can record straight to TrueNAS instead of inside of docker.
The aim is to be able to have a NIC used for JUST the camera's so that they can't phone home, but also so that they can't be accessed from anywhere, unless on the local network. This would also mean I would have to setup a VPN which I assume would be using wireguard or something similar.
View attachment 78615

Inside of Portainer I will admit that I'm lost on how to import the 1gb nic over, I've managed to import the 10gb nic and can access the frigate ui on port 5000.
View attachment 78617
View attachment 78618
The other issue I seem to be having is that the frigate install seems to be looking for a camera on ip address 10.0.10.10.... I never set up this ip address and am really confused. Would someone be able to help me get the installation correct?

Here is the config.yml file as well:
GNU nano 7.2 config.yml
# Frigate configuration file for Reolink cameras

mqtt:
Enabled: False

cameras:
front_door:
ffmpeg:
inputs:
- path: rtsp://admin:Password@192.168.100.2:443/h264_stream # Replace with your Reolink camera's RTSP stream URL
roles:
- detect
- record
width: 2560
height: 1920
fps: 30
record:
enabled: True
retain:
days: 7 # Retain recordings for 7 days
snapshots:
enabled: True
retain:
hours: 24 # Keep snapshots for 24 hours

# back_door:
# ffmpeg:
# inputs:
# - path: # Replace with your second Reolink camera's RTSP stream URL
# roles:
# - detect
# - record
# width: 1920
# height: 1080
# fps: 15
# record:
# enabled: True
# retain:
# days: 7
# snapshots:
# enabled: True
# retain:
# hours: 24

# Optional: Object detection settings (modify to match your desired setup)
#detectors:
# coral:
# type: edgetpu
# device: usb

# Recordings and snapshots storage locations (ensure these paths are mounted in the container)
record:
enabled: True
retain:
days: 7 # Keep recordings for 7 days
events:
retention:
days: 7
clips:
enabled: True
retention:
hours: 24

snapshots:
enabled: True
retain:
hours: 24 # Retain snapshots for 24 hours

# Frigate will attempt to use the "frigate_network" as a custom Docker network
# This is optional and depends on your setup.
network:
mode: host # Use the host network mode to ensure Frigate can access cameras and local services

# Optional: Home Assistant integration settings (if you're using Home Assistant)
# If you're using Home Assistant to integrate with Frigate, you would uncomment the following section:
# home_assistant:
# url: "http://homeassistant.local:8123"
# token: "YOUR_LONG_LIVED_ACCESS_TOKEN"

And here is my docker-compose.yaml file:
GNU nano 7.2 docker-compose.yaml
version: '3.9'

services:

frigate:
container_name: frigate
privileged: true
restart: unless-stopped
image: ghcr.io/blakeblackshear/frigate:stable
shm_size: "128mb" # update for your cameras based on calculation above
devices:
- /dev/bus/usb:/dev/bus/usb
- /dev/dri/renderD128 # for intel hwaccel, needs to be updated for your hardware
volumes:
- /etc/localtime:/etc/localtime:ro
- /opt/frigate/config:/config:ro
- /cctv_clips:/media/frigate
- type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear
target: /tmp/cache
tmpfs:
size: 1000000000
ports:
- "5000:5000"
- "1935:1935" # RTMP feeds
environment:
FRIGATE_RTSP_PASSWORD: "Password"

Many thanks in advance!
Here is the log file from inside of Portainer:
2024-12-03 21:40:27.552022912 [2024-12-03 21:40:27] frigate.video ERROR : name_of_your_camera: Unable to read frames from ffmpeg process.
2024-12-03 21:40:27.552065858 [2024-12-03 21:40:27] frigate.video ERROR : name_of_your_camera: ffmpeg process is not running. exiting capture thread...
2024-12-03 21:40:32.543199136 [2024-12-03 21:40:32] watchdog.name_of_your_camera ERROR : Ffmpeg process crashed unexpectedly for name_of_your_camera.
2024-12-03 21:40:32.546271859 [2024-12-03 21:40:32] watchdog.name_of_your_camera ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
2024-12-03 21:40:32.546357124 [2024-12-03 21:40:32] ffmpeg.name_of_your_camera.detect ERROR : [tcp @ 0x56e7f74b2140] Connection to tcp://10.0.10.10:554?timeout=5000000 failed: Connection timed out
2024-12-03 21:40:32.546387235 [2024-12-03 21:40:32] ffmpeg.name_of_your_camera.detect ERROR : rtsp://10.0.10.10:554/rtsp: Connection timed out
2024-12-03 21:40:37.558750266 [2024-12-03 21:40:37] frigate.video ERROR : name_of_your_camera: Unable to read frames from ffmpeg process.
2024-12-03 21:40:37.558808729 [2024-12-03 21:40:37] frigate.video ERROR : name_of_your_camera: ffmpeg process is not running. exiting capture thread...
2024-12-03 21:40:42.552970111 [2024-12-03 21:40:42] watchdog.name_of_your_camera ERROR : Ffmpeg process crashed unexpectedly for name_of_your_camera.
2024-12-03 21:40:42.553055245 [2024-12-03 21:40:42] watchdog.name_of_your_camera ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
2024-12-03 21:40:42.553124745 [2024-12-03 21:40:42] ffmpeg.name_of_your_camera.detect ERROR : [tcp @ 0x5d205b83c140] Connection to tcp://10.0.10.10:554?timeout=5000000 failed: Connection timed out
2024-12-03 21:40:42.553126350 [2024-12-03 21:40:42] ffmpeg.name_of_your_camera.detect ERROR : rtsp://10.0.10.10:554/rtsp: Connection timed out
2024-12-03 21:40:47.565849524 [2024-12-03 21:40:47] frigate.video ERROR : name_of_your_camera: Unable to read frames from ffmpeg process.
2024-12-03 21:40:47.565908807 [2024-12-03 21:40:47] frigate.video ERROR : name_of_your_camera: ffmpeg process is not running. exiting capture thread...
2024-12-03 21:40:52.559789338 [2024-12-03 21:40:52] watchdog.name_of_your_camera ERROR : Ffmpeg process crashed unexpectedly for name_of_your_camera.
2024-12-03 21:40:52.559879224 [2024-12-03 21:40:52] watchdog.name_of_your_camera ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
2024-12-03 21:40:52.559881151 [2024-12-03 21:40:52] ffmpeg.name_of_your_camera.detect ERROR : [tcp @ 0x59f1026b5140] Connection to tcp://10.0.10.10:554?timeout=5000000 failed: Connection timed out
2024-12-03 21:40:52.559921710 [2024-12-03 21:40:52] ffmpeg.name_of_your_camera.detect ERROR : rtsp://10.0.10.10:554/rtsp: Connection timed out
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!