Skip to content

A Python wrapper for the offical Black Magic API. You can expose any of the existing functions to be called using Python.

Notifications You must be signed in to change notification settings

millerbento/Stop-Start-Recording-Atem-Mini

Repository files navigation

Start and stop recording ATEM MINI using Python

Testing the C++ call

BUILDING THE C++ file (MacOS)

g++ -I blackmagic_api/mac_os/include/ -framework CoreFoundation blackmagic_api/mac_os/include/BMDSwitcherAPIDispatch.cpp main.cpp RecordingControl.cpp SwitcherConnection.cpp -o Main.o

RUNNING IT

./Main.o

Now calling it using Python

The offical Black Magic Library is written in C++ so we need to create a Python wrapper to be able to call it (I'm using CTYPES to do it)

Compiling it to a shared library

g++ -I blackmagic_api/mac_os/include/ -framework CoreFoundation -shared -fPIC
blackmagic_api/mac_os/include/BMDSwitcherAPIDispatch.cpp
Main.cpp RecordingControl.cpp SwitcherConnection.cpp -o libatemswitcher.so

Running it using Python

Simply open atemswitcher_wrapper.py and run it

About

A Python wrapper for the offical Black Magic API. You can expose any of the existing functions to be called using Python.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published