homebridge-camera-isight
homebridge-camera-isight copied to clipboard
iSight only, or any attached webcam?
So I've got my homebridge running on a Mac Mini, which obviously doesn't have an iSight camera.
Is this plugin only going to work with iSight, or with any attached camera?
You would have to modify the source to do it, the alternative is to use the homebridge-camer-ffmpeg
module. You'll need to enumerate the devices using ffmpeg -f avfoundation -list_devices true -i dummy
and then taking the index of your webcam, put it into the config.
Something like: "platform": "Camera-ffmpeg", "cameras": [ { "name": "Mac OSX", "videoConfig": { "source": "-re -f avfoundation -video_size 1280x720 -framerate 30 -i 0:3", "maxStreams": 2, "maxWidth": 1280, "maxHeight": 720, "maxFPS": 30 } } ]
where 0:3 corresponds to {webCamIndex}:{audioIndex}
actually i have a usb camera attached to my mac mini that shows up in facetime and photobooth. Even though it is not an iSight camera this plugin works fine with it.