- Posts: 2
- Joined: Sun Jul 05, 2020 3:25 pm
- Real Name: Ben Sharp
Hi Ben,
The genlock reference input impacts the timing of the SDI output. To get a callback close to the timing of the reference, you will need to schedule playback, as per high level overview in section 2.4.2 in the DeckLink SDK Manual. You can just output unmodified (black) frames created by IDeckLinkOutput::CreateVideoFrame.
Choose an output video mode close to the reference input mode. You can check status item bmdDeckLinkStatusReferenceSignalMode to determine the detected reference mode. After video output is enabled, but before scheduled playback is started, wait on status flag bmdDeckLinkStatusReferenceSignalLocked to ensure output is locked to reference.
Implement the IDeckLinkVideoOutputCallback interface to provide a frame-level callback on IDeckLinkVideoOutputCallback::ScheduledFrameCompleted. This callback will occur soon after the frame boundary of the output signal.
Regards
Cameron