Skip to content

toontoet/blackmagic-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blackmagic CLI

A command-line utility to configure Blackmagic DeckLink devices on Linux.

This tool allows you to manage settings for DeckLink cards without a graphical user interface, which is particularly useful for headless servers.

Features

  • List available DeckLink devices.
  • Display the current duplex mode for each device/sub-device.
  • Set the duplex mode (full or half) for a specific device/sub-device.
  • List available hardware profiles for a device.

Prerequisites

  • A Linux system (tested on Ubuntu).
  • Blackmagic DeckLink card installed.
  • Blackmagic Desktop Video driver installed.
  • Blackmagic DeckLink SDK. You can download this from the Blackmagic Design website.

Compilation

A Makefile is provided for easy compilation. Before compiling, you may need to edit the Makefile to set the correct path to the DeckLink SDK include directory on your system. By default, it's set to Blackmagic DeckLink SDK 14.4/Linux/include relative to the project root.

make

This will produce an executable named bm-cli in the project root.

Installation

To install the utility for all users on the system, run:

sudo make install

This will copy the bm-cli executable to /usr/local/bin.

To uninstall:

sudo make uninstall

Usage

The utility is operated via commands like mode and profiles.

List all devices and their duplex modes

./bm-cli mode

Show duplex mode for a specific device

./bm-cli mode <device-index>

Example:

./bm-cli mode 1

Set duplex mode for a specific device

./bm-cli mode <device-index> <full|half>

The utility will automatically select the correct hardware profile to match your selection.

Example:

# Set device 1 to half-duplex
./bm-cli mode 1 half

# Set device 1 to full-duplex
./bm-cli mode 1 full

List available profiles for a specific device

This command is useful for debugging and understanding the capabilities of a particular device.

./bm-cli profiles <device-index>

Example:

./bm-cli profiles 1

The device index corresponds to the order in which the devices are detected by the system.

About

Command-line utitily to configure Blackmagic Decklink duplex mode on linux

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages