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.

Do not maintain a connection to the camera if not required

See original GitHub issue

Describe what you are trying to accomplish and why in non technical terms

I have a battery-powered camera in which I want to add to Frigate, but I don’t want Frigate to record or detect objects on it all the time. I will enable Frigate’s recording dynamically through external events, like by an external motion sensor in Home Assistant.

When there’s no one connected in the camera, the camera enters in sleep mode to save battery.

Describe the solution you’d like Ideally Frigate should NOT maintain a connection with the camera for a configuration like below:

video_porteiro:
    ffmpeg:
      inputs:
        - path: rtsp://192.168.1.10:8554/camera.video_porteiro
          roles:
            - detect
            - record
            - rtmp
      output_args:
        record: -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v copy -c:a aac
        rtmp: -c:v copy -c:a aac -f flv
    record:
      enabled: false
    rtmp:
      enabled: true
    detect:
      enabled: false
      width: 640
      height: 360
    live:
      height: 360

I have rtmp.enabled: true, but I have no client streaming from it (and preload is not activated in Home Assistant configuration). Frigate should understand that a connection with the camera is not required in this situation.

Describe alternatives you’ve considered I can’t think of any.

Additional context I’m using go2rtc to capture my Tuya battery-powered video doorbell through this:

And I’m reusing the go2rtc stream in Frigate. In the go2rtc info panel I can see that it’s Frigate who is connected to the stream.

Issue Analytics

  • State:open
  • Created 10 months ago
  • Comments:15 (8 by maintainers)

github_iconTop GitHub Comments

3reactions
NickM-27commented, Nov 8, 2022

Given that, I think there’s enough distinction to warrant separate requests though they may be addressed in the same solution.

0reactions
NickM-27commented, Nov 8, 2022

Well… there is. Frigate can supply a NO VIDEO or Camera is disabled picture as its input.

Frigate has no control or knowledge of the consumer request for restream from go2rtc.

Well, Frigate can also delete the stream from go2rtc as well (I suppose there’s a API for it, since there’s an API to add).

Yeah that’s true

Read more comments on GitHub >

github_iconTop Results From Across the Web

Do IP Security Cameras Really Require an Internet Connection?
No. Despite the name “Internet Protocol,” IP security cameras do not require an outside connection to the Internet. All that's required is a...
Read more >
Do Wireless Security Cameras Need an Internet Connection?
Not all security cameras require the internet, but without it, you miss out on remote control, notifications, and other features of smart ...
Read more >
If FaceTime isn't working on your Mac - Apple Support
Quit FaceTime, then open FaceTime again. Restart your Mac. Make sure that FaceTime isn't open, then see if your camera works in another...
Read more >
Computer doesn't recognize the USB connection from a camera
If you connect your camera to a computer using a USB cable, the USB MODE or Mass Storage connection message should appear on...
Read more >
Best Security Cameras without WiFi or Internet Solutions [NEW]
2. Save the footage to an SD card when security camera have no internet ... If you are looking for a security camera...
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