Camera record button pressed detection

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

kissolol

  • Posts: 5
  • Joined: Thu May 26, 2022 3:24 pm
  • Real Name: Krystof Kiss

Camera record button pressed detection

PostThu Apr 06, 2023 3:17 pm

Hi, is it possible to detect in Declink API, that record button was pressed on camera? Can you please provide me an example?
Offline

Cameron Nichols

Blackmagic Design

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

Re: Camera record button pressed detection

PostTue Apr 11, 2023 6:53 am

Hi Krystof,

If your camera supports writing to the record flag in timecode user bits, then you can access this with the following steps inside the IDeckLinkInputCallback::VideoInputFrameArrived callback:
  • With the captured video frame, call IDeckLinkVideoFrame::GetTimecode
  • On the output IDeckLinkTimecode, call IDeckLinkTimecode::GetFlags
  • Mask the timecode flags (BMDTimecodeFlags) with bmdTimecodeRecordingTriggered
The CapturePreview SDK sample provides an example of capture of timecode user bits.

Regards
Cameron

References (DeckLink SDK Manual):
[1] 2.5.5.7 IDeckLinkVideoFrame::GetTimecode method
[2] 2.5.24.4 IDeckLinkTimecode::GetFlags method
[3] 3.31 BMDTimecodeFlags
Offline

kissolol

  • Posts: 5
  • Joined: Thu May 26, 2022 3:24 pm
  • Real Name: Krystof Kiss

Re: Camera record button pressed detection

PostWed May 24, 2023 12:57 pm

Hi,

I have sony pxw-fs7m2 and cannot detect record flag, I am not getting it.
Offline

kissolol

  • Posts: 5
  • Joined: Thu May 26, 2022 3:24 pm
  • Real Name: Krystof Kiss

Re: Camera record button pressed detection

PostMon Nov 27, 2023 12:07 pm

hi, Cameron Nichols,

can you please give me list of supported cameras?

Return to Software Developers

Who is online

Users browsing this forum: No registered users and 33 guests