Closed JesusRo closed 3 years ago
What hardware are you running Frigate on? Also, for your config, please paste the contents of the frigate.yml, it's formatting is easier to review.
Hi, @mdelecate The host is a rescued ML330 G6 (already with me for 4 years) with 18G of RAM and a Xeon X5650. May I messed up with the hardware acceleration? I left what I had before but I will test removing anything related.
Below the config files config.yaml
root@machine:/data/containers/frigata# cat config.yml
mqtt:
host: 192.168.169.252
user: frigata
password: #######
detectors:
cpu1:
type: cpu
cpu2:
type: cpu
birdseye:
enabled: True
mode: continuous
ffmpeg:
global_args: -hide_banner
output_args:
record: -f segment -segment_time 60 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c copy
detect: -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c copy
hwaccel_args:
- -hwaccel
- qsv
- -qsv_device
- /dev/dri/renderD128
detect:
enabled: True
max_disappeared: 25
objects:
track:
- person
- cat
- dog
filters:
person:
min_score: 0.6
threshold: 0.8
cat:
min_score: 0.6
threshold: 0.8
record:
enabled: True
retain_days: 30
events:
max_seconds: 300
pre_capture: 5
post_capture: 5
retain:
default: 30
snapshots:
enabled: True
timestamp: True
bounding_box: True
crop: False
retain:
default: 30
rtmp:
enabled: False
live:
height: 1080
quality: 8
cameras:
dalek:
ffmpeg:
input_args:
- -pix_fmt
- yuv420p
inputs:
- path: rtsp://192.168.169.26:8554/unicast
roles:
- detect
- record
- rtmp
detect:
width: 1920
height: 1080
fps: 5
sauron:
ffmpeg:
inputs:
- path: rtsp://192.168.169.11:8554/unicast
roles:
- detect
- record
- rtmp
detect:
width: 1920
height: 1080
fps: 5
and compose one
version: "3.9"
services:
frigate:
container_name: frigate
privileged: true
restart: unless-stopped
image: blakeblackshear/frigate:0.9.1-amd64
devices:
- /dev/dri/renderD128
- /dev/bus/usb:/dev/bus/usb
volumes:
- /etc/localtime:/etc/localtime:ro
- /data/containers/frigata/config.yml:/config/config.yml:ro
- /data/motioneye:/media/frigate
- type: tmpfs
target: /tmp/cache
tmpfs:
size: 1000000000
ports:
- "5000:5000"
- "1935:1935"
environment:
FRIGATE_RTSP_PASSWORD: "#########"
You are overriding the output_args for detect in a way that will definitely break everything. Also, the segment time in the output_args for record should be 10 instead of 60.
HI @blakeblackshear ,
Removed output_args and working fine again. :facepalm:
I must messed up while updating the configuration and didn't save backup of the initial config.
So, solved now. Thanks a lot guys
Describe the problem you are having
I was using version <8.x during some time and now upgraded to latest stable I run over documentation to update my config file but and also was complaining about the db. I just delete db and all recordings (all clean folders) and finally the UI appeared However, cameras now show usual green image and logs show errors with them.
For the cameras before, I didn´t have any input_args (only output_args to have audio) and now I have the feeling I need to tweak it somehow, but no idea what to use.
I tried with the examples of other cameras from docs but no luck
Could you please guide me where I can look at to figuere out what params to us? Thanks!
Version
0.9.1-800f33e
Frigate config file
Relevant log output
FFprobe output from your camera
Frigate stats
Operating system
Debian
Install method
Docker Compose
Coral version
CPU (no coral)
Network connection
Wireless
Camera make and model
Xiaomi Dafang with custom firmware
Any other information that may be helpful
Custom firmware used on the cameras https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks Docker
Host OS