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

cameras unresponsive, but log looks normal to me #985

Closed
1 task done
rfiorentino1 opened this issue Jul 9, 2022 · 12 comments
Closed
1 task done

cameras unresponsive, but log looks normal to me #985

rfiorentino1 opened this issue Jul 9, 2022 · 12 comments
Labels
live-streaming Problems with live streams

Comments

@rfiorentino1
Copy link

rfiorentino1 commented Jul 9, 2022

Streaming Issue

Hi! I really hate creating yet ANOTHER streaming issue for you to deal with, but I'm mainly trying to narrow down the possibilities and explore every avenue of why this isn't working, and wanted to see if any other users are having similar issues. I'd consider myself pretty techie, but this one has me stumped. I cannot stream from any Homebridge cameras from within the Home app, (I have nest and ring), all of them say no response. Every once in a while I get a video feed, but can't hear audio or pass audio through to the camera. So far I've tried:

  1. rebooting router, home hubs, home bridge etc, and all of the troubleshooting steps listed.
    1. Reinstalling ffmpeg
    1. combing through both home bridge debug logs and plugin debug logs, everything looks normal to me, no errors, except for a "operation timed out" from ffmpeg, see below.
    1. node is latest LTS version, everything else is up to date
      I've spent about 4 hours now racking my brain/network etc trying to figure this out with no luck; long story short I can't use discord, so figured the next best thing would be posting here. The plugin also seems to be communicating with Ring itself correctly, because live views are created when I try to stream from the home app.
      I've also noticed quite a bit of "unable to reach ring server..." messages in the logs, but I looked that up as well and doesn't seem to effect the operation of the plugin. All other functions, alarm, etc are working perfectly. The last version of this plugin that streamed successfully for me was 11.0, but now that has stopped working as well. Router/hardware etc hasn't changed, so I'm a little baffled. The only thing I haven't tried yet is moving/isolating the Ring plugin to it's own child bridge, as I've seen a few prior closed issues where other plugins were effecting it, but I'm hesitant to do that because I'd have to redo all automations, which are about 30.
      Here are the relevant logs; the first log on the 8th was the only time that video appeared without a no response in HomeKit, but no audio either direction. Thank you to you and the rest of the community for any help/suggestions/guidance, it's greatly appreciated.

ring log 07-4.log
ring log 07-8.log

Proposed Solution

What does "operation timed out" refer to? Could this be cause for a stream to not load/be unresponsive in the home app? ffmpeg issue (not related to plugin)?

Environment

Homebridge

What operating system are you on?

Mac

Relevant log output

see files above

Honesty Time

  • I swear this is worth your time!
@rfiorentino1 rfiorentino1 added the live-streaming Problems with live streams label Jul 9, 2022
@dgreif
Copy link
Owner

dgreif commented Jul 10, 2022

Operation timed out is normal during the end of a streaming session, so nothing to look into there. The logs look like a normal working streaming session. Given the Ring cameras and Nest cameras aren't working, my guess is that your issue is network related or HomeKit related. Are you running a beta version of iOS or tvOS? Do you have a VPN turned on? Is your phone on the same network as your homebridge server, with no firewall blocking access between them? Does it work on LTE vs wifi?

@rfiorentino1
Copy link
Author

I'm currently running beta of iOS 16, but this was happening long before that. It doesn't work on cellular either, and no vpns anywhere. There's no firewall that I know of between the phone and home bridge server, I just need to figure out how to confirm that. Even if I try to pull up the feed on the homebridge server itself, through the mac home app it also doesn't work, so I would think that would also rule out the firewall issue. That's why I'm confused, because everything seems normal… Lol. I'll close this issue for now, because I don't think it's anything related directly to this plug-in, but feel free to keep the conversation going if anyone has any thoughts/suggestions

@rfiorentino1
Copy link
Author

As noted in the garbled audio thread, the last working version for me of this plug-in is 9.24.0. I just updated to 11.1 and still no luck. I have managed to fix the nest camera issue, which seemed to be something with codecs, so now Ring is the only camera plug-in that is still giving me issues when not on 9.24.0. Any suggestions?

@rfiorentino1 rfiorentino1 reopened this Aug 27, 2022
@dgreif
Copy link
Owner

dgreif commented Aug 27, 2022

This looks like many of the other streaming issues unfortunately. I'll continue to optimize streaming when I'm able, but I can't do anything specific for this issue.

@dgreif dgreif closed this as not planned Won't fix, can't repro, duplicate, stale Aug 27, 2022
@rfiorentino1
Copy link
Author

I've never had any streaming issues with this plug-in at all, up until versions 10 and above. So not sure what changed between then and now but clearly something is going on there. I'll try to keep digging into things as well but I'm limited as to what I can do because I don't know enough about the plug-in's development And how the stream is created etc to really troubleshoot on my own

@dgreif
Copy link
Owner

dgreif commented Aug 27, 2022

v10/v11 was a complete re-write of the streaming setup for the plugin. It added a lot of new features, like the ability to stream from cameras using Ring Edge, but it also caused new issues for a small subset of users. I'm not sure streaming is something I can ever get "perfect". If v9 worked well for you, I suggest you revert back to that version and occasionally try the latest version to see if things are working.

@rfiorentino1
Copy link
Author

Is there a way that I can play with/modify the codec that the plug-in is using to stream? I think that may be the main issue here, as that's what I had to change with the nest plug-in. I am now using h264_video toolbox for nest

@dgreif
Copy link
Owner

dgreif commented Aug 27, 2022

The video portion of the Ring stream is actually not transcoded by the plugin like the Nest stream is. Luckily Ring sends the video in a format that is consumable directly by HomeKit. Audio is transcoded, but that shouldn't prevent streaming from working. Do you mind posting the logs from an attempted stream?

@dgreif
Copy link
Owner

dgreif commented Aug 27, 2022

Just saw you have them in your original description. Those appear to show the stream working just fine. One thing you can try is setting the new unbridgeCameras option that was added in 11.1.0. You will need to re-add your cameras to HomeKit individually, but it will act as a bit of a reset on the settings on the HomeKit side and might fix things for you

@rfiorentino1
Copy link
Author

Awesome, I'll try that, thanks so much. That's the weird thing, the logs look normal but HomeKit definitely won't stream and says camera unresponsive. I'll play around a little and report back.

@rfiorentino1
Copy link
Author

Just updated to 11.2.1, and unabridged the camera/doorbell and re-added it. Still no luck, unresponsive. Is there a way for me to temporarily disable the audio transcoding/only send video to HomeKit, to see if that's the issue? Driving me crazy because I feel like it's so close but so far lol

@rfiorentino1
Copy link
Author

Interestingly, I ran this plug-in on a new instance of homebridge, on a different network, and from a raspberry pie this time. Same ring account and same camera, and it worked. Audio with Still garbled and pretty incomprehensible coming from my phone to the doorbell, but at least video streaming worked. So now I'm left to think it's some issue with my Netwerk, or with the encoding/transcoding going on With my Mac and this plug-in. Any thoughts/suggestions? Wondering where I can look for logs to try to troubleshoot the exact issue and then go from there. I really wish HomeKit itself provided a log because I feel like that would give us some fairly useful information. Looked at plugging logs yesterday again and all seems well on the home bridge side

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
live-streaming Problems with live streams
Projects
None yet
Development

No branches or pull requests

2 participants