KhaosT / homebridge-camera-isight

iSight camera plugin for homebridge
51 stars 14 forks source link

iSight only, or any attached webcam? #2

Open JangoBritt opened 8 years ago

JangoBritt commented 8 years ago

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?

StSimmons commented 7 years ago

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}

gilesmartin commented 7 years ago

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.