Decklink Genlock input callback?

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

vertigo

  • Posts: 2
  • Joined: Sun Jul 05, 2020 3:25 pm
  • Real Name: Ben Sharp

Decklink Genlock input callback?

PostFri Jun 03, 2022 6:31 pm

I am planning to use the genlock input of an 8k Pro Decklink card to Synchronize a c++ application.

Using the Decklink sdk, I see in the examples that there are frame arrived callbacks I can use.

Can I do this with only genlock connection? Or do I need camera feed and a reference input?

Is there a callback for the sync pulse arrival?

At its most basic, I want to trigger an event every time a new genlock pulse arrives.

Thanks!
Offline

Cameron Nichols

Blackmagic Design

  • Posts: 443
  • Joined: Mon Sep 04, 2017 4:05 am

Re: Decklink Genlock input callback?

PostFri Jun 10, 2022 5:40 am

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

Return to Software Developers

Who is online

Users browsing this forum: No registered users and 24 guests