No events being saved
See original GitHub issueDescribe the bug No events are being recorded. This was working before but has stopped, and I cannot figure out what has changed. If I watch the camera with bounding boxes it is highlighting the motion and identifying the object correctly, but no events are recorded. I do see .jpg files being created in the media folder, but when I copy them off to view they are invalid files. As such I think this is possibly an issue with the output/db side. Things I have tried:
- Deleting the docker container and image, plus the entire media folder and db, and recreating docker container from scratch.
- Moving media folder to HDD (instead of SSD) and removing tmpfs
- Commenting out ffmpeg output_args, lowering fps from 10 to 5
- Playing with various “motion” parameters
Version of frigate
Output from /api/version
0.8.4-5043040
Config file Include your full config file wrapped in triple back ticks.
docker-compose.yml
version: '3.9'
services:
frigate:
shm_size: '4gb'
container_name: frigate
privileged: true # this may not be necessary for all setups
restart: unless-stopped
image: blakeblackshear/frigate:stable-amd64
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
- /home/matt/frigate/config.yml:/config/config.yml:ro
- /mnt/data/media:/media/frigate
# - type: tmpfs # Optional: 4GB of memory, reduces SSD/SD Card wear
# target: /tmp/cache
# tmpfs:
# size: 8589934592
ports:
- '5000:5000'
- '1935:1935' # RTMP feeds
environment:
FRIGATE_RTSP_PASSWORD: 'password'
mqtt:
host: <fqdn>
port: 1883
user: <username>
password: <password>
topic_prefix: frigate
motion:
threshold: 5
contour_area: 50
frame_height: 500
detectors:
coral:
type: edgetpu
device: pci
cameras:
####################################################################################
Backyard:
ffmpeg:
hwaccel_args:
- -hwaccel
- vaapi
- -hwaccel_device
- /dev/dri/renderD128
- -hwaccel_output_format
- yuv420p
inputs:
- path: rtsp://frigate:<password>@cam-backyard.<domain>:554/cam/realmonitor?channel=1&subtype=0
global_args: -hide_banner -loglevel info
roles:
- clips
# - rtmp
- detect
# output_args:
# detect: '-f rawvideo -pix_fmt yuv420p'
# record: >-
# -f segment -segment_time 60 -segment_format mp4 -reset_timestamps 1
# -strftime 1 -c copy -codec:a aac
# clips: >-
# -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1
# -strftime 1 -c copy -codec:a aac
# rtmp: '-c copy -f flv -codec:a aac'
width: 2592
height: 1944
fps: 5
motion:
mask:
- 2592,0,2592,695,2138,410,1807,294,1447,228,1247,231,1250,316,817,327,808,230,374,282,370,0
zones:
parking:
coordinates: 376,716,1818,558,1576,423,1153,257,708,297,368,336
porch:
coordinates: 537,1944,1665,1944,2128,1627,1195,727,352,895,387,1350
rtmp:
# Required: Enable the live stream (default: True)
enabled: True
clips:
# Required: enables clips for the camera (default: shown below)
# This value can be set via MQTT and will be updated in startup based on retained value
enabled: True
# Optional: Number of seconds before the event to include in the clips (default: shown below)
pre_capture: 5
# Optional: Number of seconds after the event to include in the clips (default: shown below)
post_capture: 5
# Optional: Objects to save clips for. (default: all tracked objects)
objects:
- person
- car
# Optional: Camera override for retention settings (default: global values)
retain:
# Required: Default retention days (default: shown below)
default: 10
# Optional: Per object retention days
objects:
person: 15
# Optional: Configuration for the jpg snapshots written to the clips directory for each event
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: false
# Optional: draw bounding box on the snapshots (default: shown below)
bounding_box: true
# Optional: crop the snapshot (default: shown below)
crop: False
# # Optional: height to resize the snapshot to (default: original size)
# height: 175
# Optional: Camera override for retention settings (default: global values)
retain:
# Required: Default retention days (default: shown below)
default: 10
# Optional: Per object retention days
objects:
person: 15
objects:
filters:
car:
mask:
- 2592,0,2592,695,2138,410,1807,294,1447,228,1247,231,1250,316,817,327,808,230,374,282,370,0
- 374,883,646,825,562,523,355,555
track:
- person
- cat
- dog
- car
####################################################################################
Back_Porch:
ffmpeg:
hwaccel_args:
- -hwaccel
- vaapi
- -hwaccel_device
- /dev/dri/renderD128
- -hwaccel_output_format
- yuv420p
inputs:
- path: rtsp://frigate:<password>@cam-backporch.<domain>:554/cam/realmonitor?channel=1&subtype=0
global_args: -hide_banner -loglevel info
roles:
- clips
# - rtmp
- detect
# output_args:
# detect: '-f rawvideo -pix_fmt yuv420p'
# record: >-
# -f segment -segment_time 60 -segment_format mp4 -reset_timestamps 1
# -strftime 1 -c copy -codec:a aac
# clips: >-
# -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1
# -strftime 1 -c copy -codec:a aac
# rtmp: '-c copy -f flv -codec:a aac'
width: 2592
height: 1944
fps: 5
motion:
mask:
- 1354,113,1749,180,2156,274,2205,275,2485,397,2511,181,2592,220,2592,0,1915,0,897,0,895,148
zones:
parking:
coordinates: 2046,1944,2282,1530,2399,1242,2452,1052,1507,647,965,462,887,448,834,454,766,459,695,478,498,552,188,707,0,821,0,1944
porch:
coordinates: 2485,655,2525,521,2222,384,2039,454
rtmp:
# Required: Enable the live stream (default: True)
enabled: True
clips:
# Required: enables clips for the camera (default: shown below)
# This value can be set via MQTT and will be updated in startup based on retained value
enabled: True
# Optional: Number of seconds before the event to include in the clips (default: shown below)
pre_capture: 5
# Optional: Number of seconds after the event to include in the clips (default: shown below)
post_capture: 5
# Optional: Objects to save clips for. (default: all tracked objects)
objects:
- person
- car
# Optional: Camera override for retention settings (default: global values)
retain:
# Required: Default retention days (default: shown below)
default: 10
# Optional: Per object retention days
objects:
person: 15
# Optional: Configuration for the jpg snapshots written to the clips directory for each event
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: false
# Optional: draw bounding box on the snapshots (default: shown below)
bounding_box: true
# Optional: crop the snapshot (default: shown below)
crop: False
# # Optional: height to resize the snapshot to (default: original size)
# height: 175
# Optional: Camera override for retention settings (default: global values)
retain:
# Required: Default retention days (default: shown below)
default: 10
# Optional: Per object retention days
objects:
person: 15
objects:
filters:
car:
mask:
- 1354,113,1749,180,2156,274,2205,275,882,0,2511,181,2592,220,2592,0,1915,0,897,0,895,148
track:
- person
- cat
- dog
- car
####################################################################################
Driveway:
ffmpeg:
hwaccel_args:
- -hwaccel
- vaapi
- -hwaccel_device
- /dev/dri/renderD128
- -hwaccel_output_format
- yuv420p
inputs:
- path: rtsp://frigate:<password>@cam-driveway.<domain>:554/cam/realmonitor?channel=1&subtype=0
global_args: -hide_banner -loglevel info
roles:
- clips
# - rtmp
- detect
output_args:
detect: '-f rawvideo -pix_fmt yuv420p'
record: >-
-f segment -segment_time 60 -segment_format mp4 -reset_timestamps 1
-strftime 1 -c copy -codec:a aac
clips: >-
-f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1
-strftime 1 -c copy -codec:a aac
rtmp: '-c copy -f flv -codec:a aac'
width: 2592
height: 1944
fps: 10
motion:
mask:
- 2592,0,2592,118,2592,1140,2294,934,1944,714,1627,591,1482,517,1201,408,1268,315,1384,228,1305,183,1263,204,1183,267,1103,279,1003,290,848,267,777,234,697,189,573,115,0,221,0,0
zones:
parking:
coordinates: 1738,1013,2262,1392,2592,1668,2592,1944,1623,1944,1167,1375,793,1032,267,345,259,175,391,152,501,255
rtmp:
# Required: Enable the live stream (default: True)
enabled: True
clips:
# Required: enables clips for the camera (default: shown below)
# This value can be set via MQTT and will be updated in startup based on retained value
enabled: True
# Optional: Number of seconds before the event to include in the clips (default: shown below)
pre_capture: 5
# Optional: Number of seconds after the event to include in the clips (default: shown below)
post_capture: 5
# Optional: Objects to save clips for. (default: all tracked objects)
objects:
- person
- car
# Optional: Camera override for retention settings (default: global values)
retain:
# Required: Default retention days (default: shown below)
default: 10
# Optional: Per object retention days
objects:
person: 15
# Optional: Configuration for the jpg snapshots written to the clips directory for each event
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: false
# Optional: draw bounding box on the snapshots (default: shown below)
bounding_box: true
# Optional: crop the snapshot (default: shown below)
crop: False
# # Optional: height to resize the snapshot to (default: original size)
# height: 175
# Optional: Camera override for retention settings (default: global values)
retain:
# Required: Default retention days (default: shown below)
default: 10
# Optional: Per object retention days
objects:
person: 15
objects:
filters:
car:
mask:
- 2592,0,2592,118,2592,1140,2294,934,1944,714,259,175,1482,517,1201,408,1268,315,1384,228,1305,183,1263,204,1183,267,1103,279,1003,290,848,267,777,234,697,189,573,115,0,221,0,0
track:
- person
- cat
- dog
- car
####################################################################################
Garage:
ffmpeg:
hwaccel_args:
- -hwaccel
- vaapi
- -hwaccel_device
- /dev/dri/renderD128
- -hwaccel_output_format
- yuv420p
inputs:
- path: rtsp://frigate:<password>@cam-garage.<domain>:554/cam/realmonitor?channel=1&subtype=0
global_args: -hide_banner -loglevel info
roles:
- clips
- rtmp
- detect
output_args:
detect: '-f rawvideo -pix_fmt yuv420p'
record: >-
-f segment -segment_time 60 -segment_format mp4 -reset_timestamps 1
-strftime 1 -c copy -codec:a aac
clips: >-
-f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1
-strftime 1 -c copy -codec:a aac
rtmp: '-c copy -f flv -codec:a aac'
width: 2592
height: 1944
fps: 10
# motion:
# mask:
# - 2560,0,2560,119,2560,955,2389,873,1967,687,1650,547,1538,502,1686,232,1624,209,1575,258,1518,299,1452,352,1384,362,1225,376,1126,354,1074,331,972,295,898,271,751,199,569,216,78,350,0,0
# zones:
# parking:
# coordinates: 1785,950,2560,1417,2560,1920,1775,1920,1167,1375,728,877,369,461,306,282,478,233,667,368
rtmp:
# Required: Enable the live stream (default: True)
enabled: True
clips:
# Required: enables clips for the camera (default: shown below)
# This value can be set via MQTT and will be updated in startup based on retained value
enabled: True
# Optional: Number of seconds before the event to include in the clips (default: shown below)
pre_capture: 5
# Optional: Number of seconds after the event to include in the clips (default: shown below)
post_capture: 5
# Optional: Objects to save clips for. (default: all tracked objects)
objects:
- person
- car
# Optional: Camera override for retention settings (default: global values)
retain:
# Required: Default retention days (default: shown below)
default: 10
# Optional: Per object retention days
objects:
person: 15
# Optional: Configuration for the jpg snapshots written to the clips directory for each event
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: false
# Optional: draw bounding box on the snapshots (default: shown below)
bounding_box: true
# Optional: crop the snapshot (default: shown below)
crop: False
# # Optional: height to resize the snapshot to (default: original size)
# height: 175
# Optional: Camera override for retention settings (default: global values)
retain:
# Required: Default retention days (default: shown below)
default: 10
# Optional: Per object retention days
objects:
person: 15
objects:
# filters:
# car:
# mask:
# - 2560,0,2560,119,2560,955,2389,873,1967,687,1650,547,1538,502,1686,232,1624,209,1575,258,1518,299,1452,352,1384,362,1225,376,1126,354,1074,331,972,295,898,271,751,199,569,216,78,350,0,0
track:
- person
- cat
- dog
- car
# ####################################################################################
Front_Yard:
ffmpeg:
hwaccel_args:
- -hwaccel
- vaapi
- -hwaccel_device
- /dev/dri/renderD128
- -hwaccel_output_format
- yuv420p
inputs:
- path: rtsp://frigate:<password>@cam-frontyard.<domain>:554/cam/realmonitor?channel=1&subtype=0
global_args: -hide_banner -loglevel info
roles:
- clips
# - rtmp
- detect
output_args:
detect: '-f rawvideo -pix_fmt yuv420p'
record: >-
-f segment -segment_time 60 -segment_format mp4 -reset_timestamps 1
-strftime 1 -c copy -codec:a aac
clips: >-
-f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1
-strftime 1 -c copy -codec:a aac
rtmp: '-c copy -f flv -codec:a aac'
width: 2592
height: 1944
fps: 10
motion:
mask:
- 0,606,746,348,1107,285,1639,274,1930,349,2560,493,2560,0,0,0
# zones:
# parking:
# coordinates: 1785,950,2560,1417,2560,1920,1775,1920,1167,1375,728,877,369,461,306,282,478,233,667,368
rtmp:
# Required: Enable the live stream (default: True)
enabled: True
clips:
# Required: enables clips for the camera (default: shown below)
# This value can be set via MQTT and will be updated in startup based on retained value
enabled: True
# Optional: Number of seconds before the event to include in the clips (default: shown below)
pre_capture: 5
# Optional: Number of seconds after the event to include in the clips (default: shown below)
post_capture: 5
# Optional: Objects to save clips for. (default: all tracked objects)
objects:
- person
- car
# Optional: Camera override for retention settings (default: global values)
retain:
# Required: Default retention days (default: shown below)
default: 10
# Optional: Per object retention days
objects:
person: 15
# Optional: Configuration for the jpg snapshots written to the clips directory for each event
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: false
# Optional: draw bounding box on the snapshots (default: shown below)
bounding_box: true
# Optional: crop the snapshot (default: shown below)
crop: False
# # Optional: height to resize the snapshot to (default: original size)
# height: 175
# Optional: Camera override for retention settings (default: global values)
retain:
# Required: Default retention days (default: shown below)
default: 10
# Optional: Per object retention days
objects:
person: 15
objects:
filters:
car:
mask:
- 0,606,746,348,1107,285,1639,274,1930,349,2560,493,2560,0,0,0
track:
- person
- cat
- dog
- car
####################################################################################
Doorbell:
ffmpeg:
hwaccel_args:
- -hwaccel
- vaapi
- -hwaccel_device
- /dev/dri/renderD128
- -hwaccel_output_format
- yuv420p
inputs:
- path: rtsp://admin:dooStSA4!@cam-doorbell.iot.carson-family.com:554/
global_args: -hide_banner -loglevel info
roles:
- clips
# - rtmp
- detect
output_args:
detect: '-f rawvideo -pix_fmt yuv420p'
record: >-
-f segment -segment_time 60 -segment_format mp4 -reset_timestamps 1
-strftime 1 -c copy -codec:a aac
clips: >-
-f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1
-strftime 1 -c copy -codec:a aac
rtmp: '-c copy -f flv -codec:a aac'
width: 1920
height: 1080
fps: 10
motion:
mask:
- 118,660,1920,600,1920,499,114,507
rtmp:
# Required: Enable the live stream (default: True)
enabled: True
clips:
# Required: enables clips for the camera (default: shown below)
# This value can be set via MQTT and will be updated in startup based on retained value
enabled: True
# Optional: Number of seconds before the event to include in the clips (default: shown below)
pre_capture: 5
# Optional: Number of seconds after the event to include in the clips (default: shown below)
post_capture: 5
# Optional: Objects to save clips for. (default: all tracked objects)
objects:
- person
# Optional: Camera override for retention settings (default: global values)
retain:
# Required: Default retention days (default: shown below)
default: 10
# Optional: Per object retention days
objects:
person: 15
# Optional: Configuration for the jpg snapshots written to the clips directory for each event
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: false
# Optional: draw bounding box on the snapshots (default: shown below)
bounding_box: true
# Optional: crop the snapshot (default: shown below)
crop: False
# # Optional: height to resize the snapshot to (default: original size)
# height: 175
# Optional: Camera override for retention settings (default: global values)
retain:
# Required: Default retention days (default: shown below)
default: 10
# Optional: Per object retention days
objects:
person: 15
objects:
# filters:
# car:
# mask:
# - 2592,0,2592,118,2592,1140,2294,934,1944,714,259,175,1482,517,1201,408,1268,315,1384,228,1305,183,1263,204,1183,267,1103,279,1003,290,848,267,777,234,697,189,573,115,0,221,0,0
track:
- person
- cat
- dog
# - car
####################################################################################
# Living_Room:
# ffmpeg:
# hwaccel_args:
# - -hwaccel
# - vaapi
# - -hwaccel_device
# - /dev/dri/renderD128
# - -hwaccel_output_format
# - yuv420p
# inputs:
# - path: rtsp://frigate:<password>@cam-livingroom.<domain>:554/cam/realmonitor?channel=1&subtype=0
# global_args: -hide_banner -loglevel info
# roles:
# # - clips
# # - rtmp
# - detect
# output_args:
# detect: '-f rawvideo -pix_fmt yuv420p'
# record: >-
# -f segment -segment_time 60 -segment_format mp4 -reset_timestamps 1
# -strftime 1 -c copy -codec:a aac
# clips: >-
# -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1
# -strftime 1 -c copy -codec:a aac
# rtmp: '-c copy -f flv -codec:a aac'
# width: 2688
# height: 1520
# fps: 10
# # motion:
# # mask:
# # - 2592,0,2592,118,2592,1140,2294,934,1944,714,1627,591,1482,517,1201,408,1268,315,1384,228,1305,183,1263,204,1183,267,1103,279,1003,290,848,267,777,234,697,189,573,115,0,221,0,0
# # zones:
# # parking:
# # coordinates: 1738,1013,2262,1392,2592,1668,2592,1944,1623,1944,1167,1375,793,1032,267,345,259,175,391,152,501,255
# rtmp:
# # Required: Enable the live stream (default: True)
# enabled: True
# clips:
# # Required: enables clips for the camera (default: shown below)
# # This value can be set via MQTT and will be updated in startup based on retained value
# enabled: False
# # Optional: Number of seconds before the event to include in the clips (default: shown below)
# pre_capture: 5
# # Optional: Number of seconds after the event to include in the clips (default: shown below)
# post_capture: 5
# # Optional: Objects to save clips for. (default: all tracked objects)
# objects:
# - person
# # Optional: Camera override for retention settings (default: global values)
# retain:
# # Required: Default retention days (default: shown below)
# default: 10
# # Optional: Per object retention days
# objects:
# person: 15
# # Optional: Configuration for the jpg snapshots written to the clips directory for each event
# 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: false
# # Optional: draw bounding box on the snapshots (default: shown below)
# bounding_box: true
# # Optional: crop the snapshot (default: shown below)
# crop: False
# # # Optional: height to resize the snapshot to (default: original size)
# # height: 175
# # Optional: Camera override for retention settings (default: global values)
# retain:
# # Required: Default retention days (default: shown below)
# default: 10
# # Optional: Per object retention days
# objects:
# person: 15
# objects:
# # filters:
# # car:
# # mask:
# # - 2592,0,2592,118,2592,1140,2294,934,1944,714,259,175,1482,517,1201,408,1268,315,1384,228,1305,183,1263,204,1183,267,1103,279,1003,290,848,267,777,234,697,189,573,115,0,221,0,0
# track:
# - person
# # - cat
# - dog
# # - car
Frigate container logs
2021-05-18T17:08:29.351849425Z Starting migrations
2021-05-18T17:08:29.351912167Z peewee_migrate INFO : Starting migrations
2021-05-18T17:08:29.358487079Z There is nothing to migrate
2021-05-18T17:08:29.358519283Z peewee_migrate INFO : There is nothing to migrate
2021-05-18T17:08:29.607537283Z detector.coral INFO : Starting detection process: 34
2021-05-18T17:08:29.646570611Z frigate.edgetpu INFO : Attempting to load TPU as pci
2021-05-18T17:08:29.657270356Z frigate.app INFO : Camera processor started for Backyard: 37
2021-05-18T17:08:29.657408987Z frigate.app INFO : Camera processor started for Back_Porch: 38
2021-05-18T17:08:29.657547849Z frigate.app INFO : Camera processor started for Driveway: 45
2021-05-18T17:08:29.657686007Z frigate.app INFO : Camera processor started for Garage: 46
2021-05-18T17:08:29.658626566Z frigate.edgetpu INFO : TPU found
2021-05-18T17:08:29.659832614Z frigate.app INFO : Camera processor started for Front_Yard: 66
2021-05-18T17:08:29.668196764Z frigate.app INFO : Camera processor started for Doorbell: 70
2021-05-18T17:08:29.677134387Z frigate.app INFO : Capture process started for Backyard: 71
2021-05-18T17:08:29.685824231Z frigate.app INFO : Capture process started for Back_Porch: 74
2021-05-18T17:08:29.693961455Z frigate.app INFO : Capture process started for Driveway: 80
2021-05-18T17:08:29.702871500Z frigate.app INFO : Capture process started for Garage: 82
2021-05-18T17:08:29.717549370Z frigate.app INFO : Capture process started for Front_Yard: 89
2021-05-18T17:08:29.737118257Z frigate.app INFO : Capture process started for Doorbell: 92
2021-05-18T17:08:29.896388138Z frigate.mqtt INFO : MQTT connected
2021-05-18T17:12:53.605708272Z [mov,mp4,m4a,3gp,3g2,mj2 @ 0x559ca1b5c140] moov atom not found
2021-05-18T17:12:53.605873434Z /tmp/cache/Driveway-20210518130823.mp4: Invalid data found when processing input
2021-05-18T17:12:53.614393645Z frigate.events INFO : bad file: Driveway-20210518130823.mp4
2021-05-18T17:19:01.332360495Z [mov,mp4,m4a,3gp,3g2,mj2 @ 0x5623ee2a2140] moov atom not found
2021-05-18T17:19:01.332433214Z /tmp/cache/Front_Yard-20210518130825.mp4: Invalid data found when processing input
2021-05-18T17:19:01.378107815Z frigate.events INFO : bad file: Front_Yard-20210518130825.mp4
2021-05-18T17:21:22.876105996Z [mov,mp4,m4a,3gp,3g2,mj2 @ 0x556ee24af140] moov atom not found
2021-05-18T17:21:22.876468744Z /tmp/cache/Backyard-20210518130825.mp4: Invalid data found when processing input
2021-05-18T17:21:22.880078900Z frigate.events INFO : bad file: Backyard-20210518130825.mp4
2021-05-18T17:22:11.113760053Z [mov,mp4,m4a,3gp,3g2,mj2 @ 0x56406ec25140] moov atom not found
2021-05-18T17:22:11.114897502Z /tmp/cache/Garage-20210518130823.mp4: Invalid data found when processing input
2021-05-18T17:22:11.119612591Z frigate.events INFO : bad file: Garage-20210518130823.mp4
2021-05-18T17:38:12.783521523Z [mov,mp4,m4a,3gp,3g2,mj2 @ 0x556b90eae140] moov atom not found
2021-05-18T17:38:12.783584082Z /tmp/cache/Doorbell-20210518130815.mp4: Invalid data found when processing input
2021-05-18T17:38:12.826247484Z frigate.events INFO : bad file: Doorbell-20210518130815.mp4
2021-05-18T17:43:45.468496789Z [mov,mp4,m4a,3gp,3g2,mj2 @ 0x564185ebd140] moov atom not found
2021-05-18T17:43:45.468673086Z /tmp/cache/Back_Porch-20210518130823.mp4: Invalid data found when processing input
2021-05-18T17:43:45.492447480Z frigate.events INFO : bad file: Back_Porch-20210518130823.mp4
Frigate stats
{
"Back_Porch": {
"camera_fps": 5.1,
"capture_pid": 74,
"detection_fps": 7.7,
"pid": 38,
"process_fps": 0.9,
"skipped_fps": 0.0
},
"Backyard": {
"camera_fps": 5.1,
"capture_pid": 71,
"detection_fps": 7.6,
"pid": 37,
"process_fps": 1.1,
"skipped_fps": 0.0
},
"Doorbell": {
"camera_fps": 10.0,
"capture_pid": 92,
"detection_fps": 7.5,
"pid": 70,
"process_fps": 1.5,
"skipped_fps": 0.0
},
"Driveway": {
"camera_fps": 10.2,
"capture_pid": 80,
"detection_fps": 7.2,
"pid": 45,
"process_fps": 2.5,
"skipped_fps": 0.0
},
"Front_Yard": {
"camera_fps": 10.0,
"capture_pid": 89,
"detection_fps": 7.3,
"pid": 66,
"process_fps": 1.5,
"skipped_fps": 0.0
},
"Garage": {
"camera_fps": 10.2,
"capture_pid": 82,
"detection_fps": 8.2,
"pid": 46,
"process_fps": 0.8,
"skipped_fps": 0.0
},
"detection_fps": 45.5,
"detectors": {
"coral": {
"detection_start": 1621360174.128829,
"inference_speed": 11.41,
"pid": 34
}
},
"service": {
"storage": {
"/dev/shm": {
"free": 4143.7,
"mount_type": "tmpfs",
"total": 4295.0,
"used": 151.2
},
"/media/frigate/clips": {
"free": 933160.1,
"mount_type": "ext4",
"total": 983433.6,
"used": 246.5
},
"/media/frigate/recordings": {
"free": 933160.1,
"mount_type": "ext4",
"total": 983433.6,
"used": 246.5
},
"/tmp/cache": {
"free": 205667.3,
"mount_type": "overlay",
"total": 244529.7,
"used": 26369.5
}
},
"uptime": 2465,
"version": "0.8.4-5043040"
}
}
FFprobe from your camera
Run the following command and paste output below
ffprobe version 4.2.4-1ubuntu0.1 Copyright (c) 2007-2020 the FFmpeg developers
built with gcc 9 (Ubuntu 9.3.0-10ubuntu2)
configuration: --prefix=/usr --extra-version=1ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
libavutil 56. 31.100 / 56. 31.100
libavcodec 58. 54.100 / 58. 54.100
libavformat 58. 29.100 / 58. 29.100
libavdevice 58. 8.100 / 58. 8.100
libavfilter 7. 57.100 / 7. 57.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 5.100 / 5. 5.100
libswresample 3. 5.100 / 3. 5.100
libpostproc 55. 5.100 / 55. 5.100
[rtsp @ 0x556c3d065f00] max delay reached. need to consume packet
[rtsp @ 0x556c3d065f00] RTP: missed 89 packets
[h264 @ 0x556c3d06b600] error while decoding MB 6 91, bytestream -7
[h264 @ 0x556c3d06b600] concealing 5065 DC, 5065 AC, 5065 MV errors in P frame
[rtsp @ 0x556c3d065f00] max delay reached. need to consume packet
[rtsp @ 0x556c3d065f00] RTP: missed 34 packets
Input #0, rtsp, from 'rtsp://ffprobe:<password>@cam-backyard.<domain>:554/cam/realmonitor?channel=1&subtype=0':
Metadata:
title : Media Server
Duration: N/A, start: 0.074000, bitrate: N/A
Stream #0:0: Video: h264 (Main), yuv420p(progressive), 2592x1944, 20 tbr, 90k tbn, 180k tbc
Stream #0:1: Audio: aac (LC), 16000 Hz, mono, fltp
Screenshots If applicable, add screenshots to help explain your problem. My dog is under here
Only event captured today (and this car should have been masked)
Computer Hardware
- OS: Ubuntu Desktop 20.04
- Install method: Docker Compose
- Virtualization: none
- Coral Version: PCIe
- Network Setup: Wired
Camera Info:
- Manufacturer: Amcrest
- Model: IP5M-1179TEW-28MM
- Resolution: 2592x1944
- FPS: 5
Additional context
While creating this ticket I noticed that ffprobe will not run if there is an !
in the password. I’m not sure if this would cause an issue or not, but I’ll investigate - but I would think I would not get video at all if this was the issue. Plus it was working before with the same password.
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (1 by maintainers)
Top GitHub Comments
I had this issue as well (running on official 0.8.4 docker image). What ended up fixing it was deleting the folder being mapped into /media/frigate. There appeared to be files with unexpected permission settings in there.
@paularmstrong Thanks for your reply. I looked into the possibility of snapshots/clips/detect turned off in mqtt. All were set to
state = ON
. However, just to be sure, I stopped the container, deleted the entire frigate topic with MQTT Explorer, and restarted the container. Snapshots/clips/detect are still all enabled, but I still get no events.Here is the config json from the
Debug
page: