Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DoorBird devices stop responding to live stream requests after a few days #757

Open
michaelyork opened this issue Apr 25, 2023 · 17 comments

Comments

@michaelyork
Copy link

michaelyork commented Apr 25, 2023

I've observed this behavior across 3 different locations/installations and 5 separate DoorBird units. It seems that after some point (without anything odd in the plugin logs), the live camera stream stops working. Live streams/HKSV all stop operating at that point.

Restarting the plugin instantly resolves the issue. Nothing shows in "Pending Requests" when the plugin is in this bad state.

Let me know what else I can share to help debug!

cc @nanosonde, original plugin developer.

@nanosonde
Copy link
Contributor

nanosonde commented Apr 26, 2023

@michaelyork
I can confirm this behavior.
I also do not see any issues in the logs.

Could you please try it again with disabled prebuffering?
This way a new connection is always created when requested.

I assume that the long running prebuffering ffmpeg has an issue when the incoming audio is not available from the Doorbird for some reason. Maybe we have to implement our own HTTP audio receiver here and then make this available to ffmpeg to have more control.
However, it might be enough to add some timeout options to ffmpeg to make sure that it terminates as soon as possible if there is an issue with the HTTP audio stream.

@michaelyork
Copy link
Author

Will test now, thanks @nanosonde!

I will say, the instant load times for prebuffered streams are really fantastic. Would love to see a solution that can continue to support them. :)

@nanosonde
Copy link
Contributor

I used to use the following ffmpeg options in another project where I had an MJPEG stresm via the ffmpeg http module:

ffmpeg -timeout 2000 -reconnect 1 -reconnect_at_eof 1 -reconnect_streamed 1 -reconnect_on_network_error 1 -reconnect_on_http_error 1 -reconnect_delay_max 60

@koush
Do you support these in the ffmpeg version in scrypted? I could try to set these options for the audio http stream.

@koush
Copy link
Owner

koush commented Apr 26, 2023

not sure, check in CLI in scrypted terminal. using ffmpeg prebuilt from a npm repo, which I think packages standard ffmepeg static libs.

@Vicelow
Copy link

Vicelow commented May 5, 2023

Hi there, I just installed the the plugin for my Doorbird D1100E and am absolutely loving it - big thumbs up! I haven't come across the above described issue yet (hopefully won't) but just wanted to suggest to also include the doorbird relay as a subdevice in HK (similarly as the Homebridge plugin offers). Other than that, HKSV, two-way audio and speed is just amazing, many thanks for the great work!

@rabh
Copy link

rabh commented Jun 20, 2023

Absolutely loving the plugin, I've been waiting years for this.

I've also just encountered the issue, which gets resolved after a restart of Scrypted. Happy to help with logs or any debug if its needed. I've not tried disabling pre-buffering yet.

@t1ll
Copy link

t1ll commented Aug 21, 2023

can also confirm this behaviour

@djfanatix
Copy link

I also have this issue, I will now try with prebuffering off

@t1ll
Copy link

t1ll commented Oct 2, 2023

@djfanatix any success with prebuffering turned off?

@marbon87
Copy link

I have the same problem and need to restart the Doorbird plugin every 4-6 hours. Has anyone solved this problem?

@digitalentropy
Copy link

I'm also observing the problem and have not been able to find a solution besides restarting the plugin manually.

@marbon87
Copy link

My workaround is to restart scrypted automatically if the snapshot-Uri for the DoorBird camera does not respond within 2s seconds. Would be cool if i could restart the DoorBird plugin only.
or if the plugin works stable ☺️

@Vicelow
Copy link

Vicelow commented May 26, 2024

Could you share how you configured this automatic restart? Thanks!

@marbon87
Copy link

You need to enable the webhook plugin for the doorbird camera.

I am using a home assistant sensor to call the api with this sensor template:

- platform: rest
  name: Camera Door Snapshot
  method: GET
  resource: "http://192.168.5.2:11080/endpoint/@scrypted/webhook/public/33/xxxxxxxxxxxxxxx/takePicture"
  timeout: 3  
  scan_interval: 60
  value_template: true

and this is my Home Assistant automation:

alias: Restart Scrypted
description: ""
trigger:
  - platform: state
    entity_id:
      - sensor.camera_doorbird_snapshot
    to: unavailable
condition: []
action:
  - service: hassio.addon_restart
    data:
      addon: 09e60fb6_scrypted
mode: single

@digitalentropy
Copy link

What's the advantage of using the Doorbird plugin over ONVIF? I just tried switching to ONVIF a few days ago and have not had any of the hanging issues that appear to be present with the Doorbird plugin.

@marbon87
Copy link

ONVIF doesn‘t support two-way audio, does it?

@nanosonde
Copy link
Contributor

To my knowledge the current doorbird firmware does not support ONVIF Profile-T type video doorbells as it does not support RTSP audio backchannel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants