Closed jokakilla closed 2 years ago
For the event that you're trying to download, if you go into the recordings directory and find the time you're expecting the recordings for, what do you see?
The matching video (beside some others recorded on the same hour) is there. After downloading from the system playback with VLC is working fine.
In this case: root@615152ce9765:/opt/frigate# ls -lah /media/frigate/recordings/2022-09/27/19/haustuer/50.13.mp4 -rw-r--r-- 1 root root 3.4M Sep 27 19:50 /media/frigate/recordings/2022-09/27/19/haustuer/50.13.mp4
You'll likely need to watch your system usage or perhaps enable frigate.http debug logs to see why its having issues. Also we typically recommend and iframe interval the same as the frame rate, so might be worth changing that and seeing if it helps.
I've set the iframe interval to the framerate and added this to the config:
logger:
# Optional: default log level (default: shown below)
default: debug
# Optional: module by module log level configuration
logs:
frigate.http: debug
But after selecting an event there was only some database logging :(
[2022-09-27 22:12:48] peewee DEBUG : ('SELECT "t1"."id", "t1"."camera", "t1"."path", "t1"."start_time", "t1"."end_time", "t1"."duration", "t1"."motion", "t1"."objects" FROM "recordings" AS "t1" WHERE (((("t1"."start_time" BETWEEN ? AND ?) OR ("t1"."end_time" BETWEEN ? AND ?)) OR (("t1"."start_time" < ?) AND ("t1"."end_time" > ?))) AND ("t1"."camera" = ?)) ORDER BY "t1"."start_time" ASC', [1664308636.56554, 1664308660.56569, 1664308636.56554, 1664308660.56569, 1664308636.56554, 1664308660.56569, 'haustuer'])
[2022-09-27 22:13:13] frigate.record DEBUG : End expire files (legacy).
[2022-09-27 22:13:19] peewee DEBUG : ('SELECT "t1"."id", "t1"."camera", "t1"."label", "t1"."zones", "t1"."start_time", "t1"."end_time", "t1"."has_clip", "t1"."has_snapshot", "t1"."plus_id", "t1"."retain_indefinitely", "t1"."sub_label", "t1"."top_score" FROM "event" AS "t1" WHERE ("t1"."camera" = ?) ORDER BY "t1"."start_time" DESC LIMIT ?', ['haustuer', '25'])
[2022-09-27 22:13:20] peewee DEBUG : ('SELECT "t1"."id", "t1"."camera", "t1"."path", "t1"."start_time", "t1"."end_time", "t1"."duration", "t1"."motion", "t1"."objects" FROM "recordings" AS "t1" WHERE (((("t1"."start_time" BETWEEN ? AND ?) OR ("t1"."end_time" BETWEEN ? AND ?)) OR (("t1"."start_time" < ?) AND ("t1"."end_time" > ?))) AND ("t1"."camera" = ?)) ORDER BY "t1"."start_time" ASC', [1664308636.56554, 1664308660.56569, 1664308636.56554, 1664308660.56569, 1664308636.56554, 1664308660.56569, 'haustuer'])
But what happened? Did it still take a while? Does it a while after the last database call is made?
After simply clicking on an event this was visible. 503 service unavailable could be observed. Frigate log is below.
[2022-09-27 22:10:02] urllib3.connectionpool DEBUG : Starting new HTTPS connection (1): api.github.com:443
[2022-09-27 22:12:48] peewee DEBUG : ('SELECT "t1"."id", "t1"."camera", "t1"."path", "t1"."start_time", "t1"."end_time", "t1"."duration", "t1"."motion", "t1"."objects" FROM "recordings" AS "t1" WHERE (((("t1"."start_time" BETWEEN ? AND ?) OR ("t1"."end_time" BETWEEN ? AND ?)) OR (("t1"."start_time" < ?) AND ("t1"."end_time" > ?))) AND ("t1"."camera" = ?)) ORDER BY "t1"."start_time" ASC', [1664308636.56554, 1664308660.56569, 1664308636.56554, 1664308660.56569, 1664308636.56554, 1664308660.56569, 'haustuer'])
[2022-09-27 22:13:13] frigate.record DEBUG : End expire files (legacy).
[2022-09-27 22:13:19] peewee DEBUG : ('SELECT "t1"."id", "t1"."camera", "t1"."label", "t1"."zones", "t1"."start_time", "t1"."end_time", "t1"."has_clip", "t1"."has_snapshot", "t1"."plus_id", "t1"."retain_indefinitely", "t1"."sub_label", "t1"."top_score" FROM "event" AS "t1" WHERE ("t1"."camera" = ?) ORDER BY "t1"."start_time" DESC LIMIT ?', ['haustuer', '25'])
[2022-09-27 22:13:20] peewee DEBUG : ('SELECT "t1"."id", "t1"."camera", "t1"."path", "t1"."start_time", "t1"."end_time", "t1"."duration", "t1"."motion", "t1"."objects" FROM "recordings" AS "t1" WHERE (((("t1"."start_time" BETWEEN ? AND ?) OR ("t1"."end_time" BETWEEN ? AND ?)) OR (("t1"."start_time" < ?) AND ("t1"."end_time" > ?))) AND ("t1"."camera" = ?)) ORDER BY "t1"."start_time" ASC', [1664308636.56554, 1664308660.56569, 1664308636.56554, 1664308660.56569, 1664308636.56554, 1664308660.56569, 'haustuer'])
[2022-09-27 22:13:22] peewee DEBUG : ('SELECT "t1"."id", "t1"."label", "t1"."sub_label", "t1"."camera", "t1"."start_time", "t1"."end_time", "t1"."top_score", "t1"."false_positive", "t1"."zones", "t1"."thumbnail", "t1"."has_clip", "t1"."has_snapshot", "t1"."region", "t1"."box", "t1"."area", "t1"."retain_indefinitely", "t1"."ratio", "t1"."plus_id" FROM "event" AS "t1" WHERE ("t1"."id" = ?) LIMIT ? OFFSET ?', ['1664308641.56554-d1wqcd', 1, 0])
[2022-09-27 22:18:52] peewee DEBUG : ('SELECT "t1"."id", "t1"."camera", "t1"."label", "t1"."zones", "t1"."start_time", "t1"."end_time", "t1"."has_clip", "t1"."has_snapshot", "t1"."plus_id", "t1"."retain_indefinitely", "t1"."sub_label", "t1"."top_score" FROM "event" AS "t1" WHERE ("t1"."camera" = ?) ORDER BY "t1"."start_time" DESC LIMIT ?', ['haustuer', '25'])
[2022-09-27 22:18:56] peewee DEBUG : ('SELECT "t1"."id", "t1"."camera", "t1"."path", "t1"."start_time", "t1"."end_time", "t1"."duration", "t1"."motion", "t1"."objects" FROM "recordings" AS "t1" WHERE (((("t1"."start_time" BETWEEN ? AND ?) OR ("t1"."end_time" BETWEEN ? AND ?)) OR (("t1"."start_time" < ?) AND ("t1"."end_time" > ?))) AND ("t1"."camera" = ?)) ORDER BY "t1"."start_time" ASC', [1664308636.56554, 1664308660.56569, 1664308636.56554, 1664308660.56569, 1664308636.56554, 1664308660.56569, 'haustuer'])
[2022-09-27 22:18:52] peewee DEBUG : ('SELECT "t1"."id", "t1"."label", "t1"."sub_label", "t1"."camera", "t1"."start_time", "t1"."end_time", "t1"."top_score", "t1"."false_positive", "t1"."zones", "t1"."thumbnail", "t1"."has_clip", "t1"."has_snapshot", "t1"."region", "t1"."box", "t1"."area", "t1"."retain_indefinitely", "t1"."ratio", "t1"."plus_id" FROM "event" AS "t1" WHERE ("t1"."id" = ?) LIMIT ? OFFSET ?', ['1664308641.56554-d1wqcd', 1, 0])
[2022-09-27 22:18:52] peewee DEBUG : ('SELECT DISTINCT "t1"."sub_label" FROM "event" AS "t1"', [])
[2022-09-27 22:18:52] peewee DEBUG : ('SELECT "t1"."id", "t1"."camera", "t1"."path", "t1"."start_time", "t1"."end_time", "t1"."duration", "t1"."motion", "t1"."objects" FROM "recordings" AS "t1" WHERE (((("t1"."start_time" BETWEEN ? AND ?) OR ("t1"."end_time" BETWEEN ? AND ?)) OR (("t1"."start_time" < ?) AND ("t1"."end_time" > ?))) AND ("t1"."camera" = ?)) ORDER BY "t1"."start_time" ASC', [1664308636.56554, 1664308660.56569, 1664308636.56554, 1664308660.56569, 1664308636.56554, 1664308660.56569, 'haustuer'])
[2022-09-27 22:18:54] peewee DEBUG : ('SELECT "t1"."id", "t1"."label", "t1"."sub_label", "t1"."camera", "t1"."start_time", "t1"."end_time", "t1"."top_score", "t1"."false_positive", "t1"."zones", "t1"."thumbnail", "t1"."has_clip", "t1"."has_snapshot", "t1"."region", "t1"."box", "t1"."area", "t1"."retain_indefinitely", "t1"."ratio", "t1"."plus_id" FROM "event" AS "t1" WHERE ("t1"."id" = ?) LIMIT ? OFFSET ?', ['1664308641.56554-d1wqcd', 1, 0])
[2022-09-27 22:18:54] peewee DEBUG : ('SELECT "t1"."id", "t1"."camera", "t1"."path", "t1"."start_time", "t1"."end_time", "t1"."duration", "t1"."motion", "t1"."objects" FROM "recordings" AS "t1" WHERE (((("t1"."start_time" BETWEEN ? AND ?) OR ("t1"."end_time" BETWEEN ? AND ?)) OR (("t1"."start_time" < ?) AND ("t1"."end_time" > ?))) AND ("t1"."camera" = ?)) ORDER BY "t1"."start_time" ASC', [1664308636.56554, 1664308660.56569, 1664308636.56554, 1664308660.56569, 1664308636.56554, 1664308660.56569, 'haustuer'])
[2022-09-27 22:18:56] peewee DEBUG : ('SELECT "t1"."id", "t1"."label", "t1"."sub_label", "t1"."camera", "t1"."start_time", "t1"."end_time", "t1"."top_score", "t1"."false_positive", "t1"."zones", "t1"."thumbnail", "t1"."has_clip", "t1"."has_snapshot", "t1"."region", "t1"."box", "t1"."area", "t1"."retain_indefinitely", "t1"."ratio", "t1"."plus_id" FROM "event" AS "t1" WHERE ("t1"."id" = ?) LIMIT ? OFFSET ?', ['1664308641.56554-d1wqcd', 1, 0])
Download took 24 seconds resulting in a wrong video. Requested download url was: https://mydomain//api/events/1664308641.56554-d1wqcd/clip.mp4?download=true But firefox saves it as clip_haustuer_1664308636.56554-1664308660.56569.mp4 I guess the name is coming from the content-disposition http response header
content-disposition
attachment; filename=clip_haustuer_1664308636.56554-1664308660.56569.mp4
When switching to snapshot this url is requested: https://mydomain//api/events/1664308641.56554-d1wqcd/snapshot.jpg
[2022-09-27 22:10:02] urllib3.connectionpool DEBUG : Starting new HTTPS connection (1): api.github.com:443
[2022-09-27 22:12:48] peewee DEBUG : ('SELECT "t1"."id", "t1"."camera", "t1"."path", "t1"."start_time", "t1"."end_time", "t1"."duration", "t1"."motion", "t1"."objects" FROM "recordings" AS "t1" WHERE (((("t1"."start_time" BETWEEN ? AND ?) OR ("t1"."end_time" BETWEEN ? AND ?)) OR (("t1"."start_time" < ?) AND ("t1"."end_time" > ?))) AND ("t1"."camera" = ?)) ORDER BY "t1"."start_time" ASC', [1664308636.56554, 1664308660.56569, 1664308636.56554, 1664308660.56569, 1664308636.56554, 1664308660.56569, 'haustuer'])
[2022-09-27 22:13:13] frigate.record DEBUG : End expire files (legacy).
[2022-09-27 22:13:19] peewee DEBUG : ('SELECT "t1"."id", "t1"."camera", "t1"."label", "t1"."zones", "t1"."start_time", "t1"."end_time", "t1"."has_clip", "t1"."has_snapshot", "t1"."plus_id", "t1"."retain_indefinitely", "t1"."sub_label", "t1"."top_score" FROM "event" AS "t1" WHERE ("t1"."camera" = ?) ORDER BY "t1"."start_time" DESC LIMIT ?', ['haustuer', '25'])
[2022-09-27 22:13:20] peewee DEBUG : ('SELECT "t1"."id", "t1"."camera", "t1"."path", "t1"."start_time", "t1"."end_time", "t1"."duration", "t1"."motion", "t1"."objects" FROM "recordings" AS "t1" WHERE (((("t1"."start_time" BETWEEN ? AND ?) OR ("t1"."end_time" BETWEEN ? AND ?)) OR (("t1"."start_time" < ?) AND ("t1"."end_time" > ?))) AND ("t1"."camera" = ?)) ORDER BY "t1"."start_time" ASC', [1664308636.56554, 1664308660.56569, 1664308636.56554, 1664308660.56569, 1664308636.56554, 1664308660.56569, 'haustuer'])
[2022-09-27 22:13:22] peewee DEBUG : ('SELECT "t1"."id", "t1"."label", "t1"."sub_label", "t1"."camera", "t1"."start_time", "t1"."end_time", "t1"."top_score", "t1"."false_positive", "t1"."zones", "t1"."thumbnail", "t1"."has_clip", "t1"."has_snapshot", "t1"."region", "t1"."box", "t1"."area", "t1"."retain_indefinitely", "t1"."ratio", "t1"."plus_id" FROM "event" AS "t1" WHERE ("t1"."id" = ?) LIMIT ? OFFSET ?', ['1664308641.56554-d1wqcd', 1, 0])
[2022-09-27 22:18:52] peewee DEBUG : ('SELECT "t1"."id", "t1"."camera", "t1"."label", "t1"."zones", "t1"."start_time", "t1"."end_time", "t1"."has_clip", "t1"."has_snapshot", "t1"."plus_id", "t1"."retain_indefinitely", "t1"."sub_label", "t1"."top_score" FROM "event" AS "t1" WHERE ("t1"."camera" = ?) ORDER BY "t1"."start_time" DESC LIMIT ?', ['haustuer', '25'])
[2022-09-27 22:18:56] peewee DEBUG : ('SELECT "t1"."id", "t1"."camera", "t1"."path", "t1"."start_time", "t1"."end_time", "t1"."duration", "t1"."motion", "t1"."objects" FROM "recordings" AS "t1" WHERE (((("t1"."start_time" BETWEEN ? AND ?) OR ("t1"."end_time" BETWEEN ? AND ?)) OR (("t1"."start_time" < ?) AND ("t1"."end_time" > ?))) AND ("t1"."camera" = ?)) ORDER BY "t1"."start_time" ASC', [1664308636.56554, 1664308660.56569, 1664308636.56554, 1664308660.56569, 1664308636.56554, 1664308660.56569, 'haustuer'])
[2022-09-27 22:18:52] peewee DEBUG : ('SELECT "t1"."id", "t1"."label", "t1"."sub_label", "t1"."camera", "t1"."start_time", "t1"."end_time", "t1"."top_score", "t1"."false_positive", "t1"."zones", "t1"."thumbnail", "t1"."has_clip", "t1"."has_snapshot", "t1"."region", "t1"."box", "t1"."area", "t1"."retain_indefinitely", "t1"."ratio", "t1"."plus_id" FROM "event" AS "t1" WHERE ("t1"."id" = ?) LIMIT ? OFFSET ?', ['1664308641.56554-d1wqcd', 1, 0])
[2022-09-27 22:18:52] peewee DEBUG : ('SELECT DISTINCT "t1"."sub_label" FROM "event" AS "t1"', [])
[2022-09-27 22:18:52] peewee DEBUG : ('SELECT "t1"."id", "t1"."camera", "t1"."path", "t1"."start_time", "t1"."end_time", "t1"."duration", "t1"."motion", "t1"."objects" FROM "recordings" AS "t1" WHERE (((("t1"."start_time" BETWEEN ? AND ?) OR ("t1"."end_time" BETWEEN ? AND ?)) OR (("t1"."start_time" < ?) AND ("t1"."end_time" > ?))) AND ("t1"."camera" = ?)) ORDER BY "t1"."start_time" ASC', [1664308636.56554, 1664308660.56569, 1664308636.56554, 1664308660.56569, 1664308636.56554, 1664308660.56569, 'haustuer'])
[2022-09-27 22:18:54] peewee DEBUG : ('SELECT "t1"."id", "t1"."label", "t1"."sub_label", "t1"."camera", "t1"."start_time", "t1"."end_time", "t1"."top_score", "t1"."false_positive", "t1"."zones", "t1"."thumbnail", "t1"."has_clip", "t1"."has_snapshot", "t1"."region", "t1"."box", "t1"."area", "t1"."retain_indefinitely", "t1"."ratio", "t1"."plus_id" FROM "event" AS "t1" WHERE ("t1"."id" = ?) LIMIT ? OFFSET ?', ['1664308641.56554-d1wqcd', 1, 0])
[2022-09-27 22:18:54] peewee DEBUG : ('SELECT "t1"."id", "t1"."camera", "t1"."path", "t1"."start_time", "t1"."end_time", "t1"."duration", "t1"."motion", "t1"."objects" FROM "recordings" AS "t1" WHERE (((("t1"."start_time" BETWEEN ? AND ?) OR ("t1"."end_time" BETWEEN ? AND ?)) OR (("t1"."start_time" < ?) AND ("t1"."end_time" > ?))) AND ("t1"."camera" = ?)) ORDER BY "t1"."start_time" ASC', [1664308636.56554, 1664308660.56569, 1664308636.56554, 1664308660.56569, 1664308636.56554, 1664308660.56569, 'haustuer'])
[2022-09-27 22:18:56] peewee DEBUG : ('SELECT "t1"."id", "t1"."label", "t1"."sub_label", "t1"."camera", "t1"."start_time", "t1"."end_time", "t1"."top_score", "t1"."false_positive", "t1"."zones", "t1"."thumbnail", "t1"."has_clip", "t1"."has_snapshot", "t1"."region", "t1"."box", "t1"."area", "t1"."retain_indefinitely", "t1"."ratio", "t1"."plus_id" FROM "event" AS "t1" WHERE ("t1"."id" = ?) LIMIT ? OFFSET ?', ['1664308641.56554-d1wqcd', 1, 0])
[2022-09-27 22:27:37] peewee DEBUG : ('SELECT "t1"."id", "t1"."label", "t1"."sub_label", "t1"."camera", "t1"."start_time", "t1"."end_time", "t1"."top_score", "t1"."false_positive", "t1"."zones", "t1"."thumbnail", "t1"."has_clip", "t1"."has_snapshot", "t1"."region", "t1"."box", "t1"."area", "t1"."retain_indefinitely", "t1"."ratio", "t1"."plus_id" FROM "event" AS "t1" WHERE ("t1"."id" = ?) LIMIT ? OFFSET ?', ['1664308641.56554-d1wqcd', 1, 0])
[2022-09-27 22:27:35] peewee DEBUG : ('SELECT DISTINCT "t1"."sub_label" FROM "event" AS "t1"', [])
[2022-09-27 22:27:35] peewee DEBUG : ('SELECT "t1"."id", "t1"."camera", "t1"."label", "t1"."zones", "t1"."start_time", "t1"."end_time", "t1"."has_clip", "t1"."has_snapshot", "t1"."plus_id", "t1"."retain_indefinitely", "t1"."sub_label", "t1"."top_score" FROM "event" AS "t1" WHERE ("t1"."camera" = ?) ORDER BY "t1"."start_time" DESC LIMIT ?', ['haustuer', '25'])
[2022-09-27 22:27:37] peewee DEBUG : ('SELECT "t1"."id", "t1"."camera", "t1"."path", "t1"."start_time", "t1"."end_time", "t1"."duration", "t1"."motion", "t1"."objects" FROM "recordings" AS "t1" WHERE (((("t1"."start_time" BETWEEN ? AND ?) OR ("t1"."end_time" BETWEEN ? AND ?)) OR (("t1"."start_time" < ?) AND ("t1"."end_time" > ?))) AND ("t1"."camera" = ?)) ORDER BY "t1"."start_time" ASC', [1664308636.56554, 1664308660.56569, 1664308636.56554, 1664308660.56569, 1664308636.56554, 1664308660.56569, 'haustuer'])
[2022-09-27 22:28:07] peewee DEBUG : ('SELECT "t1"."id", "t1"."camera", "t1"."label", "t1"."zones", "t1"."start_time", "t1"."end_time", "t1"."has_clip", "t1"."has_snapshot", "t1"."plus_id", "t1"."retain_indefinitely", "t1"."sub_label", "t1"."top_score" FROM "event" AS "t1" WHERE ("t1"."camera" = ?) ORDER BY "t1"."start_time" DESC LIMIT ?', ['haustuer', '25'])
[2022-09-27 22:28:07] peewee DEBUG : ('SELECT DISTINCT "t1"."sub_label" FROM "event" AS "t1"', [])
Could this be a database issue? Or something related to my nginx reverse proxy?
Reverse proxy config:
server {
listen 443 ssl http2;
server_name mydomain;
set_real_ip_from 192.168.40.242;
real_ip_header X-Forwarded-For;
add_header Strict-Transport-Security "max-age=15552000;preload";
client_max_body_size 1000M;
if ($allowed_country = yes) {
set $exclusions 1;
}
if ($exclusions = "0") {
return 444;
}
location / {
auth_basic "Restricted";
auth_basic_user_file /etc/nginx/conf.d/.htpasswd;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $server_name;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_pass http://192.168.1.242:5000/;
proxy_read_timeout 90;
}
ssl_certificate /etc/letsencrypt/live/mydomain/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/mydomain/privkey.pem;
if ($scheme != "https") {
return 301 https://$host$request_uri;
}
}
I've downloaded the sqlite db and had a look at the mentioned event. I guess I could upload the database if it helps.
GET on https://mydomain//vod/event/1664301007.338933-w2ps5p/master.m3u8 returns 503 service unavailable. For the other camera a GET e.g. on https://mydomain//vod/event/1664346478.550336-3c11q4/master.m3u8 200 OK.
The event table entry for ID "1664301007.338933-w2ps5p" looks totally fine but I didn't really understand the relation to the recordings table yet. There is no entry with this ID.
By the way when I try to download one of the faulty clips an FFMPEG process with 100% cpu load starts. It seems to cut a piece of video from a recording when the clip is unavailable.
ffmpeg -y -protocol_whitelist pipe,file -f concat -safe 0 -i /dev/stdin -c copy -movflags +faststart /tmp/cache/clip_haustuer_1664301002.338933-1664301037.748637.mp4
For clips from the other camera the download starts immediately and does not start such a FFMPEG process.
Log from the time when I selected the event and the clip could not be played back.
[2022-09-28 20:55:52] frigate.record DEBUG : Checking tmp clip /tmp/cache/clip_haustuer_1664301002.338933-1664301037.748637.mp4.
[2022-09-28 20:56:52] frigate.record DEBUG : Checking tmp clip /tmp/cache/clip_haustuer_1664301002.338933-1664301037.748637.mp4.
[2022-09-28 20:56:52] frigate.record DEBUG : Deleting tmp clip.
[2022-09-28 20:57:02] peewee DEBUG : ('SELECT "t1"."id", "t1"."camera", "t1"."label", "t1"."zones", "t1"."start_time", "t1"."end_time", "t1"."has_clip", "t1"."has_snapshot", "t1"."plus_id", "t1"."retain_indefinitely", "t1"."sub_label", "t1"."top_score" FROM "event" AS "t1" WHERE ("t1"."camera" = ?) ORDER BY "t1"."start_time" DESC LIMIT ?', ['haustuer', '25'])
[2022-09-28 20:57:06] peewee DEBUG : ('SELECT "t1"."id", "t1"."label", "t1"."sub_label", "t1"."camera", "t1"."start_time", "t1"."end_time", "t1"."top_score", "t1"."false_positive", "t1"."zones", "t1"."thumbnail", "t1"."has_clip", "t1"."has_snapshot", "t1"."region", "t1"."box", "t1"."area", "t1"."retain_indefinitely", "t1"."ratio", "t1"."plus_id" FROM "event" AS "t1" WHERE ("t1"."id" = ?) LIMIT ? OFFSET ?', ['1664301007.338933-w2ps5p', 1, 0])
[2022-09-28 20:57:06] peewee DEBUG : ('SELECT "t1"."id", "t1"."camera", "t1"."path", "t1"."start_time", "t1"."end_time", "t1"."duration", "t1"."motion", "t1"."objects" FROM "recordings" AS "t1" WHERE (((("t1"."start_time" BETWEEN ? AND ?) OR ("t1"."end_time" BETWEEN ? AND ?)) OR (("t1"."start_time" < ?) AND ("t1"."end_time" > ?))) AND ("t1"."camera" = ?)) ORDER BY "t1"."start_time" ASC', [1664301002.338933, 1664301037.748637, 1664301002.338933, 1664301037.748637, 1664301002.338933, 1664301037.748637, 'haustuer'])
[2022-09-28 21:00:23] peewee DEBUG : ('SELECT DISTINCT "t1"."sub_label" FROM "event" AS "t1"', [])
[2022-09-28 21:00:33] peewee DEBUG : ('SELECT DISTINCT "t1"."sub_label" FROM "event" AS "t1"', [])
[2022-09-28 21:00:38] peewee DEBUG : ('SELECT "t1"."id", "t1"."camera", "t1"."label", "t1"."zones", "t1"."start_time", "t1"."end_time", "t1"."has_clip", "t1"."has_snapshot", "t1"."plus_id", "t1"."retain_indefinitely", "t1"."sub_label", "t1"."top_score" FROM "event" AS "t1" WHERE ("t1"."camera" = ?) ORDER BY "t1"."start_time" DESC LIMIT ?', ['haustuer', '25'])
[2022-09-28 21:00:38] peewee DEBUG : ('SELECT "t1"."id", "t1"."label", "t1"."sub_label", "t1"."camera", "t1"."start_time", "t1"."end_time", "t1"."top_score", "t1"."false_positive", "t1"."zones", "t1"."thumbnail", "t1"."has_clip", "t1"."has_snapshot", "t1"."region", "t1"."box", "t1"."area", "t1"."retain_indefinitely", "t1"."ratio", "t1"."plus_id" FROM "event" AS "t1" WHERE ("t1"."id" = ?) LIMIT ? OFFSET ?', ['1664301007.338933-w2ps5p', 1, 0])
[2022-09-28 21:14:07] peewee DEBUG : ('SELECT "t1"."id", "t1"."camera", "t1"."label", "t1"."zones", "t1"."start_time", "t1"."end_time", "t1"."has_clip", "t1"."has_snapshot", "t1"."plus_id", "t1"."retain_indefinitely", "t1"."sub_label", "t1"."top_score" FROM "event" AS "t1" WHERE ("t1"."camera" = ?) ORDER BY "t1"."start_time" DESC LIMIT ?', ['haustuer', '25'])
[2022-09-28 21:14:07] peewee DEBUG : ('SELECT "t1"."id", "t1"."label", "t1"."sub_label", "t1"."camera", "t1"."start_time", "t1"."end_time", "t1"."top_score", "t1"."false_positive", "t1"."zones", "t1"."thumbnail", "t1"."has_clip", "t1"."has_snapshot", "t1"."region", "t1"."box", "t1"."area", "t1"."retain_indefinitely", "t1"."ratio", "t1"."plus_id" FROM "event" AS "t1" WHERE ("t1"."id" = ?) LIMIT ? OFFSET ?', ['1664301007.338933-w2ps5p', 1, 0])
[2022-09-28 21:14:07] peewee DEBUG : ('SELECT DISTINCT "t1"."sub_label" FROM "event" AS "t1"', [])
[2022-09-28 21:14:07] peewee DEBUG : ('SELECT "t1"."id", "t1"."camera", "t1"."path", "t1"."start_time", "t1"."end_time", "t1"."duration", "t1"."motion", "t1"."objects" FROM "recordings" AS "t1" WHERE (((("t1"."start_time" BETWEEN ? AND ?) OR ("t1"."end_time" BETWEEN ? AND ?)) OR (("t1"."start_time" < ?) AND ("t1"."end_time" > ?))) AND ("t1"."camera" = ?)) ORDER BY "t1"."start_time" ASC', [1664301002.338933, 1664301037.748637, 1664301002.338933, 1664301037.748637, 1664301002.338933, 1664301037.748637, 'haustuer'])
[2022-09-28 21:14:08] peewee DEBUG : ('SELECT "t1"."id", "t1"."label", "t1"."sub_label", "t1"."camera", "t1"."start_time", "t1"."end_time", "t1"."top_score", "t1"."false_positive", "t1"."zones", "t1"."thumbnail", "t1"."has_clip", "t1"."has_snapshot", "t1"."region", "t1"."box", "t1"."area", "t1"."retain_indefinitely", "t1"."ratio", "t1"."plus_id" FROM "event" AS "t1" WHERE ("t1"."id" = ?) LIMIT ? OFFSET ?', ['1664301007.338933-w2ps5p', 1, 0])
[2022-09-28 21:14:08] peewee DEBUG : ('SELECT "t1"."id", "t1"."camera", "t1"."path", "t1"."start_time", "t1"."end_time", "t1"."duration", "t1"."motion", "t1"."objects" FROM "recordings" AS "t1" WHERE (((("t1"."start_time" BETWEEN ? AND ?) OR ("t1"."end_time" BETWEEN ? AND ?)) OR (("t1"."start_time" < ?) AND ("t1"."end_time" > ?))) AND ("t1"."camera" = ?)) ORDER BY "t1"."start_time" ASC', [1664301002.338933, 1664301037.748637, 1664301002.338933, 1664301037.748637, 1664301002.338933, 1664301037.748637, 'haustuer'])
[2022-09-28 21:14:10] peewee DEBUG : ('SELECT "t1"."id", "t1"."label", "t1"."sub_label", "t1"."camera", "t1"."start_time", "t1"."end_time", "t1"."top_score", "t1"."false_positive", "t1"."zones", "t1"."thumbnail", "t1"."has_clip", "t1"."has_snapshot", "t1"."region", "t1"."box", "t1"."area", "t1"."retain_indefinitely", "t1"."ratio", "t1"."plus_id" FROM "event" AS "t1" WHERE ("t1"."id" = ?) LIMIT ? OFFSET ?', ['1664301007.338933-w2ps5p', 1, 0])
[2022-09-28 21:14:10] peewee DEBUG : ('SELECT "t1"."id", "t1"."camera", "t1"."path", "t1"."start_time", "t1"."end_time", "t1"."duration", "t1"."motion", "t1"."objects" FROM "recordings" AS "t1" WHERE (((("t1"."start_time" BETWEEN ? AND ?) OR ("t1"."end_time" BETWEEN ? AND ?)) OR (("t1"."start_time" < ?) AND ("t1"."end_time" > ?))) AND ("t1"."camera" = ?)) ORDER BY "t1"."start_time" ASC', [1664301002.338933, 1664301037.748637, 1664301002.338933, 1664301037.748637, 1664301002.338933, 1664301037.748637, 'haustuer'])
Log when selected download clip until clip downloaded (with wrong video content)
[2022-09-28 21:15:17] peewee DEBUG : ('SELECT "t1"."id", "t1"."camera", "t1"."label", "t1"."zones", "t1"."start_time", "t1"."end_time", "t1"."has_clip", "t1"."has_snapshot", "t1"."plus_id", "t1"."retain_indefinitely", "t1"."sub_label", "t1"."top_score" FROM "event" AS "t1" WHERE ("t1"."camera" = ?) ORDER BY "t1"."start_time" DESC LIMIT ?', ['haustuer', '25'])
[2022-09-28 21:15:17] peewee DEBUG : ('SELECT "t1"."id", "t1"."label", "t1"."sub_label", "t1"."camera", "t1"."start_time", "t1"."end_time", "t1"."top_score", "t1"."false_positive", "t1"."zones", "t1"."thumbnail", "t1"."has_clip", "t1"."has_snapshot", "t1"."region", "t1"."box", "t1"."area", "t1"."retain_indefinitely", "t1"."ratio", "t1"."plus_id" FROM "event" AS "t1" WHERE ("t1"."id" = ?) LIMIT ? OFFSET ?', ['1664301007.338933-w2ps5p', 1, 0])
[2022-09-28 21:15:17] peewee DEBUG : ('SELECT DISTINCT "t1"."sub_label" FROM "event" AS "t1"', [])
[2022-09-28 21:15:17] peewee DEBUG : ('SELECT "t1"."id", "t1"."camera", "t1"."path", "t1"."start_time", "t1"."end_time", "t1"."duration", "t1"."motion", "t1"."objects" FROM "recordings" AS "t1" WHERE (((("t1"."start_time" BETWEEN ? AND ?) OR ("t1"."end_time" BETWEEN ? AND ?)) OR (("t1"."start_time" < ?) AND ("t1"."end_time" > ?))) AND ("t1"."camera" = ?)) ORDER BY "t1"."start_time" ASC', [1664301002.338933, 1664301037.748637, 1664301002.338933, 1664301037.748637, 1664301002.338933, 1664301037.748637, 'haustuer'])
Btw: After deleting the datebase (made a backup before) events from this camera can be played back and downloaded just fine.
So it seems to be an issue with the database.
I've seen this once before on my setup. It happened when a decent was entered that essentially lasted until 2059 or something which naturally threw everything off.
I've never had it happen again though, so not really able to reproduce to fix or know what caused it.
I'm getting the "The media could not be loaded, either because the server or network failed or because the format is not supported." error message on a black screen with a spinner a lot when trying to play back events. As in 30–50% of them. I haven't had the time to investigate it properly and file a bug report/config support issue yet, but if it's helpful, I'm happy to try to provide additional info here.
It could be due to a completely different underlying issue, of course.
I'm getting the "The media could not be loaded, either because the server or network failed or because the format is not supported." error message on a black screen with a spinner a lot when trying to play back events. As in 30–50% of them. I haven't had the time to investigate it properly and file a bug report/config support issue yet, but if it's helpful, I'm happy to try to provide additional info here.
It could be due to a completely different underlying issue, of course.
Unless it's not working on one camera but working for others, it's likely something different
It's not specific to one camera. It sometimes works, sometimes not for all the cameras.
It's not specific to one camera. It sometimes works, sometimes not for all the cameras.
Recommend making your own issue then
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Describe the problem you are having
First of all thanks for this amazing piece of software :) Even without Coral TPU it's working very fine without much CPU load in my scenario.
I'm using two very similar cameras (Lupus LE221 and LE228) with same video settings.
The issue: Events/recordings from the LE228 (camera "haustuer, 192.168.1.244) can't be played back from browser (Firefox and Chromium). Also downloading event clips (event download button, download clip) isn't working
When selecting an event or recording the message "The media could not be loaded, either because the server or network failed or because the format is not supported." is shown. Firefox debug console shows 503 Service unavailable for master.m3u8. Debug output from VideoJs: "VIDEOJS: ERROR: (CODE:4 MEDIA_ERR_SRC_NOT_SUPPORTED) The media could not be loaded, either because the server or network failed or because the format is not supported. "
When trying to download an event clip (select event, download icon, download clip) it takes very long (like 30 seconds or so) until it download a completely wrong video even though the url is looking fine (https://mydomain//api/events/1664301007.338933-w2ps5p/clip.mp4?download=true). In this case after 27sec it downloaded the clip with id clip_haustuer_1664301002.338933-1664301037.748637. Downloading the snapshot is working without any issue.
It does not happen for the other camera even though both are configured the same way: Main (record stream): H264, 2688x1520, 20 FPS, CBR, 2880Kb/s, I frame interval 40 Extra stream (detection): H264, 1280x720, 15 FPS, CBR 1024Kb/s, I frame interval 30
Only difference is that audio recording is active for the camera with the issue but I also tried commenting out the output_args section in the config.
Version
0.11.0-3846a13
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
Wired
Camera make and model
Lupus LE228
Any other information that may be helpful
GPU acceleration on Ryzen 5600G seems to be working fine with docker. Here's my docker-compose.yml