J’ai récemment décidé de passer à l’étape supérieure dans l’utilisation de mes caméras, afin en particulier de limiter les faux positifs (détection de vent et changement de lumière,…), mais aussi de préparer l’arrivée d’un poulailler où je mettrai des caméras pour surveiller que mes ouailles rentrent bien au bercail le soir, et aussi voir si des oeufs arrivent.
Pour ça, je passe d’un système NVR Synology « surveillance station » où j’ai 6 caméras (que je conserverai un certain temps, backup) à un système axé sur Frigate.
J’ai donc installé frigate sur un NUC (lenovo intel i5, de 2017), via proxmox/lxc et avec l’installation docker.
J’ai galéré un peu, mais jusqu’à présent, avec tout ce qu’il y a sur les forums, ça a fini par marcher.
J’en suis maintenant à chercher pour mes 6 caméras leurs adresses url de flux rstp à mettre dans le fichier de conf de frigate.
J’en ai 3 sur les 6.
Mais, pour les 3 restantes, impossible de trouver.
Les 6 fonctionnaient bien avec Synology.
Voici les 3 caméras concernées : leur ip sont du type 192.168.1.xxx:zzz
2 sont du même modèle : Ansice camera IP , qui marchent sur un port onvif 8899
Elles datent 2014, du genre (mais pas exactement) lien caméra ansice
1 est FOSCAM FI8918W
Impossible de trouver la manière de configurer leur flux rstp…
Quelles ressources utilisez vous pour trouver ces flux?
Des tuyaux sur comment trouver un flux rstp de caméra genre « noname » ?
Merci,
Vincent
Ma configuration
HA : sur un NUC Lenovo 1, via VM sur proxmox. Z2M et MQTT par addon
Frigate : sur un NUC lenovo 2, via docker sur un LXC Proxmox. Pas de clé Coral.
Bonjour,
Merci pour le site.
A force d’essais et erreurs, + obtination, j’ai fini par trouver la bonne URL pour les caméras Ansice .
En revanche, aucune piste pour la FOSCAM FI8918W. J’ai essayé toutes les syntaxes proposées par le site, sans succès.
En regardant la liste des protocoles réseau de cette caméra, ça ne mentionne que :
Protocoles réseau DDNS, DHCP, FTP, HTTP, SMTP, TCP/IP, UDP/IP, UPnP, PPPoE
donc, c’est mort pour l’intégrer sous frigate? Trop vieille?
Oui bien y a t-il un autre moyen de le faire? J’ai un peu essayé la page de doc Frigate caméras spécifiques mais pour l’instant, rien…
non, je n’avais pas essayé.
Et effectivement, ça marche avec VLC, en ouvrant le Stream. Mais j’ai entré ça dans le fichier de conf Frigate, et là j’ai des erreurs et la video affiche « no frame received, check error log », qui dit :
2024-02-13 19:54:58.436714307 [2024-02-13 19:54:58] frigate.video ERROR : cctv_portail: Unable to read frames from ffmpeg process.
2024-02-13 19:54:58.437328416 [2024-02-13 19:54:58] frigate.video ERROR : cctv_portail: ffmpeg process is not running. exiting capture thread...
2024-02-13 19:55:18.205579163 [2024-02-13 19:55:18] watchdog.cctv_portail ERROR : Ffmpeg process crashed unexpectedly for cctv_portail.
2024-02-13 19:55:18.206061541 [2024-02-13 19:55:18] watchdog.cctv_portail ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
2024-02-13 19:55:18.206064246 [2024-02-13 19:55:18] ffmpeg.cctv_portail.detect ERROR : Option rtsp_transport not found.
ca peut venir de pas mal de choses, je me suis bien cassé la tête aussi pour configurer une caméra noname. voici un lien qui propose plus d’URLs a tester .
ce que tu peux faire c’est lancer un ffprobe depuis le container frigate
Est ce que tu peux a tout hasard me copier /coller le contenu de ton fichier de config et plus particulièrement la partie qui concerne ta caméra portail.
je pourrai mieux t’aider concernant les settings, je vois dans ton message d’erreur
Option rtsp_transport not found.
il te manque peut être ce setting…
input_args: preset-rtsp-restream
ainsi que
roles
- rtmp
que je pourrai t’indiquer où placer en voyant ta config
J’ai essayé de voir pour faire ffprobe, mais il faut que je creuse la question car je ne vois pas comment le lancer dans le container docker. Je ne connais pas cette instruction, et je ne suis pas un pro de Linux.
Concernant ma configuration, voici l’essentiel (j’ai retiré les caméras qui marchent bien, juste une laissée en exemple).
C’était aussi mon idée dans un second temps. Comme c’est visiblement un processus de recherche et découverte, je voulais d’abord avoir quelque chose de fonctionnel avant de passer a l’étape optimisations
désolé de ne répondre que maintenant, qq jours loin de la domotique (WAF oblige ).
Donc, j’ai un peu avancé sur Frigate, surtout en installant la coralTPU que je viens de recevoir. C’est impressionnant la différence que ça fait. Avant je tournais à 50-80% de TPU pour un inférence de 200-300ms. Et là, je suis à moins de 5% pour une inférence de 8ms… Bref, c’est top.
Pour revenir à cette dernière caméra qui résiste, voici déjà le résultat du ffprobe (merci pour le guide, j’aurais jamais trouvé ça tout seul !)
Pas de soucis pour le délais, tant que tu marques le sujet comme résolu une fois que tout marche bien.
Ce que je vois c’est que tu as un
HTTP error 401 Unauthorized
la caméra refuse la connexion pour cause de mauvais utilisateur ou mot de passe. Est ce que tu es certain des données de connexion ? Tu peux toujours essayer dans mettre d’utilisateur/mdp
Tu peux faire le test avec VLC sur les URLs HTTP, par contre je me méfie du rtsp car j’ai déja eu des tests ou VLC n’ouvre pas le stream RTSP mais Frigate le fait sans problème.
Si après cela, ca ne marche pas il nous reste
l’utilistateur sera alors « admin » et pas de mot de passe.
go2rtc:
streams:
portail:
- http://hassio:pwd@192.168.1.180:1180/videostream.asf
- "ffmpeg:lab#video=h264#hardware" # <- use hardware acceleration to create an h264 stream usable for other components.
webrtc:
candidates:
- 192.168.1.221:8555
2024-02-16 11:02:37.224862342 [INFO] Preparing Frigate...
2024-02-16 11:02:37.254703929 [INFO] Starting Frigate...
2024-02-16 11:02:38.424248062 [2024-02-16 11:02:38] frigate.app INFO : Starting Frigate (0.13.1-34fb1c2)
2024-02-16 11:02:41.023397021 [2024-02-16 11:02:41] frigate.config WARNING : cctv_garage: Recording retention is configured for active_objects and event retention is configured for motion. The more restrictive retention policy will be applied.
2024-02-16 11:02:43.937908712 [2024-02-16 11:02:43] frigate.config WARNING : cctv_jardin: Recording retention is configured for active_objects and event retention is configured for motion. The more restrictive retention policy will be applied.
2024-02-16 11:02:43.939076828 [2024-02-16 11:02:43] frigate.config WARNING : cctv_terrasse: Recording retention is configured for active_objects and event retention is configured for motion. The more restrictive retention policy will be applied.
2024-02-16 11:02:45.218052704 [2024-02-16 11:02:45] frigate.config WARNING : cctv_abri: Recording retention is configured for active_objects and event retention is configured for motion. The more restrictive retention policy will be applied.
2024-02-16 11:02:46.443479487 [2024-02-16 11:02:46] frigate.config WARNING : cctv_allee: Recording retention is configured for active_objects and event retention is configured for motion. The more restrictive retention policy will be applied.
2024-02-16 11:02:47.661930329 [rtsp @ 0x3cfcd80] method DESCRIBE failed: 404 Not Found
2024-02-16 11:02:47.662147609 [ERROR:0@9.765] global cap.cpp:164 open VIDEOIO(CV_IMAGES): raised OpenCV exception:
2024-02-16 11:02:47.662150418
2024-02-16 11:02:47.662152739 OpenCV(4.7.0) /io/opencv/modules/videoio/src/cap_images.cpp:253: error: (-5:Bad argument) CAP_IMAGES: can't find starting number (in the name of file): rtsp://127.0.0.1:8554/portail in function 'icvExtractPattern'
2024-02-16 11:02:47.662155843
2024-02-16 11:02:47.662156941
2024-02-16 11:02:47.665573850 [2024-02-16 11:02:47] frigate.config WARNING : cctv_portail: Recording retention is configured for active_objects and event retention is configured for motion. The more restrictive retention policy will be applied.
2024-02-16 11:02:47.694186280 [2024-02-16 11:02:47] peewee_migrate.logs INFO : Starting migrations
2024-02-16 11:02:47.697827737 [2024-02-16 11:02:47] peewee_migrate.logs INFO : There is nothing to migrate
2024-02-16 11:02:47.702956005 [2024-02-16 11:02:47] frigate.app INFO : Recording process started: 312
2024-02-16 11:02:47.705514671 [2024-02-16 11:02:47] frigate.app INFO : go2rtc process pid: 89
2024-02-16 11:02:47.736733938 [2024-02-16 11:02:47] frigate.app INFO : Output process started: 323
2024-02-16 11:02:47.774263150 [2024-02-16 11:02:47] frigate.app INFO : Camera processor started for cctv_garage: 332
2024-02-16 11:02:47.779629866 [2024-02-16 11:02:47] frigate.app INFO : Camera processor started for cctv_jardin: 334
2024-02-16 11:02:47.785281240 [2024-02-16 11:02:47] frigate.app INFO : Camera processor started for cctv_terrasse: 335
2024-02-16 11:02:47.790911923 [2024-02-16 11:02:47] frigate.app INFO : Camera processor started for cctv_abri: 336
2024-02-16 11:02:47.801090116 [2024-02-16 11:02:47] frigate.app INFO : Camera processor started for cctv_allee: 337
2024-02-16 11:02:47.822110227 [2024-02-16 11:02:47] frigate.app INFO : Camera processor started for cctv_portail: 342
2024-02-16 11:02:47.834883657 [2024-02-16 11:02:47] frigate.app INFO : Capture process started for cctv_garage: 346
2024-02-16 11:02:47.846412664 [2024-02-16 11:02:47] frigate.app INFO : Capture process started for cctv_jardin: 349
2024-02-16 11:02:47.852174945 [2024-02-16 11:02:47] frigate.app INFO : Capture process started for cctv_terrasse: 352
2024-02-16 11:02:47.862580672 [2024-02-16 11:02:47] frigate.app INFO : Capture process started for cctv_abri: 355
2024-02-16 11:02:47.878651975 [2024-02-16 11:02:47] frigate.app INFO : Capture process started for cctv_allee: 362
2024-02-16 11:02:47.907569033 [2024-02-16 11:02:47] frigate.app INFO : Capture process started for cctv_portail: 371
2024-02-16 11:02:48.658698159 [2024-02-16 11:02:48] frigate.video ERROR : cctv_portail: Unable to read frames from ffmpeg process.
2024-02-16 11:02:48.658702469 [2024-02-16 11:02:48] frigate.video ERROR : cctv_portail: ffmpeg process is not running. exiting capture thread...
2024-02-16 11:02:50.405695131 [2024-02-16 11:02:47] detector.coral INFO : Starting detection process: 322
2024-02-16 11:02:50.405699826 [2024-02-16 11:02:47] frigate.detectors.plugins.edgetpu_tfl INFO : Attempting to load TPU as usb
2024-02-16 11:02:50.409191542 [2024-02-16 11:02:50] frigate.detectors.plugins.edgetpu_tfl INFO : TPU found
2024-02-16 11:03:07.999767404 [2024-02-16 11:03:07] watchdog.cctv_portail ERROR : Ffmpeg process crashed unexpectedly for cctv_portail.
2024-02-16 11:03:07.999771870 [2024-02-16 11:03:07] watchdog.cctv_portail ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
2024-02-16 11:03:07.999773607 [2024-02-16 11:03:07] ffmpeg.cctv_portail.detect ERROR : [rtsp @ 0x5592e4676100] method DESCRIBE failed: 404 Not Found
2024-02-16 11:03:07.999775183 [2024-02-16 11:03:07] ffmpeg.cctv_portail.detect ERROR : rtsp://127.0.0.1:8554/portail: Server returned 404 Not Found
2024-02-16 11:03:08.557346012 [2024-02-16 11:03:08] frigate.video ERROR : cctv_portail: Unable to read frames from ffmpeg process.
2024-02-16 11:03:08.557627778 [2024-02-16 11:03:08] frigate.video ERROR : cctv_portail: ffmpeg process is not running. exiting capture thread...
2024-02-16 11:03:18.009701589 [2024-02-16 11:03:18] watchdog.cctv_portail ERROR : Ffmpeg process crashed unexpectedly for cctv_portail.
2024-02-16 11:03:18.009705880 [2024-02-16 11:03:18] watchdog.cctv_portail ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
2024-02-16 11:03:18.009707655 [2024-02-16 11:03:18] ffmpeg.cctv_portail.detect ERROR : [rtsp @ 0x55e605ba0100] method DESCRIBE failed: 404 Not Found
2024-02-16 11:03:18.009709218 [2024-02-16 11:03:18] ffmpeg.cctv_portail.detect ERROR : rtsp://127.0.0.1:8554/portail: Server returned 404 Not Found
2024-02-16 11:03:18.762621609 [2024-02-16 11:03:18] frigate.video ERROR : cctv_portail: Unable to read frames from ffmpeg process.
2024-02-16 11:03:18.762994768 [2024-02-16 11:03:18] frigate.video ERROR : cctv_portail: ffmpeg process is not running. exiting capture thread...
2024-02-16 11:03:28.015745409 [2024-02-16 11:03:28] watchdog.cctv_portail ERROR : Ffmpeg process crashed unexpectedly for cctv_portail.
2024-02-16 11:03:28.015833592 [2024-02-16 11:03:28] watchdog.cctv_portail ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
2024-02-16 11:03:28.016092757 [2024-02-16 11:03:28] ffmpeg.cctv_portail.detect ERROR : [rtsp @ 0x562b543b2100] method DESCRIBE failed: 404 Not Found
2024-02-16 11:03:28.016096087 [2024-02-16 11:03:28] ffmpeg.cctv_portail.detect ERROR : rtsp://127.0.0.1:8554/portail: Server returned 404 Not Found
2024-02-16 11:03:28.628314467 [2024-02-16 11:03:28] frigate.video ERROR : cctv_portail: Unable to read frames from ffmpeg process.
2024-02-16 11:03:28.629118459 [2024-02-16 11:03:28] frigate.video ERROR : cctv_portail: ffmpeg process is not running. exiting capture thread...
2024-02-16 11:03:38.026940534 [2024-02-16 11:03:38] watchdog.cctv_portail ERROR : Ffmpeg process crashed unexpectedly for cctv_portail.
2024-02-16 11:03:38.026944944 [2024-02-16 11:03:38] watchdog.cctv_portail ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
2024-02-16 11:03:38.026946789 [2024-02-16 11:03:38] ffmpeg.cctv_portail.detect ERROR : [rtsp @ 0x5612b1f05100] method DESCRIBE failed: 404 Not Found
2024-02-16 11:03:38.026948636 [2024-02-16 11:03:38] ffmpeg.cctv_portail.detect ERROR : rtsp://127.0.0.1:8554/portail: Server returned 404 Not Found
2024-02-16 11:03:38.675615080 [2024-02-16 11:03:38] frigate.video ERROR : cctv_portail: Unable to read frames from ffmpeg process.
2024-02-16 11:03:38.675824971 [2024-02-16 11:03:38] frigate.video ERROR : cctv_portail: ffmpeg process is not running. exiting capture thread...
si cela ne fonctionne pas avec l’optimisation hardware essaye au plus simple avec cette seule ligne pour l’instant. on optimisera une fois que tu auras une image.
2024-02-16 13:37:18.803848983 [2024-02-16 13:37:18] frigate.video ERROR : cctv_portail: Unable to read frames from ffmpeg process.
2024-02-16 13:37:18.804813833 [2024-02-16 13:37:18] frigate.video ERROR : cctv_portail: ffmpeg process is not running. exiting capture thread...
2024-02-16 13:37:21.214670093 [2024-02-16 13:37:18] detector.coral INFO : Starting detection process: 372
2024-02-16 13:37:21.214674299 [2024-02-16 13:37:18] frigate.detectors.plugins.edgetpu_tfl INFO : Attempting to load TPU as usb
2024-02-16 13:37:21.218401729 [2024-02-16 13:37:21] frigate.detectors.plugins.edgetpu_tfl INFO : TPU found
2024-02-16 13:37:38.817089248 [2024-02-16 13:37:38] watchdog.cctv_portail ERROR : Ffmpeg process crashed unexpectedly for cctv_portail.
2024-02-16 13:37:38.817093205 [2024-02-16 13:37:38] watchdog.cctv_portail ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
2024-02-16 13:37:38.817095323 [2024-02-16 13:37:38] ffmpeg.cctv_portail.detect ERROR : [tcp @ 0x5587ee83a2c0] Connection to tcp://127.0.0.1:8554?timeout=5000000 failed: Connection refused
2024-02-16 13:37:38.817096845 [2024-02-16 13:37:38] ffmpeg.cctv_portail.detect ERROR : rtsp://127.0.0.1:8554/portail: Connection refused
2024-02-16 13:37:38.829471606 [2024-02-16 13:37:38] frigate.video ERROR : cctv_portail: Unable to read frames from ffmpeg process.
2024-02-16 13:37:38.830858040 [2024-02-16 13:37:38] frigate.video ERROR : cctv_portail: ffmpeg process is not running. exiting capture thread...
2024-02-16 13:37:48.834176891 [2024-02-16 13:37:48] watchdog.cctv_portail ERROR : Ffmpeg process crashed unexpectedly for cctv_portail.
2024-02-16 13:37:48.834181422 [2024-02-16 13:37:48] watchdog.cctv_portail ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
2024-02-16 13:37:48.834183543 [2024-02-16 13:37:48] ffmpeg.cctv_portail.detect ERROR : [tcp @ 0x55d6a27282c0] Connection to tcp://127.0.0.1:8554?timeout=5000000 failed: Connection refused
2024-02-16 13:37:48.834185067 [2024-02-16 13:37:48] ffmpeg.cctv_portail.detect ERROR : rtsp://127.0.0.1:8554/portail: Connection refused
et le log go2rtc
2024-02-16 13:37:09.585445014 [INFO] Preparing new go2rtc config...
2024-02-16 13:37:09.925742593 [INFO] The go2rtc service exited with code 1 (by signal 0)
2024-02-16 13:37:10.934743348 [INFO] Preparing new go2rtc config...
2024-02-16 13:37:11.153459016 [INFO] The go2rtc service exited with code 1 (by signal 0)
très bizarre, et frustrant…
Ce qui est bizarre en plus, c’est que dans la page system de frigate, il affiche cela pour cette caméra:
donc go2rtc refuses la connexion et c’est normal puisqu’il crashe.
et dans ta dernière capture il n’y a rien que des « - » dans la colonne FPS donc rien ne passe
As-tu pu obtenir une image en utilisant vlc et l’URL que tu utilises ? je pense que c’est important d’avoir au moins une idée d’ou se situe le problème.