Use a DeckLink IP device to capture or send SMPTE ST 2110 over Ethernet. Video SDK uses the current DeckLink integration (bmd.new_api=true). Check that the selected input or output exposes the ethernet connection before applying the settings below.
Configure the IP address of the DeckLink port separately from the stream addresses. For capture, set up the incoming video, audio and ancillary flows in your DeckLink-compatible controller before reading frames. bmd.ip_config configures the port and the output address settings on the card. See DeckLink SMPTE 2110 IP flows for the sender and receiver controls provided by Blackmagic Design.
Choose a network configuration
Set bmd.network_adapter_idx first. It is a zero-based Ethernet connector index and defaults to 0. With a driver that only exposes the older DeckLink configuration interface, use index 0. Set bmd.ip_config to the full JSON string or the absolute path of a JSON file. The top-level network2110 object is required.
To obtain the local network settings through DHCP, use this JSON:
{
"network2110": {
"DHCP": true,
"PTPFollowerOnly": true,
"PTPUseUDPEncapsulation": true
}
}For a static port address, set DHCP to false. This example also sets the output stream destinations. Replace the example addresses and PTP settings with values for your network. Omit the output address fields when the configuration is only for capture.
{
"network2110": {
"DHCP": false,
"ipAddress": "192.0.2.10",
"subnetMask": "255.255.255.0",
"gateWay": "192.0.2.1",
"VideoOutputAddress": "239.100.10.10",
"AudioOutputAddress": "239.100.10.11",
"AncillaryOutputAddress": "239.100.10.12",
"PTPFollowerOnly": true,
"PTPUseUDPEncapsulation": true,
"PTPDomain": "0"
}
}| JSON field | Type | Use |
|---|---|---|
DHCP |
Boolean | Enable DHCP on the selected port. If omitted, the configuration uses the static branch. |
ipAddress, subnetMask, gateWay
|
Strings | Static IPv4 network settings of the card port. |
PrimaryDNS, SecondaryDNS
|
Strings | Optional DNS addresses for static configuration. |
VideoOutputAddress, AudioOutputAddress, AncillaryOutputAddress
|
Strings | Destination addresses used by the card for the three output flows. |
AudioOutputChannelOrder |
String | Output audio channel-order value used by DeckLink for ST 2110-30. |
PTPFollowerOnly, PTPUseUDPEncapsulation
|
Booleans | Precision Time Protocol (PTP) follower-only mode and UDP encapsulation. Missing flags are treated as false. |
PTPPriority1, PTPPriority2, PTPDomain
|
Strings | Optional PTP priorities and domain. Quote these values in JSON. |
The JSON loader applies the static address, DNS, output addresses and audio channel order only when DHCP is false. It applies the PTP settings in either mode. Omitted or empty string fields are left alone. The adapter index applies to the port settings and output addresses. PTP and audio channel order are passed to the device without an adapter index.
Configure capture
Start with a fresh MFLive or MLive instance. Select the device without starting capture, set the Ethernet input, then set the adapter and IP configuration. The SDK reads the saved configuration when Ethernet capture starts. In these fragments, bmdIndex and bmdName identify the input you selected from the SDK's device list, and rxConfig is your JSON or its file path.
MFormats
mfLive.PropsSet("device.start_at_deviceset", "false");
mfLive.DeviceSet(eMFDeviceType.eMFDT_Video, bmdIndex, "");
mfLive.PropsSet("line-in", "ethernet");
mfLive.PropsSet("bmd.network_adapter_idx", "0");
mfLive.PropsSet("bmd.ip_config", rxConfig);
// Start pulling frames from mfLive.MPlatform
live.DeviceGetCount(0, "video", out _);
live.PropsSet("object::device.start_at_deviceset", "false");
live.DeviceSet("video", bmdName, "");
live.PropsSet("device::line-in", "ethernet");
live.PropsSet("device::bmd.network_adapter_idx", "0");
live.PropsSet("device::bmd.ip_config", rxConfig);
// Start your live source or connect it to the receiver.To apply a new capture configuration, configure it before capture starts again. See Initialization of a device for input for device enumeration and capture.
Configure output
Select the DeckLink output and its Ethernet connection before sending frames. Set txConfig to the JSON or file path for the output.
MFormats
mfRenderer.DeviceSet(eMFDeviceType.eMFDT_Video, bmdIndex, "");
mfRenderer.PropsSet("line-out", "ethernet");
mfRenderer.PropsSet("bmd.network_adapter_idx", "0");
mfRenderer.PropsSet("bmd.ip_config", txConfig);
// Send frames with ReceiverFramePut.MPlatform
renderer.DeviceSet("renderer", bmdName, "");
renderer.PropsSet("device::line-out", "ethernet");
renderer.PropsSet("device::bmd.network_adapter_idx", "0");
renderer.PropsSet("device::bmd.ip_config", txConfig);
// Start output with ObjectStart on the connected source.See Initialization of a device for output for the complete output flow. If input and output use the same physical port, use consistent port settings.
Set a single field
In MFormats, use the property name as listed below. In MPlatform, add device::. Choose the adapter before setting a property that acts on the port.
| Property | Value | Scope |
|---|---|---|
bmd_2110.DHCP |
true, false
|
Selected port. Capture and output objects. |
bmd_2110.ipAddress, bmd_2110.subnetMask, bmd_2110.gateway
|
IPv4 strings | Static settings of the selected port. Capture and output objects. |
bmd_2110.PrimaryDNS, bmd_2110.SecondaryDNS
|
IPv4 strings | Selected port. Capture and output objects. |
bmd_2110.VideoOutputAddress, bmd_2110.AudioOutputAddress, bmd_2110.AncillaryOutputAddress
|
Destination addresses | Output flows on the selected port. The setters are available on capture and output objects. |
bmd_2110.AudioOutputChannelOrder |
Channel-order string | Device-wide output channel order. Capture and output objects. |
bmd_2110.PTPFollowerOnly |
true, false
|
Device-wide PTP setting. Separate setter on the capture object. |
Use bmd.ip_config for the other PTP fields. When the SDK starts the device, fields present in the JSON can overwrite individual settings. Use one configuration method for each field.
Verify the connection
After the device reads the configuration, query bmd_2110.ip_config.state and bmd_2110.ip_config.string with PropsGet. Add device:: in MPlatform. The state is valid for parsed JSON and not_valid for invalid JSON. The string holds the parsed JSON when available. Verify that the file is readable and that it contains network2110. A valid state confirms parsing. Check the port separately to confirm that the settings took effect.
Statistic under stat
|
Meaning |
|---|---|
bmd_2110.EthernetLink |
Disconnected, Connected (unbound) or Connected (bound). |
bmd_2110.IPAddress |
Current local address of the selected adapter. |
bmd_2110.SubnetMask |
Current mask of the selected adapter. |
bmd_2110.GatewayIPAddress |
Current default gateway of the selected adapter. |
The device updates these values during capture or output. On MFLive, read the capture plug-in's statistics with PropsGet("device::stat::bmd_2110.EthernetLink", …). On MFRenderer, use PropsGet("stat::bmd_2110.EthernetLink", …). On MLive and MRenderer, use device::stat::bmd_2110.EthernetLink. A bound link indicates the port has an IP address. Check for frames at the receiver to verify the media flow.
See also Blackmagic Design devices properties.
Still have questions?
Tell us what didn’t work or what you’d like clarified.