Clips not available - help needed since I am fresh out of ideas #608
-
First off: Thanks for all effort and a really cool project ! I love it ! Have it integrated to HASS and running some flows in Node-red to send snapshots to Telegram. I have read almost all forums, docs and bug reports but still can not get clips to work...most likely something really basic but I have lost any ability to come up with something to check. I am fresh out of ideas and welcome any suggestions that could get me moving towards a solution. I suspect I have something wrong with my ffmpeg setup but I really don't know anyting about ffmpeg and how it works to start to understand what alternatives I have. Running on RPI4 (without Coral) - /clips on local SD card (no SMB or NFS). Running 32 bit standard Raspberry PI OS. Docker compose and portainer manages my docker. The little box runs mosquitto and frigate (and portainer). HASS and Node Red on another box. 192.168.1.100 - box running HASS config: detectors:
cpu1:
type: cpu
cpu2:
type: cpu
mqtt:
host: 192.168.1.174
topic_prefix: frigate
ffmpeg:
# Optional: global ffmpeg args (default: shown below)
global_args: -hide_banner -loglevel fatal
# Optional: global hwaccel args (default: shown below)
# NOTE: See hardware acceleration docs for your specific device
# hwaccel_args:
# - -c:v
# - h264_mmal
input_args:
- -avoid_negative_ts
- make_zero
- -flags
- low_delay
- -strict
- experimental
- -fflags
- +genpts+discardcorrupt
- -rtsp_transport
- tcp
- -stimeout
- '5000000'
- -use_wallclock_as_timestamps
- '1' # Optional: global output args
output_args:
detect: -f rawvideo -pix_fmt yuv420p
# Optional: output args for record streams (default: shown below)
record: -f segment -segment_time 60 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c copy -an
# Optional: output args for clips streams (default: shown below)
clips: -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c copy -an
# Optional: output args for rtmp streams (default: shown below)
rtmp: -c:v libx264 -c:a copy -f flv
cameras:
door:
ffmpeg:
inputs:
# Required: the path to the stream
# NOTE: Environment variables that begin with 'FRIGATE_' may be referenced in {}
- path: rtsp://user:pwd@ip
roles:
- detect
- rtmp
- clips
width: 1280
height: 720
fps: 5
best_image_timeout: 60
detect:
enabled: True
max_disappeared: 10
clips:
enabled: True
pre_capture: 5
post_capture: 5
objects:
- person
retain:
default: 10
objects:
person: 15
record:
enabled: False
retain_days: 30
rtmp:
enabled: True
snapshots:
enabled: True
timestamp: True
bounding_box: True
crop: False
retain:
default: 10
objects:
person: 15
mqtt:
enabled: True
timestamp: True
bounding_box: True
crop: True
height: 270
objects:
track:
- person My compose looks like this
The folder for "clips" has the right permissions (and as seen, snapshots are created in it):
Logfiles (nginx) - several errors related to the detection event
And finally a snapshot of the docker-log - some errors due to unstable streams from back camera..but the last one seems to be the cause...
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Try this config to see what ffmpeg says: ...
cameras:
door:
ffmpeg:
inputs:
# Required: the path to the stream
# NOTE: Environment variables that begin with 'FRIGATE_' may be referenced in {}
- path: rtsp://user:pwd@ip
global_args: -hide_banner -loglevel info
roles:
- detect
- rtmp
- clips
... |
Beta Was this translation helpful? Give feedback.
Try this config to see what ffmpeg says: