Installing NDI Python command-line tools in MacOS

08 may
2021

Categories: Techno

I have written some programs that send an animations in NDI format. Several versions of the studio clock and ticker. The clock reads data from a calendar shared on the web and displays rundown based on this data. Ticker reads any RSS feed and displays it as a scrolling ticker bar. The tools are written in Python. The installer is beyond my will to do free work. However, I wrote instructions on how to compile the ndi-python library and how to install additional Python libraries necessary to run my programs. Enjoy.

NDI Tools for Windows

NDI Tools for MacOS

You will need at last NDI Monitor to check NDI streams generated by tools.

Install xcode (on systems older than MacOS 11 you have to download xcode from archival page here but I am afraid you will have to authenticate with your Apple ID). You need xCode and xCode Command Line tools installed.

curl -fsSL -o install.sh https://raw.githubusercontent.com/Homebrew/install/master/install.sh

brew install cmake

pip3 install virtualenvĀ 

cd ~
virtualenv -p python3 vw

source vw/bin/activate

pip3 install numpy

brew install opencv (it will take some time)

pip3 install opencv-python

pip3 install pillow

pip3 install ics

pip3 install requests

pip3 install matplotlib

pip3 install rss-parser

git clone https://github.com/RadioErewan/clk.git --recursive

git clone https://github.com/buresu/ndi-python.git --recursive

cd ndi-python/
cmake ./
cmake --build ./ --config Release

it will be something like NDIlib.cpython-3x-darwin.so

cd clk

python3 clock.py

python3 ticker.py

To change calendar used by application CLOCK share with everyone your google calendar, find it's address and replace it on this line in clock.py file.

icsurl = "https://calendar.google.com/calendar/ical/gfh9vebps3t1fqu4mqvvpfd8ro%40group.calendar.google.com/public/basic.ics"

Return to index