Deep-Live-Cam
Deep-Live-Cam copied to clipboard
Camera fails to initialize on M1 Mac: OpenCV: out device out of bound (0-1): 2
This is the error I'm getting when running python3.10 run.py --execution-provider coreml.
OpenCV: out device of bound (0-1): 2
OpenCV: camera failed to properly initialize!
...
...
[04/29 10:30:28.356590][info][32867190][DeviceManager.cpp:15] Current found device(s): (0)
[04/29 10:30:28.356604][info][32867190][Pipeline.cpp:15] Try to create pipeline with default device.
[04/29 10:30:28.356606][warning][32867190][ObException.cpp:5] No device found, fail to create pipeline!
[04/29 10:30:28.358412][info][32867190][Context.cpp:90] Context destroyed
[ WARN:[email protected]] global cap.cpp:323 open VIDEOIO(OBSENSOR): raised unknown C++ exception!
Strangely enough, I am still seeing FaceTime Camera as an option. When running, I also see the green LED next to the webcam (which indicates the webcam is in use) flash on for a couple of seconds.
Things I have tried: I tried running from both iTerm and Macs native terminal. I have tried running with and without coreml. I have turned off connectivity on my phone to prevent continuity cam from connecting.
If anyone has any solutions or can provide any direction I'd appreciate it. In the meantime I'm going to tinker around and see if I can find a solution.