KhaosT / homebridge-camera-isight

iSight camera plugin for homebridge
52 stars 14 forks source link

Failed to create AV capture input device: Cannot use FaceTime HD Camera (Built-in) #27

Open josephcomisi opened 4 years ago

josephcomisi commented 4 years ago

Hello, I've got the following error.

Any idea where does this can come from ?

LOG:

ffmpeg [
  '-re',
  '-f',
  'avfoundation',
  '-r',
  '25',
  '-i',
  '0:none',
  '-threads',
  '0',
  '-vcodec',
  'libx264',
  '-an',
  '-pix_fmt',
  'yuv420p',
  '-r',
  '30',
  '-f',
  'rawvideo',
  '-tune',
  'zerolatency',
  '-vf',
  'scale=1280:720',
  '-b:v',
  '299k',
  '-bufsize',
  '299k',
  '-payload_type',
  '99',
  '-ssrc',
  '1',
  '-f',
  'rtp',
  '-srtp_out_suite',
  'AES_CM_128_HMAC_SHA1_80',
  '-srtp_out_params',
  'nUuMqlxBdoaYoaBCeWN1F+KwsuxexQjvOdydlXIv',
  'srtp://192.168.1.35:57448?rtcpport=57448&localrtcpport=57448&pkt_size=1378'
]
stderr: ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developers
  built with Apple clang version 11.0.3 (clang-1103.0.32.62)

stderr:   configuration: --enable-videotoolbox --pkgconfigdir=/Users/runner/work/ffmpeg-for-homebridge/ffmpeg-for-homebridge/build/workspace/lib/pkgconfig --prefix=/Users/runner/work/ffmpeg-for-homebridge/ffmpeg-for-homebridge/build/workspace --pkg-config-flags=--static --extra-cflags=-I/Users/runner/work/ffmpeg-for-homebridge/ffmpeg-for-homebridge/build/workspace/include --extra-ldflags=-L/Users/runner/work/ffmpeg-for-homebridge/ffmpeg-for-homebridge/build/workspace/lib --extra-libs='-lpthread -lm' --enable-static --disable-debug --disable-shared --disable-ffplay --disable-doc --enable-openssl --enable-gpl --enable-version3 --enable-nonfree --enable-pthreads --enable-libvpx --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libx264 --enable-runtime-cpudetect --enable-libfdk-aac --enable-avfilter --enable-libopencore_amrwb --enable-libopencore_amrnb --enable-filters --enable-decoder=h264 --enable-network --enable-protocol=tcp --enable-libspeex --enable-demuxer=rtsp
  libavutil      56. 51.100 / 56. 51.100
  libavcodec     58. 91.100 / 58. 91.100
  libavformat    58. 45.100 / 58. 45.100
  libavdevice    58. 10.100 / 58. 10.100
  libavfilter     7. 85.100 /  7. 85.100
  libswscale      5.  7.100 /  5.  7.100
  libswresample   3.  7.100 /  3.  7.100
  libpostproc    55.  7.100 / 55.  7.100

stderr: [avfoundation @ 0x7f9a53008200] Failed to create AV capture input device: Cannot use FaceTime HD Camera (Built-in)

stderr: 0:none: Input/output error
[avfoundation @ 0x7fbdd3808200] Failed to create AV capture input device: Cannot use FaceTime HD Camera (Built-in)

Config:

{
            "platform": "Camera-iSight",
            "name": "FaceTime HD Camera",
            "fps": 25,
            "video_device": "0",
            "audio_device": "none"
        }

I tried different configurations but nothing worked

ng-4r commented 3 years ago

same problem here! It seems due to MacOS new permissions policies