API Reference

Videohub

class pydeohub.Videohub(ip: str)

Blackmagic Design Smart Videohub Control Interface

Parameters

ip (str) – Local IP Address of the Smart Videohub

protocol_version: str

Videohub Ethernet Protocol Version (ex. ‘2.7’)

model: str

Model of Videohub (ex. ‘Blackmagic Smart Videohub 20 x 20’)

unique_id: str

Generated unique identifier for each Videohub, persists across boots and network changes. (ex. ‘7C2E0DA4BFC0’ )

inputs: int

Number of Video Inputs (sources)

outputs: int

Number of Video Outputs (destinations)

input_labels: List[str]

Custom labels for inputs, keyed by source (input).

output_labels: List[str]

Custom labels for outputs, keyed by destination (output).

routing: List[int]

Videohub routing keyed by destination (output)

route(destination: int, source: int) None

Re-route a single input to a single output.

Parameters
  • destination (int) – Output Destination Identifier

  • source (int) – Input Source Identifier

bulk_route(routes: List[Tuple[int, int]]) None

Re-route multiple outputs at once, new routes take effect simultaneously. An error in any route change may fail all otherwise valid changes.

Parameters

routes (List[Tuple[int, int]]) – A list of (destination, source) video output/input identifiers.

input_label(source: int, label: str) None

Re-label a video input source.

Parameters
  • source (int) – Input Video Source Identifier

  • label (str) – New Label

output_label(destination: int, label: str) None

Re-label a video input source.

Parameters
  • destination (int) – Output Video Destination Identifier

  • label (str) – New Label