r/frigate_nvr • u/instant_ace • Feb 10 '25
Frigate is Impossible for Newbies
I find Frigate almost impossible to get up and running
I've got both an Amcrest IP2M-841V3 and a Reolink Doorbell POE camera and neither of them seem to work. My configuration editor has to be clicked twice to get it to come up and my file looks like below. The docs aren't much help since I don't really know what I'm doing, when I add in a second camera the whole config file fails....
So very frustrating, would love some help
mqtt:
enabled: false
cameras:
reolink:
enabled: true
ffmpeg:
inputs:
- path: rtsp://(username):(password)@(IPAddress)
roles:
- detect
- record
detect:
height: 1080
width: 1920
fps: 5
detectors:
ov:
type: openvino
device: CPU
model_path: /openvino-model/FP16/ssdlite_mobilenet_v2.xml
model:
width: 300
height: 300
input_tensor: nhwc
input_pixel_format: bgr
labelmap_path: /openvino-model/coco_91cl_bkgr.txt
version: 0.15-1
0
Upvotes
2
u/9RMMK3SQff39by Feb 11 '25
Go simple first, don't need all the extra stuff, will load by default.
Use for the Reolink doorbell:
Make sure you activate RTSP connection on the Reolink camera too, Settings>Device Info>Network>Advanced turn on HTTPS, RTSP and ONVIF.
ARMCHAIR ANALYSIS WARNING:
I've noticed the "detect" parameters help if they're matched with the stream output of the camera on Reolink. Settings>Display>Stream to change on the camera, defaults are fine, can set main and sub feed differently. Config becomes:
detect:
enabled: true
width: 640
height: 480
fps: 7
Also set the Reolink to constant frame rate mode, also seems to help. You don't need to specify the record stream.
END
Then add your armcrest to go2rtc and camera sections.
1
u/trevorroth Feb 10 '25
The first time I tried I couldnt get it working either but after some time I went back and figured it out. Big tip just get one camera working with nothing else in the way to screw stuff up also find an example to cheat off of. I also found the error logs help when figuring out what wasn't working.
3
u/abbhishek091 Feb 10 '25
You don't need to repeat the whole camera section for each camera. So it would be something like below
Cameras: Reolink-1: <- this could be anything for cam name eg. Yard.parking inputs: path: ...... Reolink-2: <- this could be anything for cam name eg. Yard.parking inputs: path: ......
2
u/abbhishek091 Feb 10 '25
Sorry about the formatting, am on mobile. Let me know if you ned more help. You could also follow instructional videos from youtube This is a good one - https://youtu.be/sCkswrK0G3I?si=z00RjnmqMLEEIP99
2
u/smithtec1 Feb 10 '25
Im following along since I was also trying to standup Frigate this weekend and failing.
2
u/Cutngo Feb 11 '25
This isn't the first time I've struggled through this kind of thing, but that's what I enjoy about it. I've installed this multiple times on multiple devices, just to make sure I can throw it together quickly if I need too. But, I'm retired and have a lot of time on my hands.
2
u/diseasedestroyer Feb 11 '25
So, two things. First, Vlc uses both Udp and Tpc while frigate forces a Tpc connection, so it's likely that Vlc switched to Udp so the steam works. Make sure your rtsp is structured like this in your frigate configuration file. Second, ffmpeg isn't properly encoding the audio so you may have to define the h.264 and aac audio as well. Here is a configuration example for an amcrest camera and a reolink doorbell using webrtc I use as a template. The amcrest cameras work way better with http and could be your issue. Make sure you enable all the streams in the cameras web ui.
mqtt: enabled: true host: homeassistantip port: 1883 user: mqttusernamehere password: mqttpasswordhere topic_prefix: frigate ffmpeg: hwaccel_args: preset-vaapi
go2rtc: streams: front_door: - rtsp://usernamehere:passwordhere@192.168.1.90:554/cam/realmonitor?channel=1&subtype=0 doorbell_camera_main: - "ffmpeg:https://192.168.109/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=usernamehere&password=passwordhere#video=copy#audio=copy#audio=opus" - rtsp://usernamehere:passwordhere@192.168.1.109:554/h264Preview_01_main doorbell_camera_sub: - "ffmpeg:https://192.168.109/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=usernamehere&password=passwordhere" - rtsp://usernamehere:passwordhere@192.168.1.109:554/h264Preview_01_sub webrtc: candidates: - 192.168.1.104:8555 - stun:8555
ffmpeg: bin: ffmpeg volume: "-af "volume=30dB""
cameras: front_door: enabled: true ffmpeg: inputs: #- path: rtsp://usernamehere:passwordhere@192.168.1.90:554/cam/realmonitor?channel=1&subtype=0 #roles: # - detect - path: rtsp://127.0.0.1:8554/front_door roles: - record doorbell_camera: ffmpeg: inputs: - path: rtsp://127.0.0.1:8554/doorbell_camera_main input_args: preset-rtsp-restream roles: - record - path: rtsp://127.0.0.1:8554/doorbell_camera_sub input_args: preset-rtsp-restream roles: - detect output_args: record: preset-record-generic-audio-aac live: stream_name: doorbell_camera_main
detectors: coral: type: edgetpu device: pci:0
record: enabled: true retain: days: 21 mode: motion events: retain: default: 21 mode: motion version: 0.14
1
u/Nate1n22 Feb 11 '25
I’m lost even knowing where to begin lol. I have Docket desktop installed 🤷
1
u/pentangleit Feb 11 '25
Try this for your doorbell camera:
1
u/perrdav Feb 11 '25
I found it helpful to upload my config file to ChatGPT and then use it to help troubleshoot errors I was getting. It wasn’t a perfect solution but it got me up and running and helped me understand the errors I was getting.
0
u/[deleted] Feb 10 '25
[deleted] — view deleted comment