Ring: Live streaming doesn't work when on WiFi network.

Created on 20 Aug 2020  路  17Comments  路  Source: dgreif/ring

Live Streaming Issue

Describe the live streaming issue

The video does not show when live streaming on the same wireless connection that my Ring Doorbell is on. Live streaming works fine when using mobile data.

Screenshots/Logs

[8/20/2020, 18:33:28] [Ring] Preparing Live Stream for Front Door
[8/20/2020, 18:33:29] [Ring] Stream Prepared for Front Door (0.414s)
[8/20/2020, 18:33:29] [Ring] Received stream data from Front Door (0.452s)
[8/20/2020, 18:33:29] [Ring] video stun complete
[8/20/2020, 18:33:29] [Ring] audio stun complete
[8/20/2020, 18:33:29] [Ring] Streaming active for Front Door
[8/20/2020, 18:33:29] [Ring] ffmpeg stderr From Ring: [udp @ 0x3c28580] attempted to set receive buffer to size 393216 but it only ended up set as 360448

[8/20/2020, 18:33:29] [Ring] ffmpeg stderr From Ring: [udp @ 0x3c286e0] attempted to set receive buffer to size 393216 but it only ended up set as 360448

[8/20/2020, 18:33:29] [Ring] ffmpeg stderr From Ring: Guessed Channel Layout for Input Stream #0.0 : mono
Input #0, sdp, from 'pipe:':
  Metadata:

[8/20/2020, 18:33:29] [Ring] ffmpeg stderr From Ring:     title           : Talk
  Duration: N/A, start: 0.000000, bitrate: 64 kb/s
    Stream #0:0: Audio: pcm_mulaw, 8000 Hz, mono, s16, 64 kb/s

[8/20/2020, 18:33:29] [Ring] ffmpeg stderr From Ring: Stream mapping:
  Stream #0:0 -> #0:0 (pcm_mulaw (native) -> aac (libfdk_aac))

[8/20/2020, 18:33:29] [Ring] ffmpeg stderr From Ring: Output #0, rtp, to 'srtp://192.168.1.XXX:52894?localrtcpport=33687&pkt_size=188':
  Metadata:
    title           : Talk

[8/20/2020, 18:33:29] [Ring] ffmpeg stderr From Ring:     encoder         : Lavf58.51.100
    Stream #0:0: Audio: aac (libfdk_aac) (ELD), 16000 Hz, mono, s16, 24 kb/s
    Metadata:
      encoder         : Lavc58.100.100 libfdk_aac

[8/20/2020, 18:33:29] [Ring] ffmpeg stderr HomeKit Return Audio: [udp @ 0x3088650] attempted to set receive buffer to size 393216 but it only ended up set as 360448
[udp @ 0x30887b0] attempted to set receive buffer to size 393216 but it only ended up set as 360448

[8/20/2020, 18:33:29] [Ring] Snapshot cached for Front Door (1.695s)
[8/20/2020, 18:33:29] [Ring] ffmpeg stderr From Ring: size=       2kB time=00:00:00.49 bitrate=  31.8kbits/s speed=0.974x    
[8/20/2020, 18:33:30] [Ring] ffmpeg stderr From Ring: size=       4kB time=00:00:01.03 bitrate=  28.2kbits/s speed=1.02x    
[8/20/2020, 18:33:30] [Ring] ffmpeg stderr From Ring: size=       5kB time=00:00:01.54 bitrate=  28.2kbits/s speed=1.01x    
[8/20/2020, 18:33:31] [Ring] requesting key frame
[8/20/2020, 18:33:31] [Ring] ffmpeg stderr From Ring: size=       7kB time=00:00:02.05 bitrate=  28.1kbits/s speed=1.01x    
[8/20/2020, 18:33:31] [Ring] ffmpeg stderr From Ring: size=       9kB time=00:00:02.57 bitrate=  28.1kbits/s speed=1.01x    
[8/20/2020, 18:33:32] [Ring] ffmpeg stderr From Ring: size=      10kB time=00:00:03.05 bitrate=  28.1kbits/s speed=0.998x    
[8/20/2020, 18:33:32] [Ring] ffmpeg stderr From Ring: size=      12kB time=00:00:03.59 bitrate=  28.1kbits/s speed=   1x    
[8/20/2020, 18:33:33] [Ring] ffmpeg stderr From Ring: size=      14kB time=00:00:04.10 bitrate=  28.1kbits/s speed=   1x    
[8/20/2020, 18:33:33] [Ring] ffmpeg stderr From Ring: size=      16kB time=00:00:04.61 bitrate=  28.1kbits/s speed=   1x    
[8/20/2020, 18:33:34] [Ring] ffmpeg stderr From Ring: size=      17kB time=00:00:05.09 bitrate=  27.8kbits/s speed=   1x    
[8/20/2020, 18:33:35] [Ring] ffmpeg stderr From Ring: size=      19kB time=00:00:05.63 bitrate=  27.8kbits/s speed=   1x    
[8/20/2020, 18:33:35] [Ring] ffmpeg stderr From Ring: size=      21kB time=00:00:06.11 bitrate=  27.8kbits/s speed=   1x    
[8/20/2020, 18:33:36] [Ring] ffmpeg stderr From Ring: size=      22kB time=00:00:06.53 bitrate=  27.8kbits/s speed=0.988x    
[8/20/2020, 18:33:36] [Ring] ffmpeg stderr From Ring: size=      24kB time=00:00:07.15 bitrate=  27.5kbits/s speed=   1x    
[8/20/2020, 18:33:37] [Ring] ffmpeg stderr From Ring: size=      26kB time=00:00:07.67 bitrate=  27.6kbits/s speed=   1x    
[8/20/2020, 18:33:37] [Ring] ffmpeg stderr From Ring: size=      27kB time=00:00:08.15 bitrate=  27.6kbits/s speed=0.999x    
[8/20/2020, 18:33:38] [Ring] ffmpeg stderr From Ring: size=      29kB time=00:00:08.69 bitrate=  27.4kbits/s speed=   1x    
[8/20/2020, 18:33:38] [Ring] Used cached snapshot for Front Door
[8/20/2020, 18:33:38] [Ring] ffmpeg stderr From Ring: size=      31kB time=00:00:09.17 bitrate=  27.4kbits/s speed=0.999x    
[8/20/2020, 18:33:39] [Ring] ffmpeg stderr From Ring: size=      32kB time=00:00:09.68 bitrate=  27.5kbits/s speed=   1x    
[8/20/2020, 18:33:39] [Ring] Stopped Live Stream for Front Door
[8/20/2020, 18:33:39] [Ring] ffmpeg stderr HomeKit Return Audio: Guessed Channel Layout for Input Stream #0.0 : mono
Input #0, sdp, from 'pipe:':
  Metadata:
    title           : Talk
  Duration: N/A, bitrate: N/A
    Stream #0:0: Audio: aac, 16000 Hz, mono, s16
Stream mapping:
  Stream #0:0 -> #0:0 (aac (libfdk_aac) -> pcm_mulaw (native))
Finishing stream 0:0 without any data written to it.

[8/20/2020, 18:33:39] [Ring] ffmpeg stderr HomeKit Return Audio: Output #0, rtp, to 'srtp://127.0.0.1:39221?pkt_size=188':
  Metadata:
    title           : Talk
    encoder         : 
[8/20/2020, 18:33:39] [Ring] ffmpeg stderr HomeKit Return Audio: Lavf58.51.100
    Stream #0:0: Audio: pcm_mulaw, 8000 Hz, mono, s16, 64 kb/s
    Metadata:
      encoder         : Lavc58.100.100 pcm_mulaw

[8/20/2020, 18:33:39] [Ring] ffmpeg stderr HomeKit Return Audio: size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x    
video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Output file is empty, nothing was encoded 
[8/20/2020, 18:33:39] [Ring] ffmpeg stderr HomeKit Return Audio: (check -ss / -t / -frames parameters if used)

[8/20/2020, 18:33:39] [Ring] ffmpeg stderr HomeKit Return Audio: Exiting normally, received signal 15.

[8/20/2020, 18:33:39] [Ring] ffmpeg HomeKit Return Audio exited with code 255
[8/20/2020, 18:33:49] [Ring] ffmpeg stderr From Ring: pipe:: Connection timed out

[8/20/2020, 18:33:49] [Ring] ffmpeg stderr From Ring: size=      33kB time=00:00:09.71 bitrate=  27.5kbits/s speed=0.493x    
video:0kB audio:28kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 16.873796%

[8/20/2020, 18:33:49] [Ring] ffmpeg stderr From Ring: Exiting normally, received signal 15.

[8/20/2020, 18:33:49] [Ring] ffmpeg From Ring exited with code 255

Recommended solution

Please describe what you think is causing this issue, and how you recommend it be fixed

Environment

  • Ring Camera: Ring Doorbell Pro
  • OS: Rasbian
  • Node.js: 12.18.3
  • NPM: 6.14.8
  • homebridge-ring (if applicable): 9.8.1
  • homebridge (if applicable): 1.1.2
  • hoobs (if applicable): N/A

Network Environment

Ring Video Doorbell connected via WiFi, Homebridge is setup via a Raspberry Pi 3B which is connected via Ethernet. Both on the same LAN.

All 17 comments

Thats weird... for me its the other way around. I can't access the stream from mobile network, but it works directly from wifi in my home network?

This has shown up in several GitHub issues before. See #352 and #91 for cases on both sides. I think every time this has come up, it has been resolved by rebooting all of the different network pieces involved. Modem, router, home hub, iPhone. Give that a try and see how it goes.

FWIW the 9.8.1 update corrected my no live stream on WiFi/same network problem.

This has shown up in several GitHub issues before. See #352 and #91 for cases on both sides. I think every time this has come up, it has been resolved by rebooting all of the different network pieces involved. Modem, router, home hub, iPhone. Give that a try and see how it goes.

Unfortunately this didn鈥檛 solve my problem, the video still freezes for me. I had also tried compiling my own version of FFMPEG and pointing the plugin to it with no luck.

@sandeepb1 can you try downgrading to version 9.6.0 and see if that works? I changed the way that the plugin determines your local ip after that version, which may be causing your issues.

anyone having this issue, let me know if 9.6.0 works, or if you still have issues. I _think_ I know what's causing this, but it's we'll have to wait for an update to the main homebridge library for the fix. I'll post back here when I have more info, but you can use 9.6.0 for now if it works.

Unfortunately that didn't solve it, ran the following and then restarted homebridge

sudo npm r -g --unsafe-perm homebridge-ring
sudo npm i -g --unsafe-perm [email protected]

The video still doesn't show, with the following being logged

[8/22/2020, 17:20:01] [Ring] No snapshot cached for Front Door
[8/22/2020, 17:20:01] [Ring] Loading new snapshot into cache for Front Door
[8/22/2020, 17:20:02] [Ring] Preparing Live Stream for Front Door
[8/22/2020, 17:20:03] [Ring] Waiting for stream data from Front Door (0.821s)
[8/22/2020, 17:20:03] [Ring] ffmpeg stderr From Ring: Guessed Channel Layout for Input Stream #0.0 : mono
Input #0, sdp, from 'pipe:':
  Metadata:
    title           : Talk
  Duration: N/A, start: 0.000000, bitrate: 64 kb/s
    Stream #0:0: Audio: pcm_mulaw, 8000 Hz, mono, s16, 64 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (pcm_mulaw (native) -> aac (libfdk_aac))

[8/22/2020, 17:20:03] [Ring] ffmpeg stderr From Ring: Output #0, rtp, to 'srtp://192.168.1.XXX:59856?localrtcpport=43873&pkt_size=188':
  Metadata:
    title           : Talk
    encoder         : Lavf58.29.100

[8/22/2020, 17:20:03] [Ring] ffmpeg stderr From Ring:     Stream #0:0: Audio: aac (libfdk_aac) (ELD), 16000 Hz, mono, s16, 24 kb/s
    Metadata:
      encoder         : Lavc58.54.100 libfdk_aac

[8/22/2020, 17:20:03] [Ring] Received stream data from Front Door (1.129s)
[8/22/2020, 17:20:03] [Ring] Snapshot cached for Front Door (2.231s)
[8/22/2020, 17:20:03] [Ring] Streaming active for Front Door
[8/22/2020, 17:20:03] [Ring] ffmpeg stderr From Ring: size=       2kB time=00:00:00.57 bitrate=  24.7kbits/s speed=1.13x    
[8/22/2020, 17:20:04] [Ring] ffmpeg stderr From Ring: size=       4kB time=00:00:01.11 bitrate=  26.3kbits/s speed=1.08x    
[8/22/2020, 17:20:04] [Ring] ffmpeg stderr From Ring: size=       5kB time=00:00:01.59 bitrate=  26.8kbits/s speed=1.04x    
[8/22/2020, 17:20:05] [Ring] ffmpeg stderr From Ring: size=       7kB time=00:00:02.13 bitrate=  27.1kbits/s speed=1.04x    
[8/22/2020, 17:20:05] [Ring] ffmpeg stderr From Ring: size=       8kB time=00:00:02.63 bitrate=  26.4kbits/s speed=1.02x    
[8/22/2020, 17:20:06] [Ring] ffmpeg stderr From Ring: size=      10kB time=00:00:03.17 bitrate=  26.7kbits/s speed=1.03x    
[8/22/2020, 17:20:06] [Ring] ffmpeg stderr From Ring: size=      12kB time=00:00:03.65 bitrate=  26.9kbits/s speed=1.02x    
[8/22/2020, 17:20:07] [Ring] ffmpeg stderr From Ring: size=      14kB time=00:00:04.17 bitrate=  27.0kbits/s speed=1.02x    
[8/22/2020, 17:20:07] [Ring] ffmpeg stderr From Ring: size=      15kB time=00:00:04.69 bitrate=  26.6kbits/s speed=1.02x    
[8/22/2020, 17:20:08] [Ring] ffmpeg stderr From Ring: size=      17kB time=00:00:05.21 bitrate=  26.8kbits/s speed=1.02x    
[8/22/2020, 17:20:08] [Ring] ffmpeg stderr From Ring: size=      19kB time=00:00:05.69 bitrate=  26.9kbits/s speed=1.01x    
[8/22/2020, 17:20:09] [Ring] ffmpeg stderr From Ring: size=      21kB time=00:00:06.23 bitrate=  27.0kbits/s speed=1.01x    
[8/22/2020, 17:20:09] [Ring] ffmpeg stderr From Ring: size=      22kB time=00:00:06.73 bitrate=  26.8kbits/s speed=1.01x    
[8/22/2020, 17:20:10] [Ring] ffmpeg stderr From Ring: size=      24kB time=00:00:07.27 bitrate=  26.8kbits/s speed=1.01x    
[8/22/2020, 17:20:10] [Ring] ffmpeg stderr From Ring: size=      25kB time=00:00:07.75 bitrate=  26.9kbits/s speed=1.01x    
[8/22/2020, 17:20:11] [Ring] ffmpeg stderr From Ring: size=      27kB time=00:00:08.29 bitrate=  27.0kbits/s speed=1.01x    
[8/22/2020, 17:20:11] [Ring] ffmpeg stderr From Ring: size=      29kB time=00:00:08.77 bitrate=  27.0kbits/s speed=1.01x    
[8/22/2020, 17:20:12] [Ring] ffmpeg stderr From Ring: size=      31kB time=00:00:09.29 bitrate=  27.1kbits/s speed=1.01x    
[8/22/2020, 17:20:12] [Ring] ffmpeg stderr From Ring: size=      33kB time=00:00:09.83 bitrate=  27.2kbits/s speed=1.01x    
[8/22/2020, 17:20:13] [Ring] ffmpeg stderr HomeKit Return Audio: Guessed Channel Layout for Input Stream #0.0 : mono
Input #0, sdp, from 'pipe:':

[8/22/2020, 17:20:13] [Ring] ffmpeg stderr HomeKit Return Audio:   Metadata:
    title           : Talk
  Duration: N/A, bitrate: N/A
    Stream #0:0: Audio: aac, 16000 Hz, mono, s16

[8/22/2020, 17:20:13] [Ring] ffmpeg stderr HomeKit Return Audio: Stream mapping:
  Stream #0:0 -> #0:0 (aac (libfdk_aac) -> pcm_mulaw (native))

[8/22/2020, 17:20:13] [Ring] ffmpeg  exited with code 0
[8/22/2020, 17:20:13] [Ring] ffmpeg stderr From Ring: size=      34kB time=00:00:10.33 bitrate=  27.0kbits/s speed=1.01x    
[8/22/2020, 17:20:13] [Ring] ffmpeg stderr From Ring: size=      36kB time=00:00:10.87 bitrate=  27.0kbits/s speed=1.01x    
[8/22/2020, 17:20:13] [Ring] Used cached snapshot for Front Door
[8/22/2020, 17:20:13] [Ring] Loading new snapshot into cache for Front Door
[8/22/2020, 17:20:14] [Ring] ffmpeg stderr From Ring: size=      38kB time=00:00:11.38 bitrate=  27.1kbits/s speed=1.01x    
[8/22/2020, 17:20:14] [Ring] Stopped Live Stream for Front Door
[8/22/2020, 17:20:15] [Ring] Snapshot cached for Front Door (1.668s)
[8/22/2020, 17:20:23] [Ring] ffmpeg stderr HomeKit Return Audio: pipe:: Connection timed out

[8/22/2020, 17:20:23] [Ring] ffmpeg stderr HomeKit Return Audio: Finishing stream 0:0 without any data written to it.

[8/22/2020, 17:20:23] [Ring] ffmpeg stderr HomeKit Return Audio: Output #0, rtp, to 'srtp://127.0.0.1:39643?pkt_size=188':
  Metadata:
    title           : Talk
    encoder         : Lavf58.29.100

[8/22/2020, 17:20:23] [Ring] ffmpeg stderr HomeKit Return Audio:     Stream #0:0: Audio: pcm_mulaw, 8000 Hz, mono, s16, 64 kb/s
    Metadata:
      encoder         : Lavc58.54.100 pcm_mulaw

[8/22/2020, 17:20:23] [Ring] ffmpeg stderr HomeKit Return Audio: size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x    
video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used)

[8/22/2020, 17:20:23] [Ring] ffmpeg stderr HomeKit Return Audio: Exiting normally, received signal 15.

[8/22/2020, 17:20:23] [Ring] ffmpeg HomeKit Return Audio exited with code 255
[8/22/2020, 17:20:24] [Ring] ffmpeg stderr From Ring: pipe:: Connection timed out

[8/22/2020, 17:20:24] [Ring] ffmpeg stderr From Ring: size=      38kB time=00:00:11.48 bitrate=  27.1kbits/s speed=0.536x    
video:0kB audio:32kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 16.893110%

[8/22/2020, 17:20:24] [Ring] ffmpeg stderr From Ring: Exiting normally, received signal 15.

[8/22/2020, 17:20:24] [Ring] ffmpeg From Ring exited with code 255

Bummer. Those logs look perfectly normal, which indicates that it's probably an issue with the IP address code, which needs an update to homebridge. One thing you could try is using just the WiFi on you pi, instead of the ethernet port.

OK must be something to do with the RPi - I went ahead and installed Homebridge on my home server and everything works perfectly.

I guess it may be an issue with the RPi?

Yeah, the plugin has to tell HomeKit which up address the video stream will come from. Since you have both WiFi and Ethernet on the pi, the plugin may make the wrong choice. If you turn one of them off, it may work better. Working with the homebridge team to fix this at a lower level but no eta on when that will be done.

I鈥檓 having the same problem that began after updating; rolling back to 9.7.2 didn鈥檛 fix the issue which is odd as it was working perfectly fine before. Running homebridge on a docker in unraid. Tried to reinstall homebridge and the plugin from scratch, rebooted the network and devices but still can鈥檛 get video on wifi.

Try 9.6.0 @aveanun

Just wanted to add, video is working perfectly fine at home on wifi through the official ring app. Video works fine via homebridge on the home app when connected via LTE or external wifi network, just doesn鈥檛 work on my local wifi network.

@dgreif reinstalled 9.6.0 and it worked perfectly!

@sandeepb1 @aveanun @QDUNI there is a new version of homebridge that just got released, and it should resolve this issue without any changes to the homebridge-ring plugin. Could you all give LTE & wifi a try with the latest versions of homebridge (1.1.3) and homebridge-ring (9.9.0) installed?

@dgreif

Just updated homebridge and homebridge-ring to the latest versions, test on my MacBook in the home app and everything is working. Will try on my other devices soon. So far so good.

@dgreif can confirm the latest Homebridge update fixes the issue.

Thanks for pointing it out.

Was this page helpful?
0 / 5 - 0 ratings