Select video input (configure crossbar) in Video Capture SDK .Net

Related 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.​

1. Initialize video capture device crossbar

CrossBarFound = VideoCapture1.Video_CaptureDevice_CrossBar_Init();

2. Get available inputs, fill combobox (WinForms sample)

VideoCapture1.Video_CaptureDevice_CrossBar_ClearConnections();

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

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

VideoCapture1.Video_CaptureDevice_CrossBar_ClearConnections(); 
VideoCapture1.Video_CaptureDevice_CrossBar_Connect(cbCrossbarVideoInput.Text, "Video Decoder", true);
Please contact support to get help with this tutorial. Visit our GitHub page to get more code samples.
VisioForge © 2006 - 2021