KhaosT / homebridge-camera-isight

iSight camera plugin for homebridge
52 stars 14 forks source link

Not working in macOS Catalina #25

Open migabc opened 5 years ago

migabc commented 5 years ago

This plugin stopped working in macOS Catalina

Is the a fix for this?

No useful info in the log file

[11/3/2019, 7:33:03 PM] iSight Camera is running on port 50321. [11/3/2019, 7:33:03 PM] Please add [iSight Camera] manually in Home app. Setup Code: 031-45-155

RobVerhoeven00 commented 5 years ago

Indeed, no longer working, without any fault code. Have not seen a resolution yet.

RobVerhoeven00 commented 4 years ago

Any one yet seen a resolution for this issue? Seems to me that Catalina has altered some calls for iSight that no longer respond to the homebridge code.

gmum4d commented 4 years ago

Unfortunately it looks like this plugin is now dead

RobVerhoeven00 commented 4 years ago

@KhaosT Any ideas to get this back to work. For me this really worked well...so please ;-)

KhaosT commented 4 years ago

Make sure you granted ffmpeg access to your camera on Catalina.

gmum4d commented 4 years ago

Sorry, a novice here, how do I do that? Thanks

gmum4d commented 4 years ago

still can't get this teamwork on Catalina? I have given terminal access to the camera (I don't know how to give FFmpeg permissions specifically). if I run the FFmpeg get devices code ffmpeg -f avfoundation -list_devices true -i "" I get the following response...

ffmpeg version 4.2.2 Copyright (c) 2000-2019 the FFmpeg developers built with Apple clang version 11.0.0 (clang-1100.0.33.16) configuration: --prefix=/usr/local/Cellar/ffmpeg/4.2.2 --enable-shared --enable-pthreads --enable-version3 --enable-avresample --cc=clang --host-cflags='-I/Library/Java/JavaVirtualMachines/adoptopenjdk-13.0.1.jdk/Contents/Home/include -I/Library/Java/JavaVirtualMachines/adoptopenjdk-13.0.1.jdk/Contents/Home/include/darwin -fno-stack-check' --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libmp3lame --enable-libopus --enable-librubberband --enable-libsnappy --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-libsoxr --enable-videotoolbox --disable-libjack --disable-indev=jack libavutil 56. 31.100 / 56. 31.100 libavcodec 58. 54.100 / 58. 54.100 libavformat 58. 29.100 / 58. 29.100 libavdevice 58. 8.100 / 58. 8.100 libavfilter 7. 57.100 / 7. 57.100 libavresample 4. 0. 0 / 4. 0. 0 libswscale 5. 5.100 / 5. 5.100 libswresample 3. 5.100 / 3. 5.100 libpostproc 55. 5.100 / 55. 5.100 [AVFoundation input device @ 0x7fc65061db80] AVFoundation video devices: [AVFoundation input device @ 0x7fc65061db80] [0] FaceTime HD Camera (Built-in) [AVFoundation input device @ 0x7fc65061db80] [1] Capture screen 0 [AVFoundation input device @ 0x7fc65061db80] AVFoundation audio devices: [AVFoundation input device @ 0x7fc65061db80] [0] AirBeamTV Audio [AVFoundation input device @ 0x7fc65061db80] [1] Built-in Microphone [AVFoundation input device @ 0x7fc65061db80] [2] Soundflower (2ch) : Input/output error

Note: the Input/output error at the end. any help is appreciated

RobVerhoeven00 commented 4 years ago

still can't get this teamwork on Catalina? I have given terminal access to the camera (I don't know how to give FFmpeg permissions specifically). if I run the FFmpeg get devices code ffmpeg -f avfoundation -list_devices true -i "" I get the following response...

ffmpeg version 4.2.2 Copyright (c) 2000-2019 the FFmpeg developers built with Apple clang version 11.0.0 (clang-1100.0.33.16) configuration: --prefix=/usr/local/Cellar/ffmpeg/4.2.2 --enable-shared --enable-pthreads --enable-version3 --enable-avresample --cc=clang --host-cflags='-I/Library/Java/JavaVirtualMachines/adoptopenjdk-13.0.1.jdk/Contents/Home/include -I/Library/Java/JavaVirtualMachines/adoptopenjdk-13.0.1.jdk/Contents/Home/include/darwin -fno-stack-check' --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libmp3lame --enable-libopus --enable-librubberband --enable-libsnappy --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-libsoxr --enable-videotoolbox --disable-libjack --disable-indev=jack libavutil 56. 31.100 / 56. 31.100 libavcodec 58. 54.100 / 58. 54.100 libavformat 58. 29.100 / 58. 29.100 libavdevice 58. 8.100 / 58. 8.100 libavfilter 7. 57.100 / 7. 57.100 libavresample 4. 0. 0 / 4. 0. 0 libswscale 5. 5.100 / 5. 5.100 libswresample 3. 5.100 / 3. 5.100 libpostproc 55. 5.100 / 55. 5.100 [AVFoundation input device @ 0x7fc65061db80] AVFoundation video devices: [AVFoundation input device @ 0x7fc65061db80] [0] FaceTime HD Camera (Built-in) [AVFoundation input device @ 0x7fc65061db80] [1] Capture screen 0 [AVFoundation input device @ 0x7fc65061db80] AVFoundation audio devices: [AVFoundation input device @ 0x7fc65061db80] [0] AirBeamTV Audio [AVFoundation input device @ 0x7fc65061db80] [1] Built-in Microphone [AVFoundation input device @ 0x7fc65061db80] [2] Soundflower (2ch) : Input/output error

Note: the Input/output error at the end. any help is appreciated

Same dump result here, and stil not working. Not sure if the input/output error is the reason for the isight not showing up....will investigate FFMPEG access to the isight cam...see if that brings anything...

steve-gibbons commented 4 years ago

I have been able to use the iSight camera plugin interactively from Terminal on Catalina but not when started as a service via launchd. Like others, I am not sure how to grant ffmpeg access to the camera, the permission gets tied to Terminal instead.

https://github.com/codebytere/node-mac-permissions/ looks promising...

RobVerhoeven00 commented 4 years ago

I have been able to use the iSight camera plugin interactively from Terminal on Catalina but not when started as a service via launchd. Like others, I am not sure how to grant ffmpeg access to the camera, the permission gets tied to Terminal instead.

https://github.com/codebytere/node-mac-permissions/ looks promising...

Indeed, creating a .jpg image from your iSight camera works under Catalina Terminal normally. The plugin, to me, seems to be the problem right now. Something has changed in the homebridge-plugin call to the iSight camera. But can not figure out yet what...

ng-4r commented 3 years ago

I have been able to use the iSight camera plugin interactively from Terminal on Catalina but not when started as a service via launchd. Like others, I am not sure how to grant ffmpeg access to the camera, the permission gets tied to Terminal instead. https://github.com/codebytere/node-mac-permissions/ looks promising...

Indeed, creating a .jpg image from your iSight camera works under Catalina Terminal normally. The plugin, to me, seems to be the problem right now. Something has changed in the homebridge-plugin call to the iSight camera. But can not figure out yet what...

I just installed this plugin to test and had the same issue. Camera is exposed to HomeKit but not responding. I tried to capture with ffmpeg through terminal and it works, so I suppose is a problem related to granting permissions. Now MacOs shows a pop-up for every new app asking to use camera, folders, etc. Your suggestion (node-mac-permissions) seems to actually force the pop-up, but there's no documentation, and I've never edited nodejs...

Is there a way to force the pop-up or silently grant access?