An experimental OBS Studio effect filter that uses Apple's Vision framework to follow one face and smoothly crop and enlarge an existing video source. It is inspired by norihiro's Face Tracker, and is a separate implementation.
- Built for Apple silicon and OBS Studio 33; tested on an Apple M4 with macOS 26.6.2 and OBS 33.0.3. The build targets macOS 13 or newer, but other macOS and OBS versions and HDR sources have not yet been validated.
- The developer reports smooth tracking from a live capture source with a few percent CPU and no measurable GPU load on their setup. The Vision and OBS Metal pipelines have also been tested using still images, including a repositioned face and face loss. Long-duration tests and a controlled side-by-side benchmark remain outstanding; resource use varies by setup.
- This is a digital effect filter. It does not control physical PTZ cameras, add a separate tracker source, or provide all controls of the original plugin.
- The locally built plugin is ad-hoc signed. Its installer is unsigned and not notarized, so macOS may block it when downloaded. Developer ID signing and Apple notarization are needed for a normal public release.
- Install the plugin as described below, then restart OBS.
- Add a video capture device or other video source to a scene.
- Open the source's Filters window. Under Effect Filters, add Face Tracker for Mac.
- Move in front of the camera. Set the zoom and smoothing to suit the shot. When no face is detected for two seconds, the crop eases back to the full source.
Use a nested scene or a source clone if you need both the original and the tracked view. Detection is best when the face is visible and reasonably large. The largest face is chosen during detection; if several faces are present, the selected face may change. Faces near an edge cannot always be centered because the crop stays within the source.
| Setting | Meaning |
|---|---|
| Tracking rate | Maximum analysis attempts per second; default 12. Lower values can reduce load but slow response. |
| Zoom | Fixed zoom, or the maximum zoom when automatic zoom is enabled; default 3×. |
| Movement smoothing | Approximate exponential response time in seconds; default 2. Higher values move more slowly. |
| Adjust zoom to face size | Adjust zoom based on detected face width, subject to the zoom limit; on by default. |
| Target face width | Desired fraction of output width occupied by the face when automatic zoom is on; default 0.20. |
Existing filters keep their saved settings when the plugin is upgraded. The defaults apply to new filters and when a filter is reset to defaults.
The package Face-Tracker-for-Mac-0.2.0-Apple-Silicon.pkg installs for the current macOS user into ~/Library/Application Support/obs-studio/plugins/. Quit OBS, open the package and follow Installer, then reopen OBS. The installer requires OBS to be closed. It does not change existing scenes or filter settings. Remove the installed face-tracker-for-mac.plugin bundle from that folder to uninstall.
The current package is unsigned and not notarized. It is suitable for local testing and macOS may block it, especially if downloaded; it is not yet a trusted public release. See Release packaging for the signing and notarization steps.
The project uses Apple's command line tools, an OBS source checkout matching the installed OBS build, and SIMDe headers. The installed OBS app supplies libobs; its architecture must match the build machine. On this machine, the Xcode command line tools are sufficient; a full Xcode installation also works once its license is accepted.
git clone --depth 1 --branch 33.0.3 https://github.com/obsproject/obs-studio.git /tmp/obs-studio-33.0.3
git clone --depth 1 --branch v0.8.2 https://github.com/simd-everywhere/simde.git /tmp/simde
export OBS_SOURCE=/tmp/obs-studio-33.0.3
export SIMDE_SOURCE=/tmp/simde
./scripts/build.shSet OBS_APP if OBS is not at /Applications/OBS.app. The output is build/face-tracker-for-mac.plugin. Run ./scripts/package.sh to produce the installer in build/. For local manual installation, quit OBS and copy the bundle to ~/Library/Application Support/obs-studio/plugins/.
The installer has been inspected for its payload and user-domain destination, but the complete Installer GUI flow has not yet been exercised. The running OBS instance must be restarted after an upgrade before it uses the new build.
Provide your own upright image with a visible face; test images are not bundled. The Vision smoke test runs 35 frames to cover initial detection, tracking, and periodic re-detection:
./scripts/test-vision.sh /path/to/face.pngThe isolated OBS smoke test starts its own libobs graphics pipeline, loads the built plugin and an OBS image source, and checks the face position and zoom. Its fixture expects a face in the upper part of the image. Optionally pass a second image of the same size with the face shifted to the right; the test verifies that the observation moves right. A third, same-sized image with no face checks the return to the full frame. These tests may require access to the local graphics and Vision services outside a restricted execution environment.
./scripts/test-obs.sh /path/to/face-left.png /path/to/face-right.png /path/to/empty.pngFor a fair performance comparison, use the same source, scene, OBS version, output resolution, frame rate, filter settings, and test duration for each plugin. Record CPU, memory, dropped/render-lagged frames, and movement quality after warm-up, and repeat with the filter disabled. GPU readback and Vision processing have a cost; the work is limited to small frames and one in-flight analysis, but performance has not yet been benchmarked.
The filter renders a reduced frame, at most 320 pixels on its longest side, and transfers it to Vision. Analysis is rate-limited and runs on a serial background queue with at most one frame in flight. Vision detects a face, tracks its bounding rectangle, and periodically re-detects to correct drift. The video output applies an exponentially smoothed crop on the GPU. The source stays in OBS; the plugin does not send frames over the network or require a separate model download. Apple determines which hardware executes Vision requests; acceleration on a particular device is not guaranteed.
See CONTRIBUTING.md. The OBS forum resource draft is a draft; no resource has been published. This project is licensed under GPL-2.0-or-later; see LICENSE. OBS and Apple Vision remain subject to their respective licenses.