question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Support]: Ring Cameras

See original GitHub issue

Describe the problem you are having

I cannot figure out how to get ring cameras integrated into frigate. There is a ring-mqtt application that I can get live view from, but it has a 10 minute limit so it can’t record 24/7. It also has a snapshot http image that updates every 10 seconds which should be more than enough for frigate.

Link to addon: https://github.com/tsightler/ring-mqtt

Version

0.9.4-26ae608

Frigate config file

Frigate-Front-Door:
    ffmpeg:
      inputs:
        - path: https://ha.xxxxxxxxxxx.com/api/camera_proxy_stream/camera.front_door_camera_snapshot?token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
          roles:
            - clips
            - detect
    detect:
      width: 640
      height: 360
      fps: 1

Relevant log output

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[2021-11-10 12:11:43] frigate.app                    INFO    : Starting Frigate (0.9.4-26ae608)
[2021-11-10 12:11:43] frigate.app                    INFO    : Creating directory: /tmp/cache
Starting migrations
[2021-11-10 12:11:43] peewee_migrate                 INFO    : Starting migrations
There is nothing to migrate
[2021-11-10 12:11:43] peewee_migrate                 INFO    : There is nothing to migrate
[2021-11-10 12:11:44] frigate.mqtt                   INFO    : MQTT connected
[2021-11-10 12:11:44] detector.cpu1                  INFO    : Starting detection process: 218
[2021-11-10 12:11:44] frigate.edgetpu                WARNING : CPU detectors are not recommended and should only be used for testing or for trial purposes.
[2021-11-10 12:11:44] detector.cpu2                  INFO    : Starting detection process: 220
[2021-11-10 12:11:44] frigate.edgetpu                WARNING : CPU detectors are not recommended and should only be used for testing or for trial purposes.
[2021-11-10 12:11:44] frigate.app                    INFO    : Output process started: 225
[2021-11-10 12:11:44] detector.cpu3                  INFO    : Starting detection process: 222
[2021-11-10 12:11:44] detector.cpu4                  INFO    : Starting detection process: 223
[2021-11-10 12:11:44] frigate.edgetpu                WARNING : CPU detectors are not recommended and should only be used for testing or for trial purposes.
[2021-11-10 12:11:44] ws4py                          INFO    : Using epoll
[2021-11-10 12:11:44] frigate.app                    INFO    : Camera processor started for Frigate-Garage: 230
[2021-11-10 12:11:44] frigate.edgetpu                WARNING : CPU detectors are not recommended and should only be used for testing or for trial purposes.
[2021-11-10 12:11:44] frigate.app                    INFO    : Camera processor started for Frigate-Front-Door: 232
[2021-11-10 12:11:44] frigate.app                    INFO    : Capture process started for Frigate-Garage: 233
[2021-11-10 12:11:44] frigate.app                    INFO    : Capture process started for Frigate-Front-Door: 235
[2021-11-10 12:11:44] ws4py                          INFO    : Using epoll
[2021-11-10 12:11:44] frigate.video                  INFO    : Frigate-Front-Door: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
[2021-11-10 12:11:44] frigate.video                  INFO    : Frigate-Front-Door: ffmpeg process is not running. exiting capture thread...
[2021-11-10 12:11:55] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:49164]
[2021-11-10 12:12:04] watchdog.Frigate-Front-Door    ERROR   : FFMPEG process crashed unexpectedly for Frigate-Front-Door.
[2021-11-10 12:12:04] watchdog.Frigate-Front-Door    ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2021-11-10 12:12:04] watchdog.Frigate-Front-Door    ERROR   : You may have invalid args defined for this camera.
[2021-11-10 12:12:04] ffmpeg.Frigate-Front-Door.detect ERROR   : Option stimeout not found.
[2021-11-10 12:12:04] frigate.video                  INFO    : Frigate-Front-Door: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
[2021-11-10 12:12:04] frigate.video                  INFO    : Frigate-Front-Door: ffmpeg process is not running. exiting capture thread...

FFprobe output from your camera

Not sure I can do that with these cameras

Frigate stats

Not sure how to get this either

Operating system

HassOS

Install method

HassOS Addon

Coral version

CPU (no coral)

Network connection

Wired

Camera make and model

Ring Doorbell Pro, Ring Floodlight Wired

Any other information that may be helpful

No response

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
NickM-27commented, May 27, 2022

Could you (does frigate have support for?) use the built-in ring motion detection to start a video feed, then feed this feed into frigate then - i.e. does frigate support streams that are only sometimes online?

No it doesn’t. Frigate uses motion detection to decide where to run object detection. This combined with the latency of steam start -> ffmpeg active would cause delay that could miss parts of all events and maybe even quick events entirely.

Frigate is really designed and would be a much better experience to get a doorbell that supports 24/7 rtsp stream

1reaction
ozettcommented, Nov 10, 2021

you could try to find a way to grab jpeg/snapshot in a loop and feed/use that as a (rtsp) stream in frigate. ffmpeg -re -stream_loop -1 -i `... maybe here someone trying similar, as a startpoint: https://stackoverflow.com/a/63031869

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ring Help
Learn about Ring Alarm Pro, Power Packs, and the Jobsite Security Case. Plus, find support for Ring Edge local video storage, 24/7 Backup...
Read more >
Contact Us - Ring Help
Neighbor Support See Helpful DIY Troubleshooting Hours: 5AM - 9PM MST (US) Hours: 24/7 (US) Hours: 24/7 ...
Read more >
Contact Us – Ring Help
How can we help? Ring Help · Shop Support · Customer Care ... Contact Us · Ring Video Doorbell and Security Camera Frequently...
Read more >
Customer Care - Ring Help
Neighbor Support See Helpful DIY Troubleshooting Hours: 5AM - 9PM MST (US) Hours: 24/7 (US) Hours: 24/7 Call Us To call us, find...
Read more >
App Support - Ring Help
If your Ring doorbell or security camera is not working properly, you can try rebooting the device in the Ring app. You will...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found