The AJA ST 2110 path described here is available in the Win32 SDK module for supported KONA IP
hardware. The x64 AJA module reports aja.ip_config.state=not_supported for ST 2110 IP configuration.
SDI and HDMI setup are separate from this path.
Prepare the JSON configuration
network2110 configures the network ports and Precision Time Protocol (PTP). Put the first SFP port
first in sfps and the second port second. The SDK uses the array order. For each port, supply
ipAddress, subnetMask, gateWay and enable.
| Direction | JSON sections | Settings |
|---|---|---|
| Capture |
receiveVideo2110, receiveAudio2110, receiveAnc2110
|
Stream name, SFP port, source and destination IP addresses and UDP ports for each flow you receive. |
| Output |
transmitVideo2110, transmitAudio2110, transmitAnc2110
|
Stream name, SFP port, local UDP port, destination IP address and destination UDP port for each flow you send. |
The enabled entries in the video arrays determine the inputs and outputs enumerated when the plug-in reads
the configuration. Include receiveVideo2110 and transmitVideo2110 when sharing the file
between capture and output. Use an empty array for an unused direction. The following example configures one port,
one receive video flow and one transmit video flow. Replace the port and stream addresses with those on your
network. For an audio or ancillary workflow, supply the relevant audio and ANC sections. The
AJA configuration attachment
shows the field names for these sections.
{
"network2110": {
"ptpDomain": 0,
"sfps": [
{
"designator": "sfp1",
"ipAddress": "192.0.2.10",
"subnetMask": "255.255.255.0",
"gateWay": "192.0.2.1",
"enable": true
}
]
},
"receiveVideo2110": [
{
"stream": "video1",
"sfp1srcIPAddress": "192.0.2.20",
"sfp1srcPort": 5004,
"sfp1DestIPAddress": "239.100.20.10",
"sfp1DestPort": 5004,
"sfp1Enable": true,
"payloadType": 96,
"enable": true
}
],
"transmitVideo2110": [
{
"stream": "video1",
"sfp1LocalPort": 5006,
"sfp1RemoteIPAddress": "239.100.20.11",
"sfp1RemotePort": 5006,
"sfp1Enable": true,
"payloadType": 96,
"ssrc": 123456,
"ttl": 32,
"enable": true
}
]
}
Select a video format matching the stream in the SDK. When a video entry omits videoFormat, the
plug-in takes the video format from the SDK configuration. The Win32 output uses the board's maximum audio channel
count. Match the audio flow to the channel count used by the application and the board.
Load the configuration before device enumeration
Set aja.ip_config in the runtime before the SDK enumerates the AJA devices. Use an absolute JSON
file path or the complete JSON string. In the examples below, factory is an existing
MFFactoryClass and file is an existing MFileClass.
MFormats
factory.PropsSet("aja.ip_config", @"C:\Configs\aja-2110.json");
// Create MFLive and MFRenderer after this call.
MPlatform
file.PropsSet("runtime::aja.ip_config", @"C:\Configs\aja-2110.json");
// Create MLive and MRenderer after this call.
The runtime value is shared by capture and output in the application. When changing the stream list, close and recreate the capture and output objects so the plug-in can enumerate the updated configuration. Close the old objects before releasing their COM references.
Select the input or output from the resulting device list. See Initialization of a device for input and Initialization of a device for output.
Check parsing and the device list
After selecting an AJA device, read aja.ip_config.state and aja.ip_config.string
with PropsGet. Use the names as written in MFormats and add device:: in MPlatform.
-
validmeans the JSON was parsed.aja.ip_config.stringcontains the parsed JSON. -
not_validmeans the JSON could not be parsed. Check that the file is readable and the JSON is valid. -
not_supportedindicates the x64 IP path is unavailable.
If there is no matching input or output, check that the corresponding video entry is enabled and that
aja.ip_config was set before enumeration. A parsed configuration still needs the appropriate
network and stream settings. See
AJA devices properties
for other settings.
Still have questions?
Tell us what didn’t work or what you’d like clarified.