I thought I was doing so well. I am 3 weeks into my Unraid journey, and ran into the first problem I have not been able to solve on my own, so this gets to be my first post asking for help. I know that I have been lurking here for quite some time, and hope I give all the pertinent information that is needed.
Environment:
I have a Wyze Cam V3 wuth the RTSP firmware 4.61.0.1
Running unraid 6.9.2
GPU NVIDIA GeForce GTX 750 Ti
Nvidia Plugin installed and confirmed working in Plex Container for hardware transcoding
It is not passed through to any VM
Latest version of frigate-nvidia container
Extra Parameters: --runtime=nvidia --shm-size=5G
NVIDIA_DRIVER_CAPABILITIES: compute,utility,video
Frigate Config.yml File:
mqtt:
host: w.x.y.z
port: 1884
client_id: aaaaaaaaa
user: bbbbbbbbbb
password: cccccccccc
cameras:
#WYZE Cam V3 with FW 4.61.0.1
Garage:
ffmpeg:
inputs:
- path: rtsp://ddddddd:eeeeeee@fffffffff/live
roles:
- detect
- rtmp
detect:
width: 1920
height: 1080
fps: 5
motion:
mask:
#Tree by Camera
- 147,149,251,85,425,60,655,42,714,0,0,0,0,88,0,259
#Tree by door
- 1647,0,1658,125,1513,160,1461,217,1410,182,1420,137,1272,108,1364,0
#Across the street
- 611,0,640,41,652,100,598,175,499,163,487,66,532,0
zones:
MySpot:
coordinates: 1462,378,1514,151,1676,116,1649,0,1920,0,1920,1080,670,1080
Common:
coordinates: 500,108,589,293,789,266,1066,201,1264,147,1359,167,1370,230,1483,289,1414,415,1116,702,698,1080,0,1080,0,256
record:
# Optional: Enable recording (default: shown below)
enabled: True
# Optional: Number of days to retain recordings regardless of events (default: shown below)
# NOTE: This should be set to 0 and retention should be defined in events section below
# if you only want to retain recordings of events.
retain_days: 0
# Optional: Event recording settings
events:
# Optional: Number of seconds before the event to include (default: shown below)
pre_capture: 8
# Optional: Number of seconds after the event to include (default: shown below)
post_capture: 8
retain:
# Required: Default retention days (default: shown below)
default: 10
snapshots:
# Optional: Enable writing jpg snapshot to /media/frigate/clips (default: shown below)
# This value can be set via MQTT and will be updated in startup based on retained value
enabled: True
# Optional: print a timestamp on the snapshots (default: shown below)
timestamp: True
# Optional: draw bounding box on the snapshots (default: shown below)
bounding_box: True
# Optional: crop the snapshot (default: shown below)
crop: True
# Optional: Restrict snapshots to objects that entered any of the listed zones (default: no required zones)
retain:
# Required: Default retention days (default: shown below)
default: 10
objects:
# Optional: list of objects to track from labelmap.txt (default: shown below)
track:
- person
- car
- motorcycle
- bicycle
- knife
detect:
# Optional: Number of frames without a detection before frigate considers an object to be gone. (default: 5x the frame rate)
max_disappeared: 50
ffmpeg:
# Optional: global ffmpeg args (default: shown below)
global_args: -hide_banner -loglevel warning
# Optional: global hwaccel args (default: shown below)
# NOTE: See hardware acceleration docs for your specific device
hwaccel_args: []
# Optional: global input args (default: shown below)
input_args: -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -stimeout 5000000 -use_wallclock_as_timestamps 1
ffmpeg:
# Optional: global input args (default: shown below)
input_args: -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -stimeout 5000000 -use_wallclock_as_timestamps 1
- -c:v
- h264_cuvid
If I take out
ffmpeg:
# Optional: global input args (default: shown below)
input_args: -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -stimeout 5000000 -use_wallclock_as_timestamps 1
- -c:v
- h264_cuvid
Everything works perfectly.,
Problem:
If I have those entries in the config.yml file I get this in the logs when I start the container up:
[2022-01-14 18:54:39] frigate.app INFO : Starting Frigate (0.9.4-26ae608)
*************************************************************
*************************************************************
*** Your config file is not valid! ***
*** Please check the docs at ***
*** https://docs.frigate.video/configuration/index ***
*************************************************************
*************************************************************
*** Config Validation Errors ***
*************************************************************
4 validation errors for FrigateConfig
detect -> ffmpeg
extra fields not permitted (type=value_error.extra)
detect -> global_args
extra fields not permitted (type=value_error.extra)
detect -> hwaccel_args
extra fields not permitted (type=value_error.extra)
detect -> input_args
extra fields not permitted (type=value_error.extra)
*************************************************************
*** End Config Validation Errors ***
*************************************************************
Target Solution: Working Frigate with a clean start up and able to use the card, and any direction on how to post questions like this to make it easier not only to get help, but if someone has problems later it can help them too.
Thank you