Open-source camera-matching plugin for DaVinci Resolve (OpenFX).
MagicMatch analyzes a source and a reference image and computes an ASC CDL (Slope, Offset, Power, Saturation) that brings the source closer to the reference. It is built for camera matching within the same scene: different angles, different cameras, same look. It runs fully locally: no server, no AI inference, no accounts.
Beta. Tested on macOS Apple Silicon with DaVinci Resolve Studio. Feedback and bug reports are welcome.
- Auto Match: computes Slope / Offset / Saturation from source vs reference.
- Grab Reference: stores the reference statistics inside the Resolve project, no export/import of stills.
- Reference clip input: alternative to Grab Reference, using an OFX clip as reference.
- Mask inputs: analyze only selected areas (e.g. Magic Mask on faces), for source and reference separately.
- Export CDL: saves an ASC CDL v1.01
.cdlfile. - Intensity blend and optional skin protection.
- Download
MagicMatch-1.3b-macOS-arm64.zipfrom the Releases page (newest version on top). - Unzip, double-click
install.command(right-click → Open if macOS blocks it). - Quit and restart DaVinci Resolve.
Full instructions and troubleshooting: INSTALL.md.
- macOS 13+ on Apple Silicon (M1 or later)
- DaVinci Resolve Studio 18 or later (the free version does not load OFX plugins)
- Windows: the source is cross-platform-ready, but a Windows build is not provided or tested yet. Contributions welcome.
Find the plugin on the Color page under OpenFX → Color → MagicMatch.
- On the reference clip (e.g. CAM A), add a MagicMatch node and click Grab Reference.
- Copy the node to the clip to match (e.g. CAM B).
- Click Auto Match. Slope / Offset / Saturation update automatically.
- Optionally click Export CDL →
~/Documents/MagicMatch/CDL/.
Connect a reference image to the node's Reference input and click Auto Match. If a Reference clip is connected it takes priority over grabbed statistics.
Connect Magic Mask key outputs to the two blue Key inputs: first = Source Mask, second = Reference Mask. Only masked areas are analyzed. Masks are optional.
CDL is color-space agnostic, but results are far better in a log space (LogC3, S-Log3, V-Log, ACEScct). Put a Color Space Transform before MagicMatch and one after to return to your working space.
| Parameter | Description |
|---|---|
| Auto Match | Analyzes source vs reference and writes the CDL values |
| Grab Reference | Stores the current frame's statistics as the reference |
| Export CDL | Saves the current values as an ASC CDL .cdl file |
| Match White Point | On by default. Auto Match also aligns exposure/contrast from the white and black points |
| Match Midtones (Power) | Off by default. Auto Match also estimates a Power (0.9–1.1) from the mean luma |
| Intensity | Blend between original (0) and full correction (1) |
| Slope / Offset / Power R,G,B | CDL values (Power is left at 1.0 by Auto Match) |
| Saturation | Global saturation |
| Skin Protection / Strength | Preserve skin tones under strong corrections |
| Clamp Output | Off by default: values above 1.0 (linear, ACEScg, HDR) are preserved. Turn on to limit the output to 0–1 |
Per pixel: out = (in * Slope + Offset)^Power, then saturation.
Neutral-point analysis. For each image MagicMatch computes a saturation-weighted neutral gray point, the 1st/99th luma percentiles as black/white points, and a "colorful" saturation estimate.
- Slope: ratio of reference/source neutral points per channel (clamped 0.7–1.4). With Match White Point it is also scaled by
(ref.white − ref.black) / (src.white − src.black)(clamped 0.7–1.4) - Offset: one uniform value aligning the black points (clamped ±0.15)
- Power: 1.0, or with Match Midtones estimated from the mean luma (clamped 0.9–1.1)
- Saturation: ratio of colorful saturation (clamped 0.85–1.15)
- Single-frame analysis (the current timeline frame).
- Exposure differences over ~1–2 stops hit the Slope clamps: correct exposure first.
- Tuned for camera matching, not stylized look transfer.
- Unsigned build: see INSTALL.md for the Gatekeeper steps.
MagicMatch does not appear in Resolve. Work through these in order, restarting Resolve (⌘Q, then reopen) after each step: it loads OpenFX plugins only at startup.
- Resolve Studio is required. The free version does not load OFX plugins.
- Look in the right place. Color page → Effects → OpenFX → Color → MagicMatch, or type "MagicMatch" in the Effects search box. Some plugins are listed under a vendor header instead.
- Check Preferences → System → Video Plugins.
- Not listed: the bundle is not in
/Library/OFX/Plugins/(or~/Library/OFX/Plugins/), or the folder name is wrong. It must beMagicMatch.ofx.bundle. - Listed but unticked: tick it, apply, restart Resolve.
- Listed with Failed to load (even after a correct install): go to step 5, the cache is the usual cause.
- Not listed: the bundle is not in
- Remove the macOS quarantine flag and fix permissions (a downloaded, unnotarized bundle can be blocked silently):
sudo xattr -cr /Library/OFX/Plugins/MagicMatch.ofx.bundle sudo chmod -R 755 /Library/OFX/Plugins/MagicMatch.ofx.bundle
- Reset Resolve's plugin cache. Resolve remembers a failed load and may keep showing "Failed to load" even after the problem is fixed. Quit Resolve, then:
Resolve rebuilds the file at the next launch. Only plugin scan data is lost, not projects. A failed entry looks like
mv "$HOME/Library/Application Support/Blackmagic Design/DaVinci Resolve/OFXPluginCacheV2.xml" ~/Desktop/OFXPluginCacheV2.xml.bak
status="2"(often withmtime="0" size="0") next to the bundle path in that file; a good one hasstatus="0". - Remove stray files from
/Library/OFX/Plugins/..ziparchives and unrelated folders there produceFailed to loadlines in the log and slow down startup. - Reinstall the latest release with
uninstall.commandtheninstall.command(old builds, up to 1.2b, are not code-signed and target a newer minimum macOS than they declare).
Diagnostics. To check that the binary itself is healthy, run:
ls -laO /Library/OFX/Plugins/ ~/Library/OFX/Plugins/ 2>&1 | grep -i magic
xattr -lr /Library/OFX/Plugins/MagicMatch.ofx.bundle
codesign -dv --verbose=2 /Library/OFX/Plugins/MagicMatch.ofx.bundle 2>&1 | head -12
file /Library/OFX/Plugins/MagicMatch.ofx.bundle/Contents/MacOS/MagicMatch.ofx
python3 -c "import ctypes; l=ctypes.CDLL('/Library/OFX/Plugins/MagicMatch.ofx.bundle/Contents/MacOS/MagicMatch.ofx'); print('dlopen OK, plugins:', l.OfxGetNumberOfPlugins())"dlopen OK, plugins: 1 and an empty xattr output mean the plugin is fine and the problem is on the Resolve side (steps 2, 3 and 5). The architecture must be arm64; uname -m on the Mac must print arm64 and Resolve must not run under Rosetta.
Resolve log. Look for MagicMatch or OpenFX in ~/Library/Application Support/Blackmagic Design/DaVinci Resolve/logs/davinci_resolve.log (a line like Failed to load /Library/OFX/Plugins/MagicMatch.ofx.bundle means Resolve found the bundle but could not load it; Resolve writes nothing for a successful load). For system-level errors (signature, Gatekeeper) right after starting Resolve:
log show --last 10m --info --predicate 'eventMessage CONTAINS[c] "MagicMatch"' --style compact | tail -40When reporting a problem, attach the output of the diagnostic commands, your macOS and Resolve versions, and the relevant log lines.
macOS, Xcode command line tools, and the OpenFX headers:
git clone https://github.com/AcademySoftwareFoundation/openfx.git ~/Desktop/openfx
make # build/MagicMatch.ofx.bundle
make check # verify exported symbols
make install # /Library/OFX/Plugins (sudo)
# or: make install-user # ~/Library/OFX/Plugins
make release # distributable zip in build/Use a different SDK location with make OFX_SDK=/path/to/openfx/include.
Issues and pull requests are welcome. Keep the code cross-platform: guard OS-specific code with #ifdef _WIN32.
Alessio Pallante, StrandLabs, Rome.
GNU GPL v3.0 or later. Forks and redistributed binaries must remain open source under the same license. OpenFX headers are BSD-licensed.