Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iSight only, or any attached webcam? #2

Open
JangoBritt opened this issue Sep 30, 2016 · 2 comments
Open

iSight only, or any attached webcam? #2

JangoBritt opened this issue Sep 30, 2016 · 2 comments

Comments

@JangoBritt
Copy link

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
Copy link

StSimmons commented Oct 3, 2016

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants