ATEM API v7.2 Camera Control Read Focus issue

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

Benoit Leloutre

  • Posts: 1
  • Joined: Wed Jan 10, 2018 10:01 am

ATEM API v7.2 Camera Control Read Focus issue

PostWed Jan 10, 2018 10:35 am

Hi,
I'm trying to get the focus value of a BMD studio camera 4k through the atem API.
In C# with BMDSwitcherAPI, I'm using:
...
IBMDSwitcher m_switcher;
...
cameraControl = (IBMDSwitcherCameraControl)m_switcher;
...
double focus;
cameraControl.GetFloats(cameraID, 0, 0, 1, out focus);


The range value from the whitepaper is [0-1] in 16 bits.
But If I do an autofocus with the atem software interface and after I do a get in C#, I receive "-13,6745...." If I turn the lens ring to minimum, I get the same value, to maximim, the same value.

But if I set a value like "0,83" with cameraControl.SetFloats(cameraID, 0, 0, 1, 0.83), my focus is good.

In other words, I want to read the focus value after turning the physical ring of the lens through the atem API.
Offline

Cameron Nichols

Blackmagic Design

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

Re: ATEM API v7.2 Camera Control Read Focus issue

PostFri Jan 19, 2018 4:44 am

Hi Benoit,

The camera control interface is unidirectional from ATEM to Studio Camera via SDI. As such, the focus value read back via IBMDSwitcherCameraControl is what has been locally stored on the ATEM.

Regards
Cameron
Offline
User avatar

Nick Shaw

  • Posts: 237
  • Joined: Thu Sep 13, 2012 11:43 am
  • Location: London, UK

Re: ATEM API v7.2 Camera Control Read Focus issue

PostTue May 04, 2021 3:51 pm

Is this the case for all cameras? It would appear to be so. I can programmatically set the focus on my Pocket 4K via my ATEM Mini, and I can trigger an autofocus. But if I then use getFloats, I get the last value I sent manually, not the result of the autofocus. Is it not possible to read this information?
Workflow Consultant, London UK
LUTs and LUT plugins
www.antlerpost.com
Offline
User avatar

Xtreemtec

  • Posts: 5387
  • Joined: Wed Jan 02, 2013 11:48 am
  • Location: The Netherlands

Re: ATEM API v7.2 Camera Control Read Focus issue

PostTue May 04, 2021 4:20 pm

Still the case!! Atem is ALWAYS master and so there is no data readback available when using the Atem setup.

On bluetooth it might be different.. But the SDI and HDMI control protocols do NOT support any feedback...
Daniel Wittenaar .:: Xtreemtec Media Productions ::. -= www.xtreemtec.nl =-
4K OBV Trailer, ATEM TVS HD, 4M/E Broadcast Studio 4K, Constelation 8K, Hyperdeck Studio 12G, Ursa Broadcast 4K, 4K fiber converters with Sony Control

Return to Software Developers

Who is online

Users browsing this forum: No registered users and 6 guests