- Posts: 2
- Joined: Mon Nov 12, 2018 5:00 pm
- Real Name: Ben Bird
Hello all,
I'm having a hard time getting bmdDeckLinkConfigVideoInputConnection to work correctly.
This is with the latest macOS and Blackmagic drivers (macOS 10.14.1 & BM 10.11.4). I've also tried with macOS 10.11.6 and BM 10.8.6.
I've read the manual and all other relevant forum posts and I'm pretty sure I'm doing it correctly. My device (UltraStudio Mini Recorder) has SDI and HDMI connectors.
So I'm using CreateDeckLinkIteratorInstance() / Next() to find the IDeckLink device, then I'm using the following code to set the input connection:
IDeckLinkConfiguration* deckLinkConfiguration=NULL;
if (deckLink->QueryInterface(IID_IDeckLinkConfiguration,(void**)&deckLinkConfiguration)==S_OK)
{
deckLinkConfiguration->SetInt(bmdDeckLinkConfigVideoInputConnection,vic);
deckLinkConfiguration->WriteConfigurationToPreferences();
deckLinkConfiguration->Release();
}
"vic" is set to either bmdVideoConnectionSDI or bmdVideoConnectionHDMI. I then go on to get the IDeckLinkInput, select a display mode, call EnableVideoInput() and StartStreams().
What I'm finding is that the bmdDeckLinkConfigVideoInputConnection setting does not take effect immediately. If the device is currently set to SDI, and I call SetInt(bmdDeckLinkConfigVideoInputConnection,bmdVideoConnectionHDMI), the connection does not change to HDMI. If I then close the device, open it again and call SetInt(bmdDeckLinkConfigVideoInputConnection,bmdVideoConnectionSDI), then the connection will then change to HDMI. Strangely, it seems that calling SetInt() will cause whatever connection was specified at the previous call to SetInt() to take effect.
I'm looking at the Desktop Video Setup app to see what input is being selected.
Any help would be much appreciated. Is this a known problem?
Many thanks,
Ben
I'm having a hard time getting bmdDeckLinkConfigVideoInputConnection to work correctly.
This is with the latest macOS and Blackmagic drivers (macOS 10.14.1 & BM 10.11.4). I've also tried with macOS 10.11.6 and BM 10.8.6.
I've read the manual and all other relevant forum posts and I'm pretty sure I'm doing it correctly. My device (UltraStudio Mini Recorder) has SDI and HDMI connectors.
So I'm using CreateDeckLinkIteratorInstance() / Next() to find the IDeckLink device, then I'm using the following code to set the input connection:
IDeckLinkConfiguration* deckLinkConfiguration=NULL;
if (deckLink->QueryInterface(IID_IDeckLinkConfiguration,(void**)&deckLinkConfiguration)==S_OK)
{
deckLinkConfiguration->SetInt(bmdDeckLinkConfigVideoInputConnection,vic);
deckLinkConfiguration->WriteConfigurationToPreferences();
deckLinkConfiguration->Release();
}
"vic" is set to either bmdVideoConnectionSDI or bmdVideoConnectionHDMI. I then go on to get the IDeckLinkInput, select a display mode, call EnableVideoInput() and StartStreams().
What I'm finding is that the bmdDeckLinkConfigVideoInputConnection setting does not take effect immediately. If the device is currently set to SDI, and I call SetInt(bmdDeckLinkConfigVideoInputConnection,bmdVideoConnectionHDMI), the connection does not change to HDMI. If I then close the device, open it again and call SetInt(bmdDeckLinkConfigVideoInputConnection,bmdVideoConnectionSDI), then the connection will then change to HDMI. Strangely, it seems that calling SetInt() will cause whatever connection was specified at the previous call to SetInt() to take effect.
I'm looking at the Desktop Video Setup app to see what input is being selected.
Any help would be much appreciated. Is this a known problem?
Many thanks,
Ben