[Support]: Snapshot shows event trigger but recorded video clip doesn't include those frames
See original GitHub issueDescribe the problem you are having
I’ve been using Frigate for almost a year now. I really like that Nvidia CUDA is supported via docker container (I use that one). However, I’ve noticed that occasionally an event will be caught and the snapshot shows the trigger (like a person, cat or dog) but when I view the recorded video clip it doesn’t contain those frames. Often, the event was completely missed! This happens pretty regularly on my setup. Here’s an example.
Snapshot shows “16:44:51”:
First frame of video shows “16:44:58”:
Last frame of video shows “16:45:05”:
Version
0.10.1-83481AF
Frigate config file
detectors:
coral:
type: edgetpu
device: usb
ffmpeg:
hwaccel_args:
- -hwaccel
- cuda
- -c:v
- h264_cuvid
output_args:
record: -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:a copy -c:v h264_nvenc -vf hwupload_cuda,scale_npp=w='if(gt(a\,1280/960)\,1280\,oh*a)':h='if(gt(a\,1280/960)\,ow/a\,960)'
rtmp: -c:a copy -f flv -c:v h264_nvenc -vf hwupload_cuda,scale_npp=w='if(gt(a\,1280/960)\,1280\,oh*a)':h='if(gt(a\,1280/960)\,ow/a\,960)'
input_args:
- -avoid_negative_ts
- make_zero
- -fflags
- nobuffer
- -flags
- low_delay
- -strict
- experimental
- -fflags
- +genpts+discardcorrupt
- -use_wallclock_as_timestamps
- "1"
record:
enabled: True
retain:
days: 2
mode: motion
events:
retain:
default: 10
mode: active_objects
snapshots:
enabled: True
timestamp: False
bounding_box: True
height: 400
objects:
track:
- person
- dog
- cat
cameras:
front_door:
ffmpeg:
inputs:
- path: rtmp://rlc-520-1/bcs/channel0_main.bcs?channel=0&stream=0&user={FRIGATE_RTSP_USERNAME}&password={FRIGATE_RTSP_PASSWORD}
roles:
- detect
- record
- rtmp
detect:
width: 2048
height: 1536
mqtt:
crop: False
west_yard:
ffmpeg:
inputs:
- path: rtmp://rlc-410-4/bcs/channel0_main.bcs?channel=0&stream=0&user={FRIGATE_RTSP_USERNAME}&password={FRIGATE_RTSP_PASSWORD}
roles:
- detect
- record
- rtmp
detect:
width: 2048
height: 1536
mqtt:
crop: False
motion:
mask:
- 2048,1536,2048,842,1819,800,1778,901,1447,779,1263,971,1150,1349,1550,1536
zones:
west_yard_zone_close:
coordinates: 2048,1536,2048,137,1760,266,1237,64,1215,575,610,888,0,1277,0,1536
west_yard_zone_far:
coordinates: 0,0,2048,0,2048,137,1760,266,1237,64,1215,575,610,888,0,1277
east_yard:
ffmpeg:
inputs:
- path: rtmp://rlc-410-3/bcs/channel0_main.bcs?channel=0&stream=0&user={FRIGATE_RTSP_USERNAME}&password={FRIGATE_RTSP_PASSWORD}
roles:
- detect
- record
- rtmp
detect:
width: 2048
height: 1536
motion:
mask:
- 0,0,0,857,1487,180,1506,0
zones:
east_yard_zone_close:
coordinates: 2048,1536,2048,364,1563,257,1189,215,460,167,460,0,0,0,0,1192,0,1536
east_yard_zone_far:
coordinates: 2048,0,460,0,460,167,1189,215,1563,257,2048,364
back_yard:
ffmpeg:
inputs:
- path: rtmp://rlc-410-1/bcs/channel0_main.bcs?channel=0&stream=0&user={FRIGATE_RTSP_USERNAME}&password={FRIGATE_RTSP_PASSWORD}
roles:
- detect
- record
- rtmp
detect:
width: 2304
height: 1296
motion:
mask:
- 2304,1296,2304,420,2039,390,2051,236,1872,124,1628,285,1611,655,1300,785,1970,1296
zones:
back_yard_zone_canal:
coordinates: 2304,0,2304,427,2100,380,1030,0
back_yard_zone_grass:
coordinates: 2100,380,1300,785,1970,1296,1123,1296,873,984,839,685,486,282,705,213,693,0,1030,0
back_yard_zone_garden:
coordinates: 2304,1296,2304,427,2100,380,1300,785,1970,1296
back_yard_zone_deck_and_patio:
coordinates: 0,966,839,685,625,431,486,282,705,213,693,0,0,0
out_the_back:
ffmpeg:
inputs:
- path: rtmp://rlc-410-2/bcs/channel0_main.bcs?channel=0&stream=0&user={FRIGATE_RTSP_USERNAME}&password={FRIGATE_RTSP_PASSWORD}
roles:
- detect
- record
- rtmp
detect:
width: 2304
height: 1296
objects:
track:
- person
- dog
- cat
- car
zones:
out_the_back_zone_far:
coordinates: 2304,0,2304,521,0,524,0,0
out_the_back_zone_near:
coordinates: 0,1296,2304,1296,2304,522,0,522
garage:
ffmpeg:
inputs:
- path: rtmp://rlc-511-1/bcs/channel0_main.bcs?channel=0&stream=0&user={FRIGATE_RTSP_USERNAME}&password={FRIGATE_RTSP_PASSWORD}
roles:
- detect
- record
- rtmp
detect:
width: 2048
height: 1536
objects:
track:
- person
storage_room:
ffmpeg:
inputs:
- path: rtmp://rlc-e1-zoom-1/bcs/channel0_main.bcs?channel=0&stream=0&user={FRIGATE_RTSP_USERNAME}&password={FRIGATE_RTSP_PASSWORD}
roles:
- detect
- record
- rtmp
detect:
width: 2048
height: 1536
objects:
track:
- person
Relevant log output
Surprisingly, there are no log entries from 3-31-2022:
{"log":"[2022-03-30 08:19:17] frigate.mqtt INFO : Turning off detection for back_yard via mqtt\n","stream":"stderr","time":"2022-03-30T14:19:17.840702009Z"}
{"log":"[2022-03-30 08:19:17] frigate.mqtt INFO : Turning off detection for east_yard via mqtt\n","stream":"stderr","time":"2022-03-30T14:19:17.841131169Z"}
{"log":"[2022-03-30 08:19:17] frigate.mqtt INFO : Turning off detection for front_door via mqtt\n","stream":"stderr","time":"2022-03-30T14:19:17.885932354Z"}
{"log":"[2022-03-30 08:19:17] frigate.mqtt INFO : Turning off detection for out_the_back via mqtt\n","stream":"stderr","time":"2022-03-30T14:19:17.886365833Z"}
{"log":"[2022-03-30 08:19:17] frigate.mqtt INFO : Turning off detection for west_yard via mqtt\n","stream":"stderr","time":"2022-03-30T14:19:17.887149665Z"}
{"log":"[2022-03-30 10:19:17] frigate.mqtt INFO : Turning on detection for back_yard via mqtt\n","stream":"stderr","time":"2022-03-30T16:19:17.051743774Z"}
{"log":"[2022-03-30 10:19:17] frigate.mqtt INFO : Turning on detection for east_yard via mqtt\n","stream":"stderr","time":"2022-03-30T16:19:17.053558165Z"}
{"log":"[2022-03-30 10:19:17] frigate.mqtt INFO : Turning on detection for front_door via mqtt\n","stream":"stderr","time":"2022-03-30T16:19:17.097473388Z"}
{"log":"[2022-03-30 10:19:17] frigate.mqtt INFO : Turning on detection for out_the_back via mqtt\n","stream":"stderr","time":"2022-03-30T16:19:17.098299657Z"}
{"log":"[2022-03-30 10:19:17] frigate.mqtt INFO : Turning on detection for west_yard via mqtt\n","stream":"stderr","time":"2022-03-30T16:19:17.099251758Z"}
{"log":"[2022-03-30 10:34:37] frigate.mqtt INFO : Turning off detection for back_yard via mqtt\n","stream":"stderr","time":"2022-03-30T16:34:37.257154934Z"}
{"log":"[2022-03-30 10:34:37] frigate.mqtt INFO : Turning off detection for east_yard via mqtt\n","stream":"stderr","time":"2022-03-30T16:34:37.257863285Z"}
{"log":"[2022-03-30 10:34:37] frigate.mqtt INFO : Turning off detection for front_door via mqtt\n","stream":"stderr","time":"2022-03-30T16:34:37.258570228Z"}
{"log":"[2022-03-30 10:34:37] frigate.mqtt INFO : Turning off detection for out_the_back via mqtt\n","stream":"stderr","time":"2022-03-30T16:34:37.259244919Z"}
{"log":"[2022-03-30 10:34:37] frigate.mqtt INFO : Turning off detection for west_yard via mqtt\n","stream":"stderr","time":"2022-03-30T16:34:37.259989084Z"}
{"log":"[2022-03-30 11:34:37] frigate.mqtt INFO : Turning on detection for back_yard via mqtt\n","stream":"stderr","time":"2022-03-30T17:34:37.040617225Z"}
{"log":"[2022-03-30 11:34:37] frigate.mqtt INFO : Turning on detection for east_yard via mqtt\n","stream":"stderr","time":"2022-03-30T17:34:37.085334772Z"}
{"log":"[2022-03-30 11:34:37] frigate.mqtt INFO : Turning on detection for front_door via mqtt\n","stream":"stderr","time":"2022-03-30T17:34:37.087544776Z"}
{"log":"[2022-03-30 11:34:37] frigate.mqtt INFO : Turning on detection for out_the_back via mqtt\n","stream":"stderr","time":"2022-03-30T17:34:37.08807026Z"}
{"log":"[2022-03-30 11:34:37] frigate.mqtt INFO : Turning on detection for west_yard via mqtt\n","stream":"stderr","time":"2022-03-30T17:34:37.088709136Z"}
{"log":"[2022-04-01 10:04:00] ws4py INFO : Managing websocket [Local =\u003e 127.0.0.1:5002 | Remote =\u003e 127.0.0.1:42174]\n","stream":"stderr","time":"2022-04-01T16:04:00.641621847Z"}
{"log":"[2022-04-01 10:05:28] frigate.http ERROR : No recordings found for the requested time range\n","stream":"stderr","time":"2022-04-01T16:05:28.663134352Z"}
{"log":"[2022-04-01 10:05:57] ws4py INFO : Terminating websocket [Local =\u003e 127.0.0.1:5002 | Remote =\u003e 127.0.0.1:42174]\n","stream":"stderr","time":"2022-04-01T16:05:57.500025201Z"}
FFprobe output from your camera
> ffprobe "rtmp://rlc-410-3/bcs/channel0_main.bcs?channel=0&stream=0&user=******&password=******"
ffprobe version 4.3.1 Copyright (c) 2007-2020 the FFmpeg developers
built with gcc 9 (Ubuntu 9.3.0-17ubuntu1~20.04)
configuration: --disable-debug --disable-doc --disable-ffplay --enable-shared --enable-avresample --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-gpl --enable-libfreetype --enable-libvidstab --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libxcb --enable-libx265 --enable-libxvid --enable-libx264 --enable-nonfree --enable-openssl --enable-libfdk_aac --enable-postproc --enable-small --enable-version3 --enable-libzmq --extra-libs=-ldl --prefix=/opt/ffmpeg --enable-libopenjpeg --enable-libkvazaar --enable-libaom --extra-libs=-lpthread --enable-libsrt --enable-libaribb24 --enable-nvenc --enable-cuda --enable-cuvid --enable-libnpp --extra-cflags='-I/opt/ffmpeg/include -I/opt/ffmpeg/include/ffnvcodec -I/usr/local/cuda/include/' --extra-ldflags='-L/opt/ffmpeg/lib -L/usr/local/cuda/lib64 -L/usr/local/cuda/lib32/'
libavutil 56. 51.100 / 56. 51.100
libavcodec 58. 91.100 / 58. 91.100
libavformat 58. 45.100 / 58. 45.100
libavdevice 58. 10.100 / 58. 10.100
libavfilter 7. 85.100 / 7. 85.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 7.100 / 5. 7.100
libswresample 3. 7.100 / 3. 7.100
libpostproc 55. 7.100 / 55. 7.100
Input #0, flv, from 'rtmp://rlc-410-3/bcs/channel0_main.bcs?channel=0&stream=0&user=******&password=******':
Metadata:
displayWidth : 2048
displayHeight : 1536
Duration: 00:00:00.00, start: 463005.222000, bitrate: N/A
Stream #0:0: Data: none
Stream #0:1: Audio: aac, 16000 Hz, mono, fltp
Stream #0:2: Video: h264, yuv420p(progressive), 2048x1536, 10 fps, 10 tbr, 1k tbn
Unsupported codec with id 0 for input stream 0
>
Frigate stats
{
"back_yard": {
"camera_fps": 5.1,
"capture_pid": 265,
"detection_fps": 0,
"pid": 245,
"process_fps": 5.1,
"skipped_fps": 0
},
"detection_fps": 4.4,
"detectors": {
"coral": {
"detection_start": 0,
"inference_speed": 11.17,
"pid": 725959
}
},
"east_yard": {
"camera_fps": 5,
"capture_pid": 259,
"detection_fps": 4.3,
"pid": 243,
"process_fps": 5,
"skipped_fps": 0
},
"front_door": {
"camera_fps": 5.1,
"capture_pid": 251,
"detection_fps": 0,
"pid": 238,
"process_fps": 5.1,
"skipped_fps": 0
},
"garage": {
"camera_fps": 5.1,
"capture_pid": 276,
"detection_fps": 0,
"pid": 248,
"process_fps": 5.1,
"skipped_fps": 0
},
"out_the_back": {
"camera_fps": 5.1,
"capture_pid": 270,
"detection_fps": 0.1,
"pid": 247,
"process_fps": 5.1,
"skipped_fps": 0
},
"service": {
"storage": {
"/dev/shm": {
"free": 2079.2,
"mount_type": "tmpfs",
"total": 2147.5,
"used": 68.3
},
"/media/frigate/clips": {
"free": 1759233.9,
"mount_type": "ext4",
"total": 1967928.4,
"used": 108658.1
},
"/media/frigate/recordings": {
"free": 1759233.9,
"mount_type": "ext4",
"total": 1967928.4,
"used": 108658.1
},
"/tmp/cache": {
"free": 1980.3,
"mount_type": "tmpfs",
"total": 2000,
"used": 19.7
}
},
"temperatures": {},
"uptime": 1737130,
"version": "0.10.1-83481af"
},
"storage_room": {
"camera_fps": 5,
"capture_pid": 279,
"detection_fps": 0,
"pid": 249,
"process_fps": 5,
"skipped_fps": 0
},
"west_yard": {
"camera_fps": 5.1,
"capture_pid": 255,
"detection_fps": 0,
"pid": 241,
"process_fps": 5.1,
"skipped_fps": 0
}
}
Operating system
Other Linux
Install method
Docker Compose
Coral version
USB
Network connection
Wired
Camera make and model
reolink
Any other information that may be helpful
No response
Issue Analytics
- State:
- Created a year ago
- Comments:20 (7 by maintainers)
Top Results From Across the Web
Behavior | Docs - Snap Inc.
The On Custom Trigger happens when a custom trigger is fired via another Behavior helper script. See the Send Custom Trigger response type...
Read more >I'm getting an "Asset Too Large" error message when I try to ...
Sometimes the upload tool will give an invalid asset error if the DPI is too high. Make sure your design doesn't cover too...
Read more >Working with clips in a Premiere Pro sequence - Adobe Support
Both audio and video tracks of a linked clip are included when you group it with other clips. You can't apply clip-based commands,...
Read more >Logic Pro release notes - Apple Support
Live Loops cells recorded with the setting “Play from: Playhead Position” are no longer out of sync when playback is stopped and then...
Read more >Snapchat Hacks: 35 Tricks You Probably Didn't Know About
But if you can learn these tricks you'll have a powerful new arsenal of tools to help take your brand's Snap game to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Done, you should have gotten a notification email or something. Thanks for taking a look! Lemme know if I can help with anything else.
Try these args to tell ffmpeg to prioritize realtime encoding: