[Support]: "No recordings found for the requested time range"
See original GitHub issueDescribe the problem you are having
While having the frigate app open to Birdseye the other morning, I saw some live footage of a person walking in front of my home that I wanted to look at more closely. I clicked into Events, and saw the person detections for two of my cameras, but when clicking on those events found that there was no associated recording (black window, some kinda error about not being able to playback). After some time I also noticed that those events I had clicked on vanished from the events list.
I figured no problem, I’ll just go to the storage location for the recordings and step through the mp4 files there, but discovered that for the date and hour of the event, and in fact for some time in the past, the folders for those particular cameras did not exist at all – some cameras yes, just not the ones for the events I had just witnessed live: left_driveway, and right_driveway were missing for instance, but side_gate and backyard were there and have recordings.
I thought I had things configured to retain 2 days worth of recordings, regardless of detections or camera? After restarting the pod, all 5 camera folders were created and all continue to stream in recordings again. The pod is still live today, and everything is working fine, however this has unfortunately happened to me previously which is why I thought I’d reach out here to see what could be going on (or which settings I can adjust to capture more log information around what could be happening). I /think/ that maybe there’s some trouble with code that is supposed to recover after ffmpeg / camera communication issues?
Version
0.12.0-1BC9EFD, but also on an earlier version
Frigate config file
detectors:
coral:
type: edgetpu
device: usb
mqtt:
host: ha-mqtt
port: 1883
topic_prefix: frigate
client_id: frigate
user: redated
password: redacted
stats_interval: 60
database:
path: /db/frigate.db
logger:
default: info
ffmpeg:
global_args: -hide_banner -loglevel warning
hwaccel_args:
- -hwaccel
- qsv
- -qsv_device
- /dev/dri/renderD128
input_args: -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -timeout 5000000n -use_wallclock_as_timestamps 1
output_args:
record: -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v copy -c:a copy
objects:
track:
- person
filters:
person:
min_area: 5000
max_area: 100000
rtmp:
enabled: False
birdseye:
enabled: True
width: 1024
height: 768
quality: 1
mode: continuous
snapshots:
enabled: False
restream:
enabled: False
cameras:
side_gate:
ffmpeg:
inputs:
- path: rtmp://x.x.x.22/bcs/channel0_main.bcs?token=redacted&channel=0&stream=0&user=redacted
roles:
- record
- path: rtmp://x.x.x.22/bcs/channel0_sub.bcs?token=redacted&channel=0&stream=0&user=redacted
roles:
- detect
detect:
width: 640
height: 480
fps: 15
record:
enabled: True
retain:
days: 2
mode: all
events:
retain:
default: 14
mode: active_objects
mqtt:
enabled: True
timestamp: False
bounding_box: False
crop: True
height: 500
quality: 100
required_zones: []
zones:
path:
coordinates: 0,480,450,480,314,49,162,53
objects:
- person
- umbrella
- cat
- dog
- bird
backyard:
ffmpeg:
inputs:
- path: rtmp://x.x.x.21/bcs/channel0_main.bcs?token=redacted&channel=0&stream=0&user=redacted
roles:
- record
- path: rtmp://x.x.x.21/bcs/channel0_sub.bcs?token=redacted&channel=0&stream=0&user=redacted
roles:
- detect
detect:
width: 640
height: 480
fps: 15
record:
enabled: True
retain:
days: 2
mode: all
events:
retain:
default: 14
mode: active_objects
mqtt:
enabled: True
timestamp: False
bounding_box: False
crop: True
height: 500
quality: 100
required_zones: []
zones:
backyard-flat:
coordinates: 0,480,611,480,559,229,0,91
objects:
- person
- umbrella
- cat
- dog
- bird
backyard-hill:
coordinates: 0,136,558,282,547,38,213,0
objects:
- person
- umbrella
- cat
- dog
- bird
left_driveway:
ffmpeg:
inputs:
- path: rtmp://x.x.x.27/bcs/channel0_main.bcs?token=redacted&channel=0&stream=0&user=redacted
roles:
- record
- path: rtmp://x.x.x.27/bcs/channel0_sub.bcs?token=redacted&channel=0&stream=0&user=redacted
roles:
- detect
detect:
width: 640
height: 480
fps: 15
record:
enabled: True
retain:
days: 2
mode: all
events:
retain:
default: 14
mode: active_objects
mqtt:
enabled: True
timestamp: False
bounding_box: False
crop: True
height: 500
quality: 100
required_zones: []
motion:
mask:
- 640,241,640,0,370,0
zones:
driveway:
coordinates: 155,0,373,50,640,385,640,480,0,480
objects:
- person
- car
- umbrella
- cat
- dog
- bird
- bicycle
- motorcycle
front:
ffmpeg:
input_args: -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -use_wallclock_as_timestamps 1
inputs:
- path: rtsp://redacted:redacted@x.x.x.105:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1
roles:
- record
- path: rtsp://redacted:redacted@x.x.x.105:554/Streaming/Channels/102?transportmode=unicast&profile=Profile_1
roles:
- detect
detect:
width: 640
height: 480
fps: 15
record:
enabled: True
retain:
days: 2
mode: all
events:
retain:
default: 14
mode: active_objects
mqtt:
enabled: True
timestamp: False
bounding_box: False
crop: True
height: 500
quality: 100
required_zones: []
motion:
mask:
- 364,63,640,146,640,0,404,0,140,0,138,33
- 640,320,593,183,568,179,588,394
- 35,480,256,480,58,262,0,302,0,390
zones:
front_path:
coordinates: 175,327,273,288,399,166,285,123,169,181,115,292
objects:
- person
- umbrella
- cat
- dog
- bird
driveway:
coordinates: 346,107,129,56,147,213
objects:
- person
- umbrella
- cat
- dog
- bird
- car
- motorcycle
- bicycle
sidewalk:
coordinates: 558,227,556,141,132,45,139,95
objects:
- person
- cat
- dog
- bird
right_driveway:
ffmpeg:
input_args: -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -use_wallclock_as_timestamps 1
inputs:
- path: rtsp://redacted:redacted@x.x.x.28:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1
roles:
- record
- path: rtsp://redacted:redacted@x.x.x.28:554/Streaming/Channels/102?transportmode=unicast&profile=Profile_1
roles:
- detect
detect:
width: 640
height: 480
fps: 15
record:
enabled: True
retain:
days: 2
mode: all
events:
retain:
default: 14
mode: active_objects
mqtt:
enabled: True
timestamp: False
bounding_box: False
crop: True
height: 500
quality: 100
required_zones: []
motion:
mask:
- 284,28,292,0,0,0,0,126
zones:
driveway:
coordinates: 640,156,640,96,486,37,445,45,301,90,143,160,0,299,0,480,640,480
objects:
- person
- umbrella
- cat
- dog
- bird
- car
- motorcycle
- bicycle
sidewalk:
coordinates: 202,160,467,50,436,21,192,62,0,151,0,297
objects:
- person
- cat
- dog
- bird
- umbrella
Relevant log output
I have a complete copy of the logs from the pod run. The pod went live on the 3rd. Things looked normal until the 6th where there was some trouble processing events from a number of cameras -- not clear what happened here -- possibly network trouble on the computer running the pod?
[2022-11-06 10:00:26] watchdog.left_driveway INFO : No frames received from left_driveway in 20 seconds. Exiting ffmpeg...
[2022-11-06 10:00:26] watchdog.left_driveway INFO : Waiting for ffmpeg to exit gracefully...
[2022-11-06 10:00:56] watchdog.left_driveway INFO : FFmpeg didnt exit. Force killing...
[2022-11-06 10:00:56] frigate.video ERROR : left_driveway: Unable to read frames from ffmpeg process.
[2022-11-06 10:00:56] frigate.video ERROR : left_driveway: ffmpeg process is not running. exiting capture thread...
[2022-11-06 10:01:06] watchdog.left_driveway ERROR : Ffmpeg process crashed unexpectedly for left_driveway.
[2022-11-06 10:01:06] watchdog.left_driveway ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-11-06 10:01:06] ffmpeg.left_driveway.detect ERROR : WARNING: defaulting hwaccel_output_format to qsv for compatibility with old commandlines. This behaviour is DEPRECATED and will be removed in the future. Please explicitly set "-hwaccel_output_format qsv".
[2022-11-06 10:01:06] ffmpeg.left_driveway.detect ERROR : More than 1000 frames duplicated
[2022-11-06 10:01:06] ffmpeg.left_driveway.detect ERROR : More than 10000 frames duplicated
[2022-11-06 10:01:06] ffmpeg.left_driveway.detect ERROR : More than 100000 frames duplicated
...
[2022-11-06 22:35:17] watchdog.right_driveway INFO : No frames received from right_driveway in 20 seconds. Exiting ffmpeg...
[2022-11-06 22:35:17] watchdog.right_driveway INFO : Waiting for ffmpeg to exit gracefully...
[2022-11-06 22:35:17] watchdog.front INFO : No frames received from front in 20 seconds. Exiting ffmpeg...
[2022-11-06 22:35:17] watchdog.front INFO : Waiting for ffmpeg to exit gracefully...
[2022-11-06 22:35:17] watchdog.side_gate INFO : No frames received from side_gate in 20 seconds. Exiting ffmpeg...
[2022-11-06 22:35:17] watchdog.side_gate INFO : Waiting for ffmpeg to exit gracefully...
[2022-11-06 22:35:17] watchdog.left_driveway INFO : No frames received from left_driveway in 20 seconds. Exiting ffmpeg...
[2022-11-06 22:35:17] watchdog.left_driveway INFO : Waiting for ffmpeg to exit gracefully...
[2022-11-06 22:35:17] watchdog.backyard INFO : No frames received from backyard in 20 seconds. Exiting ffmpeg...
[2022-11-06 22:35:17] watchdog.backyard INFO : Waiting for ffmpeg to exit gracefully...
[2022-11-06 22:35:34] frigate.video ERROR : right_driveway: Unable to read frames from ffmpeg process.
[2022-11-06 22:35:34] frigate.video ERROR : right_driveway: ffmpeg process is not running. exiting capture thread...
[2022-11-06 22:35:35] frigate.video ERROR : front: Unable to read frames from ffmpeg process.
[2022-11-06 22:35:35] frigate.video ERROR : front: ffmpeg process is not running. exiting capture thread...
[2022-11-06 22:35:44] watchdog.right_driveway ERROR : Ffmpeg process crashed unexpectedly for right_driveway.
[2022-11-06 22:35:44] watchdog.right_driveway ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-11-06 22:35:44] ffmpeg.right_driveway.detect ERROR : WARNING: defaulting hwaccel_output_format to qsv for compatibility with old commandlines. This behaviour is DEPRECATED and will be removed in the future. Please explicitly set "-hwaccel_output_format qsv".
[2022-11-06 22:35:44] ffmpeg.right_driveway.detect ERROR : [swscaler @ 0x5643ecb8d340] [swscaler @ 0x5643ecb9b200] deprecated pixel format used, make sure you did set range correctly
...
[2022-11-06 22:35:45] watchdog.front ERROR : Ffmpeg process crashed unexpectedly for front. [2022-11-06 22:35:45] watchdog.front ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-11-06 22:35:45] ffmpeg.front.detect ERROR : WARNING: defaulting hwaccel_output_format to qsv for compatibility with old commandlines. This behaviour is DEPRECATED and will be removed in the future. Please explicitly set "-hwaccel_output_format qsv".
[2022-11-06 22:35:45] ffmpeg.front.detect ERROR : [swscaler @ 0x5638274cc1c0] [swscaler @ 0x5638274da080] deprecated pixel format used, make sure you did set range correctly
[2022-11-06 22:35:45] ffmpeg.front.detect ERROR : [swscaler @ 0x5638274cc1c0] [swscaler @ 0x5638274fba40] deprecated pixel format used, make sure you did set range correctly
[2022-11-06 22:35:45] ffmpeg.front.detect ERROR : [swscaler @ 0x5638274cc1c0] [swscaler @ 0x56382751d400] deprecated pixel format used, make sure you did set range correctly
[2022-11-06 22:35:45] ffmpeg.front.detect ERROR : [swscaler @ 0x5638274cc1c0] [swscaler @ 0x56382753edc0] deprecated pixel format used, make sure you did set range correctly
[2022-11-06 22:35:45] ffmpeg.front.detect ERROR : [swscaler @ 0x5638274cc1c0] [swscaler @ 0x563827560780] deprecated pixel format used, make sure you did set range correctly
...
[2022-11-06 22:35:45] ffmpeg.front.detect ERROR : More than 1000 frames duplicated
[2022-11-06 22:35:45] ffmpeg.front.detect ERROR : More than 10000 frames duplicated
[2022-11-06 22:35:45] ffmpeg.front.detect ERROR : More than 100000 frames duplicated
[2022-11-06 22:35:45] frigate.video ERROR : left_driveway: Unable to read frames from ffmpeg process.
[2022-11-06 22:35:45] frigate.video ERROR : left_driveway: ffmpeg process is not running. exiting capture thread...
[2022-11-06 22:35:46] frigate.video ERROR : backyard: Unable to read frames from ffmpeg process.
[2022-11-06 22:35:46] frigate.video ERROR : backyard: ffmpeg process is not running. exiting capture thread...
[2022-11-06 22:35:46] frigate.video ERROR : side_gate: Unable to read frames from ffmpeg process.
[2022-11-06 22:35:46] frigate.video ERROR : side_gate: ffmpeg process is not running. exiting capture thread...
[2022-11-06 22:35:55] watchdog.left_driveway ERROR : Ffmpeg process crashed unexpectedly for left_driveway.
[2022-11-06 22:35:55] watchdog.left_driveway ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-11-06 22:35:55] ffmpeg.left_driveway.detect ERROR : WARNING: defaulting hwaccel_output_format to qsv for compatibility with old commandlines. This behaviour is DEPRECATED and will be removed in the future. Please explicitly set "-hwaccel_output_format qsv".
[2022-11-06 22:35:55] ffmpeg.left_driveway.detect ERROR : More than 1000 frames duplicated
[2022-11-06 22:35:55] ffmpeg.left_driveway.detect ERROR : More than 10000 frames duplicated
[2022-11-06 22:35:55] ffmpeg.left_driveway.detect ERROR : More than 100000 frames duplicated
[2022-11-06 22:35:56] watchdog.side_gate ERROR : Ffmpeg process crashed unexpectedly for side_gate.
[2022-11-06 22:35:56] watchdog.side_gate ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-11-06 22:35:56] ffmpeg.side_gate.detect ERROR : WARNING: defaulting hwaccel_output_format to qsv for compatibility with old commandlines. This behaviour is DEPRECATED and will be removed in the future. Please explicitly set "-hwaccel_output_format qsv".
[2022-11-06 22:35:56] ffmpeg.side_gate.detect ERROR : More than 1000 frames duplicated
[2022-11-06 22:35:56] ffmpeg.side_gate.detect ERROR : More than 10000 frames duplicated
[2022-11-06 22:35:56] ffmpeg.side_gate.detect ERROR : More than 100000 frames duplicated
After that everything seemed to go back to normal -- no more of the stuff above. I did continue to see stuff like this, but it's always been harmless:
[2022-11-08 01:48:24] frigate.output WARNING : Unable to copy frame left_driveway1667870768.779363 to birdseye.
[2022-11-08 01:48:24] frigate.output WARNING : Unable to copy frame right_driveway1667870768.835584 to birdseye.
[2022-11-08 01:48:24] frigate.output WARNING : Unable to copy frame side_gate1667870768.791025 to birdseye.
[2022-11-08 01:48:24] frigate.output WARNING : Unable to copy frame backyard1667870768.820281 to birdseye.
I assume that means that frigate is otherwise communicating fine with the cameras -- I use the frigate app daily and didn't see anything amiss in Birdseye.
Otherwise, the only other relevant logs are these when I attempted to watch the events:
[2022-11-09 16:46:53] frigate.http ERROR : No recordings found for the requested time range
[2022-11-09 16:46:54] frigate.http ERROR : No recordings found for the requested time range
[2022-11-09 16:46:57] frigate.http ERROR : Event does not have recordings: 1668011656.089827-iahcbt
[2022-11-09 16:46:58] frigate.http ERROR : Event does not have recordings: 1668011657.835411-n0zs8o
[2022-11-09 16:48:33] ws4py INFO : Managing websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:33574]
[2022-11-09 16:48:33] frigate.output WARNING : Unable to copy frame front1668012372.964405 to birdseye.
[2022-11-09 16:48:33] frigate.output WARNING : Unable to copy frame backyard1668012372.946967 to birdseye.
[2022-11-09 16:48:37] ws4py INFO : Terminating websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:33574]
[2022-11-09 16:48:42] frigate.http ERROR : No recordings found for the requested time range
[2022-11-09 16:48:46] frigate.http ERROR : No recordings found for the requested time range
[2022-11-09 16:48:49] frigate.http ERROR : No recordings found for the requested time range
[2022-11-09 16:48:50] frigate.http ERROR : No recordings found for the requested time range
[2022-11-09 16:48:51] frigate.http ERROR : No recordings found for the requested time range
FFprobe output from your camera
left_camera:
Input #0, flv, from 'rtmp://x.x.x.27/bcs/channel0_main.bcs?token=redacted&channel=0&stream=0&user=redacted&password=redacted':
Metadata:
|RtmpSampleAccess: true
displayWidth : 2560
displayHeight : 1920
Duration: 00:00:00.00, start: 494656.302000, bitrate: N/A
Stream #0:0: Video: h264 (Main), yuv420p(progressive), 2560x1920, 7 fps, 12 tbr, 1k tbn
Stream #0:1: Audio: aac (LC), 16000 Hz, mono, fltp
right_camera:
Input #0, rtsp, from 'rtsp://redacted:redacted@x.x.x.28:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1':
Metadata:
title : Media Presentation
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Video: h264 (Main), yuvj420p(pc, progressive), 3840x2160 [SAR 1:1 DAR 16:9], 12 tbr, 90k tbn
Stream #0:1: Audio: aac (LC), 16000 Hz, mono, fltp
Frigate stats
Restarted the pod, so unfortunately lost these stats.
Operating system
Other Linux
Install method
Docker Compose
Coral version
USB
Network connection
Wired
Camera make and model
left_driveway: Reolink RLC-410-5MP, right_driveway: Annke I91BQ
Any other information that may be helpful
Timestamps are UTC – I’m in PST, so the issues on the 6th happened at 2:00AM and 3:30PM that day. Computer equipment, including the POE cameras are on battery backup and I wasn’t aware of any power issues that day.
Issue Analytics
- State:
- Created 10 months ago
- Reactions:1
- Comments:5
Top GitHub Comments
No, frigate has one set of default args for rtsp streams and any others need to be copied from https://docs.frigate.video/configuration/camera_specific
It was removed from dockerhub due to a handful of users jumping on without realizing. Any build that has documentation and meant for general usage will have
stable
,release
,rc
, orbeta
in it. We had uploaded that build for testing purposes (general users are welcome to test but do so with no warranty of functionality or documentation).we have since gotten github setup to do automatic dev builds and push them to GHCR so shouldn’t be an issue going forward.
Damn – missed that. Looks like all cameras are working correctly now. I’m curious – if I omit the input_args completely from the configuration file, would frigate know to use rtsp vs rtmp input_args as mentioned in the doc automatically based on the camera paths provided? Like, did I make things more complication than I needed to?
Also, as I mentioned above, I’m using the container version of frigate. I’m using automation to automatically update the container version when new releases come out, and somehow it found blakeblackshear/frigate:0.12.0-1bc9efd for me even though I don’t see it listed here: https://hub.docker.com/r/blakeblackshear/frigate/tags?page=1
Is there a way to determine based on the tag that it’s dev / testing? even numbers vs odd? Usually I look for things like rc or beta within the tag name to tell which is which.