Skip to main content

Wrapper package for NDI SDK python bindings.

Project description

ndi-python

NewTek NDI Python wrapper

Installation

ndi-python is support pypi package now. https://pypi.org/project/ndi-python/
So you can install it using pip if it is a supported environment.

pip install ndi-python

The supported environment is as follows.

  • Windows x64 Python(3.7-3.10)
  • macOS x64 >=10.12 Python(3.7-3.10)
  • Linux x64,aarch64 Python(3.7-3.10)

Setup Avahi

Linux requires Avahi to search for NDI sources.
Please install according to your environment.

Ubuntu

sudo apt install avahi-daemon
sudo systemctl enable --now avahi-daemon

Arch Linux

sudo pacman -S avahi
sudo systemctl enable --now avahi-daemon

Run examples

I've ported some examples to python.
You can try it by running the ndi-python examples.

git clone --recursive https://github.com/buresu/ndi-python.git
cd ndi-python/example
pip install -r requirements.txt
python find.py

Development

Install NDI SDK

NDI SDK is required for development.
You should install according to your environment.

Windows, Mac, Ubuntu

Donwload and install NDI SDK.
https://ndi.tv/sdk/

Arch Linux

yay -S ndi-sdk

Build

Build with setup.py

git clone --recursive https://github.com/buresu/ndi-python.git
cd ndi-python
python setup.py build

For ubuntu you need to set the SDK directory in NDI_SDK_DIR as cmake options.

env CMAKE_ARGS="-DNDI_SDK_DIR=/path/to/ndisdk" python setup.py build

You can also specify the python version.

env CMAKE_ARGS="-DNDI_SDK_DIR=/path/to/ndisdk -DPYTHON_EXECUTABLE=/path/to/python3.8 -DPYBIND11_PYTHON_VERSION=3.8" /path/to/python3.8 setup.py build

Build for Python package

python setup.py bdist_wheel

Build only CMake

git clone --recursive https://github.com/buresu/ndi-python.git
cd /path/to/build
cmake /path/to/project
cmake --build /path/to/build --config Release

For ubuntu you need to set the SDK directory in NDI_SDK_DIR.
And build as follows.

cmake /path/to/project -DNDI_SDK_DIR=/path/to/ndisdk
cmake --build /path/to/build --config Release

After build copy ndi-python binary and NDI binary to execute directory.

License

ndi-python is MIT License
NDI follows NDI's license

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

ndi_python-5.1.1.5-cp310-cp310-macosx_11_0_arm64.whl (5.2 MB view details)

Uploaded CPython 3.10 macOS 11.0+ ARM64

ndi_python-5.1.1.5-cp39-cp39-macosx_11_0_arm64.whl (5.2 MB view details)

Uploaded CPython 3.9 macOS 11.0+ ARM64

ndi_python-5.1.1.5-cp38-cp38-macosx_11_0_arm64.whl (5.2 MB view details)

Uploaded CPython 3.8 macOS 11.0+ ARM64

ndi_python-5.1.1.5-cp37-cp37m-macosx_11_0_arm64.whl (5.2 MB view details)

Uploaded CPython 3.7m macOS 11.0+ ARM64

File details

Details for the file ndi_python-5.1.1.5-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

  • Download URL: ndi_python-5.1.1.5-cp310-cp310-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 5.2 MB
  • Tags: CPython 3.10, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.4

File hashes

Hashes for ndi_python-5.1.1.5-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 afd4ca60862853fc483a0d70010803f0f5306b5f6e83971dfabce74c4534119a
MD5 7c305d9946a5eed8940e8636a8beb227
BLAKE2b-256 63e0efff757bb9cb9581bf95a3a0f68b344bc2553c50c4964d582302689d0830

See more details on using hashes here.

File details

Details for the file ndi_python-5.1.1.5-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

  • Download URL: ndi_python-5.1.1.5-cp39-cp39-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 5.2 MB
  • Tags: CPython 3.9, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.12

File hashes

Hashes for ndi_python-5.1.1.5-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b12c441b90aeaa8191dc7ab47ec660d45c3f7ea2c854f99fc6377ed110deb8d2
MD5 640fee7277f132f23b160e4d82926a4c
BLAKE2b-256 45079cbc6c8de0af5388b99dd4050b63f6c3d814a3c71ff684953f1d7fc03e46

See more details on using hashes here.

File details

Details for the file ndi_python-5.1.1.5-cp38-cp38-macosx_11_0_arm64.whl.

File metadata

  • Download URL: ndi_python-5.1.1.5-cp38-cp38-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 5.2 MB
  • Tags: CPython 3.8, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12

File hashes

Hashes for ndi_python-5.1.1.5-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d3fae0731b7e832367f5d513db888b07ec9f0eeee49f9798e6b1e0d6c77f2d26
MD5 c0f6bbbef38ea8e3b49100edc22a9b01
BLAKE2b-256 954254c4e4421b1299fa54fdbc1f6d43c9ec7200779c3e6162d4dd3c28f3406d

See more details on using hashes here.

File details

Details for the file ndi_python-5.1.1.5-cp37-cp37m-macosx_11_0_arm64.whl.

File metadata

  • Download URL: ndi_python-5.1.1.5-cp37-cp37m-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 5.2 MB
  • Tags: CPython 3.7m, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.11

File hashes

Hashes for ndi_python-5.1.1.5-cp37-cp37m-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bf56d273d781b6bf673b6e67e84a6ab34c65083477c4cc5a920f84b3d9ce29bd
MD5 197e29497dafb508eadf37e23b91223d
BLAKE2b-256 2e9e8916160375b8a1a736ef7399cf9028a368f3595ee0fb915817632654f855

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page