Skip to main content

Decklink devices

Products: Video Capture SDK .Net

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.

foreach (var device in (await VideoCapture1.Decklink_CaptureDevicesAsync()))
{
// add to some combobox
cbDecklinkCaptureDevice.Items.Add(device.Name);
}

Enumerate video formats and frame rate

var deviceItem = (await VideoCapture1.Decklink_CaptureDevicesAsync()).Find(device => device.Name == cbDecklinkCaptureDevice.Text);
if (deviceItem != null)
{
foreach (var format in (await deviceItem.GetVideoFormatsAsync()))
{
cbDecklinkCaptureVideoFormat.Items.Add(format.Name);
}

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.