Skip to main content

Decklink devices

Products: Video Capture SDK .Net

Engines: VideoCaptureCore, VideoCaptureCoreX

DeckLink devices, developed by Blackmagic Design, are high-performance capture and playback cards used in video and television production.

They offer a range of features like high-resolution video support, multiple input and output connections, and compatibility with various software applications for video editing, visual effects, and broadcast design. DeckLink cards are renowned for their reliability and quality, making them a staple in professional video production environments.

The code samples below demonstrate how to enumerate Decklink devices and video sources using Video Capture SDK .Net.

Enumerate and add to combo box.

foreach (var device in (await VideoCapture1.Decklink_CaptureDevicesAsync()))
{
cbDecklinkCaptureDevice.Items.Add(device.Name);
}

List video formats and frame rates

// Enumerate and filter by device name
var deviceItem = (await VideoCapture1.Decklink_CaptureDevicesAsync()).Find(device => device.Name == cbDecklinkCaptureDevice.Text);
if (deviceItem != null)
{
// Read video formats and add to combobox
foreach (var format in (await deviceItem.GetVideoFormatsAsync()))
{
cbDecklinkCaptureVideoFormat.Items.Add(format.Name);
}

// If format does not exist, add a message
if (cbDecklinkCaptureVideoFormat.Items.Count == 0)
{
cbDecklinkCaptureVideoFormat.Items.Add("No input connected");
}
}

If no formats are available, no input is connected to the device.

VideoCapture1.Decklink_Source = new DecklinkSourceSettings
{
Name = cbDecklinkCaptureDevice.Text,
VideoFormat = cbDecklinkCaptureVideoFormat.Text
};

Use DecklinkSourcePreview or DecklinkSourceCapture mode to preview or capture video from the device.


Visit our GitHub page to get more code samples.