Skip to main content

Select device input (configure crossbar)

Products: Video Capture SDK .Net

Some devices like TV Tuners and video capture cards have several hardware video inputs, for example, TV input and analog video input or analog video input, SDI input, and HDMI input.

Sample code

Initialize video capture device crossbar.

var crossBarFound = VideoCapture1.Video_CaptureDevice_CrossBar_Init();

Get available inputs, and fill the combo box.

VideoCapture1.Video_CaptureDevice_CrossBar_ClearConnections();

cbCrossbarVideoInput.Items.Clear();
foreach (string s in VideoCapture1.Video_CaptureDevice_CrossBar_GetInputsForOutput("Video Decoder"))
{
cbCrossbarVideoInput.Items.Add(s);
}

Clear current settings and apply selected input to the Video Decoder.

VideoCapture1.Video_CaptureDevice_CrossBar_ClearConnections(); 
VideoCapture1.Video_CaptureDevice_CrossBar_Connect(cbCrossbarVideoInput.Text, "Video Decoder", true);

Required redists

  • Video capture redist x86 x64

Visit our GitHub page to get more code samples.