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

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.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 17 (7 by maintainers)

Most upvoted comments

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

Thanks for pointing it out.

@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.

@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?

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