Skip to main content

Companion / Stream Deck

Use a Stream Deck (Mini, Standard, XL or +) — or any surface that Bitfocus Companion supports — to control cameras and gimbals, trigger presets and run automations in Middle Control. Middle Control, on macOS or Windows, works with the Companion ecosystem through the Middle Control Companion module.

Companion module 4.0.2

The features marked module 4.0.2 below need the Middle Control module 4.0.2 or newer, which runs on Companion 3.5 or later. Everything else also works with older versions of the module.

1. Download and Install Bitfocus Companion​

Download the latest version of Bitfocus Companion from the official website. The Middle Control module 4.0.2 needs Companion 3.5 or later; older versions of the module run on Companion 3.2 or later.

You could start building your own button layout from scratch, but to speed things up we provide four pre-built Companion pages:

Companion Pages

2. Install the Companion Custom Pages​

2.1 Download the Latest Pages​

To use the custom Companion pages, you will need:

  • Middle Control version 2.3.0 or later
  • Bitfocus Companion version 3.2 or later

2.2 Import the Custom Pages into Companion​

Import the four .companionconfig files into Companion via the Import / Export tab → Import Configuration. Choose empty destination pages. You can rearrange or delete buttons later as needed.

Stream Deck

During import, Companion will detect that these pages require an ATEM instance. Companion will ask whether to create a new ATEM instance or link an existing one.
We recommend linking your existing ATEM instance so your own camera names appear, instead of generic IDs. This also allows you to see which cameras are On Air and In Preview.

Stream Deck

3. Configure the Middle Control Instance​

  1. In Companion's Connections tab, search for Middle Control and add the Middle Things connection.
  2. In its settings, pick your computer in the Middle Control dropdown. Middle Control instances on your network appear on their own within about 10 seconds, by name with Middle Control 3.3.0 or later. Re-open the settings to refresh the list. (Module 3.3.0 or later.)
  3. Or choose Manual IP Address and type the Target IP: 127.0.0.1 when Companion and Middle Control run on the same computer — the simplest and recommended workflow — otherwise the IP address of the computer running Middle Control.
  4. With Middle Control 4.1 or later, tick Monitor all cameras to get the status of every camera in Middle Control, not just the selected one — see Per-camera variables. Leave it off with older versions of Middle Control. (Module 4.0.2.)

The module talks to Middle Control over TCP port 11580. The connection turns green once Middle Control is reachable. If it stays yellow, check the IP address, that Middle Control is running, and that no firewall blocks port 11580.

4. Press the Buttons!​

With Middle Control running, pressing camera selection buttons on your Stream Deck should immediately reflect in Middle Control.

What you can do​

  • Cameras: select the active camera; focus, iris, white balance, tint, gain / ISO, shutter, ND, contrast, saturation, and black / mid / white levels; Auto Focus, Auto Iris, Auto WB, Auto Gain and Auto Shutter; zebra, false colour, focus peaking and colour bars.
  • Gimbal & PTZ: pan, tilt and zoom, their speeds and absolute positions; roll, slider, recenter, sleep / wake, auto-calibration and Active Track on an APC-R gimbal. With Middle Control 4.1 or later, the pan / tilt speed accepts tenths below 10 % (e.g. 2.5) for slow, precise moves. (Module 4.0.2.)
  • Presets: recall, save and stop presets, and set the transition duration — for one camera with Middle Control 4.1 or later (module 4.0.2). Set Preset Transition Easing sets the easing (module 4.0.2, Middle Control 4.0.3 or later; easing needs an APC-R with firmware 2.0 or later). On Recall/Save Preset, Settings to recall follows the tick boxes of Middle Control's Presets page; pick Custom to choose pan / tilt, zoom, focus, iris, ISO / gain and white balance for that button only (module 4.0.2, Middle Control 4.1 or later).
  • Recording: start and stop on the selected camera or on all cameras at once.
  • Windows: open and close the Live View window of the selected camera, and the Multi View window . (Module 4.0.2, Middle Control 4.0.3 or later.)
  • ND filter: step it with the ND increase / decrease actions, or set it directly with Set ND Filter — clear, 1/4 to 1/1024, or a custom value for a Sony variable ND. (Module 4.0.2.)
  • Automations : one Automations action starts, stops and adjusts Camera Shake, Zoom Loop and Presets Sequence, and picks the active sequence bank (1–7). Leave Camera ID empty for the selected camera. (Module 3.4.0 or later.) See the Automations page.
  • ATEM Link on / off, Hue and Sharpness steps, and exact Hue or Luma Mix values with Set CCU Value. (Module 4.0.2, Middle Control 4.1 or later.)
  • Camera extras: menu navigation, MultiSelector and Custom C1–C6 buttons.
  • Custom commands: Send a Custom Command (SDK) sends any command of the External API.
  • Feedbacks light your buttons with the live state: selected camera, recording, camera and APC-R connection, active preset, autofocus, digital zoom, ND filter, running automations, and — with Middle Control 4.1 or later — Battery level (at or below a percentage) and Power source (mains or battery) (module 4.0.2). Several feedbacks take an optional Camera ID; with Monitor all cameras on, so do the autofocus, digital zoom, active preset, ND filter, automation, battery level and power source feedbacks.
  • Status buttons: the Status (buttons) preset category has a ready-made Battery button for the selected camera. It shows the battery text, turns green on mains power and orange at or below 20 %. (Module 4.0.2, Middle Control 4.1 or later.)

Focus, three ways​

With Middle Control 4.0.4 or later (module 4.0.2):

  • Focus in / out behave like the app's own focus button: one press is one fine step, and repeated presses ramp up.
  • Focus in / out — hold on press, with Focus stop on release, moves the lens for as long as the button is held. Ready-made buttons are in the Focus (buttons) preset category.
  • Focus by a Fixed Step moves the lens by an exact fraction of its travel: 0.002 is the finest step, 0.01 the step of the plain focus actions before Middle Control 4.0.4.

Stream Deck + encoders​

The Encoders (Streamdeck+) preset category has ready-made dials for Focus, Iris, ISO / Gain, White Balance, Shutter, Tint, Contrast, Saturation, Black Level, Pan / Tilt Speed and Zoom Speed. Turn a dial to step the value; where shown, press it to toggle the matching Auto mode. With Middle Control 4.0.4 or later, the Focus dial follows how fast you turn it.

Gimbal pan, tilt, roll and zoom aren't offered as dials: they start a continuous move that needs a stop on release, which a dial doesn't send. Use buttons for gimbal moves.

A few tips from the Middle Things team
  • Long-press Focus / Iris / WB / Tint / ISO buttons for faster adjustments.
  • On the Presets page, long-press a preset for 3 seconds to save the current gimbal/camera state into that preset.
  • After selecting a camera, you can add an AUX/Output: Set Source action to automatically route that camera to an ATEM AUX output.
  • Use Stop Running Preset with a Camera ID to halt a running preset on that camera only, without affecting the others (module 3.3.0 or later).
  • On Panasonic CX camcorders (AG-CX350 and siblings), use the WB + / − and Shutter + / − buttons: these bodies accept no absolute white balance or shutter value over IP, so the absolute WB and shutter actions have no effect on them. They work with ATEM Link on or off.

5. Variables​

Variables expose the live state of the selected camera and gimbal. Use them in button text or triggers, for example $(middlecontrol:CAM_var) — middlecontrol is your connection's label.

Camera values are read from your live cameras — no ATEM required. The mid and white levels come from the ATEM, which also covers cameras that are only on its SDI inputs. A variable shows - while its value isn't available (module 4.0.2). The battery variables need Middle Control 4.1 or later; they show - with older versions, and on cameras that report no battery (PTZ cameras, for example).

This unlocks powerful automation workflows — the possibilities are wide open!

VariableDescription
$(middlecontrol:CAM_var)Selected Camera Number
$(middlecontrol:PTS_var)Pan/Tilt Speed
$(middlecontrol:ZS_var)Zoom Speed
$(middlecontrol:SS_var)Slider Speed
$(middlecontrol:PRES_D_var)Preset Transition Speed
$(middlecontrol:PRES_E_var)Preset Transition Easing (0-100)
$(middlecontrol:PRES_C_var)Preset Completion (%)
$(middlecontrol:aWB_var)White Balance
$(middlecontrol:aTINT_var)Tint
$(middlecontrol:aISO_var)Gain (dB)
$(middlecontrol:aI_var)Iris
$(middlecontrol:aND_var)ND Filter (CLEAR or denominator, e.g. 64)
$(middlecontrol:aSHUT_var)Shutter
$(middlecontrol:aCONT_var)Contrast
$(middlecontrol:aSAT_var)Saturation
$(middlecontrol:aBLACKLEV_var)Black Level (Luma)
$(middlecontrol:aMIDLEV_var)Mid Level (Luma)
$(middlecontrol:aWHITELEV_var)White Level (Luma)
$(middlecontrol:aF_var)Focus Value
$(middlecontrol:aBAT_var)Battery Level (%)
$(middlecontrol:aPWR_var)Power Source (Battery / AC)
$(middlecontrol:BAT_var)Battery Text — 85 %, AC, or 85 % (AC) with a battery in while on mains
$(middlecontrol:aPAN_var)Gimbal Absolute Pan Value
$(middlecontrol:aTILT_var)Gimbal Absolute Tilt Value
$(middlecontrol:aROLL_var)Gimbal Absolute Roll Value
$(middlecontrol:aZOOM_var)Gimbal Motor Zoom Value
$(middlecontrol:aSLIDER_var)Slider Value
$(middlecontrol:REC_var)Recording Status (0/1)
$(middlecontrol:AF_var)AutoFocus Status (0/1)
$(middlecontrol:DZOOM_var)Digital Zoom Status (0/1)
$(middlecontrol:PRESET_ACTIVE_var)ID of Currently Running Preset (0 = none active)
$(middlecontrol:LIST_CAM_CON_var)Currently Connected IP Camera List(CAM IDs)
$(middlecontrol:LIST_REC_var)Currently Recording Camera List (CAM IDs)
$(middlecontrol:LIST_APCR_CON_var)Currently Connected APC-R List (CAM IDs)
$(middlecontrol:SHAKE_RUN_var)Automation: Camera Shake Running (0/1)
$(middlecontrol:ZLOOP_RUN_var)Automation: Zoom Loop Running (0/1)
$(middlecontrol:PRESETSEQ_RUN_var)Automation: Presets Sequence Running (0/1)
$(middlecontrol:SEQ_BANK_var)Automation: Active Presets Sequence Bank

Per-camera variables​

With Monitor all cameras on (module 4.0.2, Middle Control 4.1 or later), every camera in Middle Control also gets its own variables, named cam<N>_… after its Camera ID — for example $(middlecontrol:cam3_rec) for camera 3. A camera that drops off the network keeps its variables; they go away only when you remove the camera from Middle Control.

VariableDescription
cam<N>_recRecording (0/1)
cam<N>_afAutoFocus (0/1)
cam<N>_dzoomDigital Zoom (0/1)
cam<N>_presetActive preset (0 = none)
cam<N>_shakeCamera Shake running (0/1)
cam<N>_zloopZoom Loop running (0/1)
cam<N>_presetseqPresets Sequence running (0/1)
cam<N>_ndND filter
cam<N>_wbWhite Balance
cam<N>_tintTint
cam<N>_isoGain (dB)
cam<N>_irisIris
cam<N>_shutterShutter
cam<N>_focusFocus
cam<N>_batBattery (%)
cam<N>_powerPower source (Battery / AC)
info

For a full walkthrough of the Bitfocus Companion integration, watch our complete video tutorial:
https://www.youtube.com/watch?v=2hw2kcGJ4Tg