millerbento / Stop-Start-Recording-Atem-Mini

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

License:GNU General Public License v3.0


Languages

Language:C 54.8%Language:C++ 44.8%Language:Python 0.4%