I built BM4K Autofocus for using a Blackmagic Pocket Cinema Camera 4K as a webcam on macOS with face-tracking autofocus. The Pocket sends its own video to the Mac over USB-C; the app watches that Blackmagic feed, detects a face with Apple Vision, and controls the lens over Bluetooth LE. In Zoom, OBS, or another video app, you select Pocket Cinema Camera as the webcam. BM4K Autofocus runs alongside it and does not create a virtual camera.
There are now two step-by-step setup paths in the README:
- Agent-assisted: give your coding agent the repo link and ask it to follow the README, run the installer, and verify the Blackmagic video and Bluetooth connections. You still need to enable Bluetooth on the camera and Mac, connect the USB-C cable, and approve macOS permissions yourself.
- Manual: enable Bluetooth on the BMPCC 4K (Menu → Setup → Bluetooth) and Mac, disconnect any Blackmagic phone controller, connect the Pocket with a USB-C data cable in webcam mode, then run:
git clone https://github.com/Vovento/bm4k-autofocus.git
cd bm4k-autofocus
./install.sh
Open the BM4K Autofocus application, allow Camera and Bluetooth access for its service, wait for the camera preview and Bluetooth link, and enable Follow face. Finally, choose Pocket Cinema Camera as the camera in your video app. The app deliberately does not use the MacBook or iPhone camera for tracking.
The dashboard also has controls for iris, shutter angle, ISO, white balance, recording, and focus. The main tracking mode estimates distance from face size and focal length, uses a lens profile to move focus, then checks sharpness to refine it. The camera's one-shot AF is used for initial learning and as a fallback.
The measured Sigma/Metabones lens profile is included, but each new installation starts without locally learned adjustments. On first use, the app uses the camera's one-shot AF to establish an initial focus point, then learns from face size, focal length and the camera's distance reading as you use it. It keeps refining focus and sharpness references for your setup and shooting conditions, so allow some time for it to adapt. These adjustments stay in a local focus_model.json file; no face images are stored there.
I've tested this only on a BMPCC 4K with a Sigma 18–35mm f/1.8 Art EF through a Metabones 0.64× Speed Booster. With that setup, it typically gets the face back in focus around 1–1.5 seconds after I stop moving. Other lenses and 6K bodies have not been validated. A new lens can attempt calibration, but that path needs more real-world testing.
Code, full installation steps, limitations, and the measured Sigma lens profile: https://github.com/Vovento/bm4k-autofocus
It's free and MIT-licensed. If you test another electronic lens/adapter or a 6K, I'd welcome reports or PRs, especially whether your camera reports focus distance over Bluetooth.