moritzmhmk / homebridge-camera-rpi

raspberry pi camera plugin for homebridge
MIT License
159 stars 29 forks source link

No live stream on Home.app on Mac #47

Open paulz opened 5 years ago

paulz commented 5 years ago

While I can see the live stream on iPhone connected to WiFi Home app on mac connected via Ethernet shows still image and spinner that never stops.

Logs show that there are frames sent and encoded by ffmpeg:

Jan 16 20:21:54 cameraberry node[873]: ffmpeg frame= 1233 fps= 31 q=-1.0 size=    1524kB time=00:00:41.01 bitrate= 304.4kbits/s speed=1.02x
Jan 16 20:21:55 cameraberry node[873]: ffmpeg frame= 1248 fps= 31 q=-1.0 size=    1541kB time=00:00:41.51 bitrate= 304.0kbits/s speed=1.02x
Jan 16 20:21:55 cameraberry node[873]: ffmpeg frame= 1263 fps= 31 q=-1.0 size=    1589kB time=00:00:42.01 bitrate= 309.8kbits/s speed=1.02x
Jan 16 20:21:56 cameraberry node[873]: ffmpeg frame= 1278 fps= 31 q=-1.0 size=    1593kB time=00:00:42.51 bitrate= 307.0kbits/s speed=1.02x
Jan 16 20:21:56 cameraberry node[873]: ffmpeg frame= 1294 fps= 31 q=-1.0 size=    1600kB time=00:00:43.04 bitrate= 304.4kbits/s speed=1.02x
Jan 16 20:21:57 cameraberry node[873]: ffmpeg frame= 1309 fps= 31 q=-1.0 size=    1616kB time=00:00:43.54 bitrate= 304.1kbits/s speed=1.02x
Jan 16 20:21:57 cameraberry node[873]: ffmpeg frame= 1324 fps= 31 q=-1.0 size=    1663kB time=00:00:44.04 bitrate= 309.3kbits/s speed=1.02x
Jan 16 20:21:58 cameraberry node[873]: ffmpeg frame= 1339 fps= 31 q=-1.0 size=    1667kB time=00:00:44.54 bitrate= 306.6kbits/s speed=1.02x
Jan 16 20:21:58 cameraberry node[873]: ffmpeg frame= 1354 fps= 31 q=-1.0 size=    1674kB time=00:00:45.04 bitrate= 304.4kbits/s speed=1.01x
Jan 16 20:21:59 cameraberry node[873]: ffmpeg frame= 1369 fps= 30 q=-1.0 size=    1690kB time=00:00:45.54 bitrate= 304.0kbits/s speed=1.01x
Jan 16 20:21:59 cameraberry node[873]: ffmpeg frame= 1384 fps= 30 q=-1.0 size=    1737kB time=00:00:46.04 bitrate= 309.0kbits/s speed=1.01x
Jan 16 20:22:00 cameraberry node[873]: ffmpeg frame= 1400 fps= 31 q=-1.0 size=    1742kB time=00:00:46.57 bitrate= 306.3kbits/s speed=1.01x
Jan 16 20:22:00 cameraberry node[873]: ffmpeg frame= 1415 fps= 30 q=-1.0 size=    1749kB time=00:00:47.07 bitrate= 304.3kbits/s speed=1.01x
Jan 16 20:22:01 cameraberry node[873]: ffmpeg frame= 1430 fps= 30 q=-1.0 size=    1765kB time=00:00:47.57 bitrate= 304.0kbits/s speed=1.01x
Jan 16 20:22:01 cameraberry node[873]: ffmpeg frame= 1445 fps= 30 q=-1.0 size=    1812kB time=00:00:48.07 bitrate= 308.7kbits/s speed=1.01x

Home app on Mac:

screen shot 2019-01-16 at 12 22 53 pm

iPhone over WiFi: img_5692

paulz commented 5 years ago

Attaching logs from the plugin for both cases:

  1. When iPhone successfully streams video CameraLogIPhoneSucceeds.txt
  2. When Home app fails to show the live stream CameraLogHomeAppFails.txt

It seems like Home app establishes the connection twice.

natcl commented 5 years ago

I have a similar behaviour, sometimes I can get the livestream but most of the time it spins forever.