homebridge-camera-ffmpeg-ufv icon indicating copy to clipboard operation
homebridge-camera-ffmpeg-ufv copied to clipboard

Only getting sensors no camera feed

Open justinths opened this issue 6 years ago • 19 comments

Hi,

On camera-ffmpeg-ufv v0.6.0 i use to get the camera feed and no motion sensors. I moved to a docker version of homebridge, included the ffmpeg package and upgraded the package to 0.8.0 and now i only get sensor accessories no camera feed.

See log below. Great plugin btw, really excited about motion sensor capability.

[2018-7-7 19:29:58] [UniFi Video (ffmpeg)] Initializing camera-ffmpeg-ufv platform... ... Load homebridge-camera-ffmpeg-ufv.camera-ffmpeg-ufv ... [2018-7-7 19:29:58] [UniFi Video (ffmpeg)] Published 2 camera accessories. [2018-7-7 19:29:58] [UniFi Video (ffmpeg)] Initializing platform accessory 'X1 Motion Sensor'... [2018-7-7 19:29:58] [UniFi Video (ffmpeg)] Initializing platform accessory 'X2 Motion Sensor'...

Oh, I might add that i am still running the other homebridge installation on the same machine, not in docker though, might that have something to do with it?

justinths avatar Jul 07 '18 17:07 justinths

Hi sorry figured it out, it seems that two homes on your phone cannot have the same accessories ... thanks

I just want to clarify, that i had two homebridges running while i was switching over to new version. So on my phone i added both homebridges as separate homes. I could not see the cam feed in the new one, until i removed it from the old one, then it was as described in the notes, or @ryanschmidt below.

justinths avatar Jul 07 '18 17:07 justinths

After update to 0.8.0, got the same thing but unfortunately no two homes, tried to revert on my previous backup but home do not show me any accessories from ufv just getting sensors

QcVictor avatar Jul 10 '18 14:07 QcVictor

I just added this plugin to my homebridge setup and I'm experiencing the same thing. The motion sensors work as expected but no sign of cameras.

  • Ubuntu 18.04
  • Installed ffmpeg
  • Installed necessary plugins
  • Motion sensors work
  • Enabled RTSP feeds

EDIT: I figured it out. The instructions just need to be updated. They should read:

  1. Restart homebridge
  2. Open Home app and click +
  3. (the missing one) Tap "Don't have a Code or Can't Scan?"
  4. You'll then see the cameras and you can add them with a tap. You'll need to scan the QR code again.

ryanschmidt avatar Jul 12 '18 02:07 ryanschmidt

Investigating.

Sent from my iPhone

On Jul 11, 2018, at 9:20 PM, Ryan Schmidt [email protected] wrote:

I just added this plugin to my homebridge setup and I'm experiencing the same thing. The motion sensors work as expected but no sign of cameras.

Ubuntu 18.04 Installed ffmpeg Installed necessary plugins Motion sensors work Enabled RTSP feeds — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

gozoinks avatar Jul 12 '18 02:07 gozoinks

hey ryanschmidt thanks for the tip, it's working now

QcVictor avatar Jul 12 '18 12:07 QcVictor

This is also happening for me, Ubuntu 16.04 -- UVC G3 Camera only showing as a motion sensor.

neutrl avatar Jul 29 '18 00:07 neutrl

I'm having this issue too — did anyone ever find a workaround? The "Don't have a Code or Can't Scan?" thing didn't work for me.

-JP

pelowj avatar Nov 13 '18 22:11 pelowj

Yeah I added in other cams, still having this issue, trying to remember what i did last time ...

justinths avatar Nov 19 '18 11:11 justinths

@gozoinks Did you ever manage to get any workarounds for this?

-JP

pelowj avatar Nov 19 '18 21:11 pelowj

Hi I also only see sensors and no feeds

soylant avatar Nov 30 '18 20:11 soylant

Make sure the RTSP feed is enabled in the ubiquiti controller for all cameras.

justinths avatar Dec 01 '18 04:12 justinths

Yep, all RTSP feeds enabled... no joy.

pelowj avatar Dec 04 '18 12:12 pelowj

I've had some success where if they don’t appear in don't have a code section right away, restarting the phone will get them to.

shnhrrsn avatar Jan 22 '19 14:01 shnhrrsn

I'm experiencing the same thing. Also running Ubuntu 18.04 (on a Raspberry Pi 3).

homebridge_1  | [1/28/2019, 6:06:28 PM] [UniFi Video (ffmpeg)] Initializing camera-ffmpeg-ufv platform...
homebridge_1  | [1/28/2019, 6:06:29 PM] Loading 0 accessories...
homebridge_1  | Load homebridge-camera-ffmpeg-ufv.camera-ffmpeg-ufv
homebridge_1  | [1/28/2019, 6:06:29 PM] [UniFi Video (ffmpeg)] Published 1 camera accessories.
homebridge_1  | [1/28/2019, 6:06:29 PM] [UniFi Video (ffmpeg)] Initializing platform accessory 'Garage Motion Sensor'...
homebridge_1  | [1/28/2019, 6:06:29 PM] Garage is running on port 46241.

basroovers avatar Jan 28 '19 18:01 basroovers

I'm having the same issue. And HomeBridge definitely sees the cameras:

Started Node.js HomeKit Server.
[1/30/2019, 12:51:38 AM] Loaded config.json with 0 accessories and 2 platforms.
[1/30/2019, 12:51:38 AM] ---
[1/30/2019, 12:51:38 AM] Loaded plugin: homebridge-camera-ffmpeg-ufv
[1/30/2019, 12:51:38 AM] Registering platform 'homebridge-camera-ffmpeg-ufv.camera-ffmpeg-ufv'
[1/30/2019, 12:51:38 AM] ---
[1/30/2019, 12:51:38 AM] Loaded plugin: homebridge-config-ui-x
[1/30/2019, 12:51:38 AM] Registering platform 'homebridge-config-ui-x.config'
[1/30/2019, 12:51:38 AM] ---
[1/30/2019, 12:51:38 AM] Loading 2 platforms...
[1/30/2019, 12:51:38 AM] [UniFi Video] Initializing camera-ffmpeg-ufv platform...
[1/30/2019, 12:51:38 AM] [Config] Initializing config platform...
[1/30/2019, 12:51:38 AM] [Config] Spawning homebridge-config-ui-x with PID 3366
[1/30/2019, 12:51:38 AM] Loading 0 accessories...
Load homebridge-camera-ffmpeg-ufv.camera-ffmpeg-ufv
Wed, 30 Jan 2019 07:51:38 GMT camera-ffmpeg-ufv Discovered NVR Ames
Wed, 30 Jan 2019 07:51:38 GMT camera-ffmpeg-ufv Discovered server Ames
Wed, 30 Jan 2019 07:51:38 GMT camera-ffmpeg-ufv Discovered RTSP enabled camera 9c164111-9329-3cd5-a404-04e9952a4d35
Wed, 30 Jan 2019 07:51:38 GMT camera-ffmpeg-ufv Discovered server rtsp://10.0.50.15:7436/58c4f2bbc2dc2cd66253347e_0
Wed, 30 Jan 2019 07:51:38 GMT camera-ffmpeg-ufv Config: {"source":"-rtsp_transport http -re -i rtsp://10.0.50.15:7436/58c4f2bbc2dc2cd66253347e_0?apiKey= 3X6veXDBToujg","stillImageSource":"https://10.0.50.15:7443/api/2.0/snapshot/camera/58c4f2bbc2dc2cd66253347e?force=true&apiKey= 3X6veXDBToujg","maxStreams":2,"maxWidth":1920,"maxHeight":1080,"maxFPS":30}
Wed, 30 Jan 2019 07:51:38 GMT camera-ffmpeg-ufv {"name":"Back Door Unifi G3 ","videoConfig":{"source":"-rtsp_transport http -re -i rtsp://10.0.50.15:7436/58c4f2bbc2dc2cd66253347e_0?apiKey= 3X6veXDBToujg","stillImageSource":"https://10.0.50.15:7443/api/2.0/snapshot/camera/58c4f2bbc2dc2cd66253347e?force=true&apiKey= 3X6veXDBToujg","maxStreams":2,"maxWidth":1920,"maxHeight":1080,"maxFPS":30}}
Wed, 30 Jan 2019 07:51:38 GMT camera-ffmpeg-ufv Setting up Motion Sensor for: Back Door Unifi G3
Wed, 30 Jan 2019 07:51:38 GMT camera-ffmpeg-ufv Setting up motion cache for: Ames
Wed, 30 Jan 2019 07:51:38 GMT camera-ffmpeg-ufv Discovered Motion Sensor enabled camera 9c164111-9329-3cd5-a404-04e9952a4d35
Wed, 30 Jan 2019 07:51:38 GMT camera-ffmpeg-ufv Discovered RTSP enabled camera 68095fc6-47a3-3485-be30-2566d782d44f
Wed, 30 Jan 2019 07:51:38 GMT camera-ffmpeg-ufv Discovered server rtsp://10.0.50.15:7436/5b4d3509d34e2d9f37a82141_0
Wed, 30 Jan 2019 07:51:38 GMT camera-ffmpeg-ufv Config: {"source":"-rtsp_transport http -re -i rtsp://10.0.50.15:7436/5b4d3509d34e2d9f37a82141_0?apiKey= 3X6veXDBToujg","stillImageSource":"https://10.0.50.15:7443/api/2.0/snapshot/camera/5b4d3509d34e2d9f37a82141?force=true&apiKey=3X6veXDBToujg","maxStreams":2,"maxWidth":1920,"maxHeight":1080,"maxFPS":30}
Wed, 30 Jan 2019 07:51:38 GMT camera-ffmpeg-ufv {"name":"Front Door Unifi G3","videoConfig":{"source":"-rtsp_transport http -re -i rtsp://10.0.50.15:7436/5b4d3509d34e2d9f37a82141_0?apiKey=3X6veXDBToujg","stillImageSource":"https://10.0.50.15:7443/api/2.0/snapshot/camera/5b4d3509d34e2d9f37a82141?force=true&apiKey=3X6veXDBToujg","maxStreams":2,"maxWidth":1920,"maxHeight":1080,"maxFPS":30}}
Wed, 30 Jan 2019 07:51:38 GMT camera-ffmpeg-ufv Setting up Motion Sensor for: Front Door Unifi G3
Wed, 30 Jan 2019 07:51:38 GMT camera-ffmpeg-ufv Motion Caching already setup for: Ames
Wed, 30 Jan 2019 07:51:38 GMT camera-ffmpeg-ufv Discovered Motion Sensor enabled camera 68095fc6-47a3-3485-be30-2566d782d44f
[1/30/2019, 12:51:38 AM] [UniFi Video] Published 2 camera accessories.
[1/30/2019, 12:51:38 AM] [UniFi Video] Initializing platform accessory 'Back Door Unifi G3  Motion Sensor'...
[1/30/2019, 12:51:38 AM] [UniFi Video] Initializing platform accessory 'Front Door Unifi G3 Motion Sensor'...
Setup Payload:
X-HM://0023LYBB4IDK1
Scan this code with your HomeKit app on your iOS device to pair with Homebridge:

Or enter this code with your HomeKit app on your iOS device to pair with Homebridge:

┌────────────┐
│ 084-33-324 │
└────────────┘

[1/30/2019, 12:51:38 AM] Back Door Unifi G3  is running on port 36698.
[1/30/2019, 12:51:38 AM] Front Door Unifi G3 is running on port 36311.
[1/30/2019, 12:51:38 AM] Homebridge is running on port 51828.
[1/30/2019, 12:51:39 AM] [Config] Using Form Authentication
[1/30/2019, 12:51:39 AM] [Config] Console v3.9.1 is listening on port 8080.'

Botts85 avatar Jan 30 '19 07:01 Botts85

I just added this plugin to my homebridge setup and I'm experiencing the same thing. The motion sensors work as expected but no sign of cameras.

* Ubuntu 18.04

* Installed ffmpeg

* Installed necessary plugins

* Motion sensors work

* Enabled RTSP feeds

EDIT: I figured it out. The instructions just need to be updated. They should read:

1. Restart homebridge

2. Open Home app and click +

3. (the missing one) Tap "Don't have a Code or Can't Scan?"

4. You'll then see the cameras and you can add them with a tap. You'll need to scan the QR code again.

I just saw your reply. This worked like a charm for me.

basroovers avatar Feb 19 '19 20:02 basroovers

Ive got the same issue, its only showing Motion Sensors and not the Camera's, all the above tried to no avail.

Any help much appreciated.

JasSmiths avatar Feb 22 '19 20:02 JasSmiths

@JasSmiths for whatever reason, my Homebridge stopped seeing the camera feeds, so @SMARoovers solution doesn't work.

That solution is the proper one for a functioning setup though.

I wound up just recreating my Homebridge VM from scratch to resolve the issue as it became clear that would save me time versus trying to figure out the issue.

Botts85 avatar Feb 25 '19 21:02 Botts85

I’m currently having this same issue. I can get it to run fine on a Raspberry Pi 3, but no such luck on Ubuntu.

merrlyne avatar Mar 15 '19 04:03 merrlyne