How to get the input singal status and format?

Ask software engineering and SDK questions for developers working on Mac OS X, Windows or Linux.
  • Author
  • Message
Offline

hlm@nagasoft.cn

  • Posts: 1
  • Joined: Mon Jul 02, 2018 1:27 am
  • Real Name: LimingHuang

How to get the input singal status and format?

PostMon Jul 02, 2018 1:38 am

I'd like to get the input singal status and format. I currently use dshow to access decklink capture card, i have try the IDecklinkStatus::GetVideoInputStatus, but it not work, the videoStatus and genlockStatus always return zero. Here is my code segment:

CComPtr<IDecklinkStatus> pds;
HRESULT hr = pFilter->QueryInterface(IID_IDecklinkStatus, (void**)&pds);
if (FAILED(hr)){
return hr;
}

int videoStatus=0, genlockStatus=0;
hr = pds->GetVideoInputStatus(&videoStatus, &genlockStatus);
if (SUCCEEDED(hr)){
bHaveInput = (videoStatus == DECKLINK_INPUT_PRESENT) ? TRUE : FALSE;
}

I just create the decklink capture source, not add it into a graph.
And how to get the input format, suchas 1080i50?
Thanks.

Return to Software Developers

Who is online

Users browsing this forum: No registered users and 3 guests