- Posts: 7
- Joined: Wed Apr 12, 2017 9:14 am
- Location: Surrey, UK
You can determine whether a video frame has been created from a valid input signal by checking for the absence of the bmdFrameHasNoInputSource[1] flag (via IDeckLinkVideoFrame::GetFlags()[2]).
For example (from the Linux 'Capture' SDK sample):
- Code: Select all
...
if (videoFrame->GetFlags() & bmdFrameHasNoInputSource)
{
printf("Frame received (#%lu) - No input signal detected\n", g_frameCount);
}
...
Cheers,
-nick
[1] 2.7.6 Frame Flags
[2] 2.5.5.5 IDeckLinkVideoFrame::GetFlags method