Skip to content

About

No description, website, or topics provided.

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Xebia Hilversum studio: ATEM image upload

This tool uploads studio images to the media pool of the Blackmagic Design ATEM switchers at Xebia Hilversum. Run it manually or configure Windows Task Scheduler to run it after sign-in.

Important: Uploading replaces the stills in the matching slots. If a replaced still is being used in a live production, the output can change.

Requirements

  • 64-bit Windows with Blackmagic ATEM Software Control installed.
  • A network connection to each ATEM switcher.
  • Each switcher set to a 3840 x 2160 video mode.
  • PNG images available locally, including any OneDrive files, at 3840 x 2160.

Setup

  1. Copy this folder to the studio computer.
  2. Copy atem-settings-example.txt to atem-settings.txt in the same folder.
  3. Edit atem-settings.txt to give each switcher its address and image folder.

Use unquoted values. For example:

ATEM_1_ADDRESS=192.0.2.1
ATEM_1_IMAGE_FOLDER=C:\path\to\first-images
ATEM_2_ADDRESS=192.0.2.2
ATEM_2_IMAGE_FOLDER=C:\path\to\second-images

Replace these example values with the studio's actual settings. The local settings file is ignored by Git. Add a numbered address and folder pair for each switcher. Existing settings with ATEM_ADDRESS or ATEM_ADDRESSES and one shared IMAGE_FOLDER also continue to work, but cannot be mixed with numbered settings.

Image names and slots

Name each image setup_1.<slot>.png. The number determines its media pool slot:

Image Slot
setup_1.1.png 1
setup_1.12.png 12

The studio switcher has 40 still slots. Gaps are allowed; slots without a matching image are left unchanged. Other filenames are ignored. Images numbered beyond the switcher's available slots are skipped and logged. Duplicate slot numbers and slot zero cause an error.

Check and upload

Open PowerShell in the folder containing the script. First run a check:

.\Upload-AtemStills.ps1 -CheckOnly

This checks the connection, image dimensions, and current slot names without uploading on each configured switcher. When it succeeds and it is safe to replace the stills, run:

.\Upload-AtemStills.ps1

The script automatically starts 64-bit Windows PowerShell in MTA mode when needed. Your execution policy must allow the script to run; contact your administrator if an enforced policy blocks it.

Switchers are processed one at a time using their configured folders. If one fails, the script still tries the others and reports an error at the end. Without -Switcher, all configured switchers are processed. To select one:

.\Upload-AtemStills.ps1 -Switcher 1
.\Upload-AtemStills.ps1 -Switcher 2 -CheckOnly

The number matches the numbered settings, such as ATEM_2_ADDRESS. For a shared ATEM_ADDRESSES list, it is the position in that list. Use -Switcher all to explicitly select every switcher. The scheduled task processes all switchers unless its arguments are changed.

Optional: run after sign-in

No scheduled task is created automatically. To use the prepared task export, copy it to the studio computer, open Task Scheduler, and select Import Task. The export is enabled, with a 30-second delay and the script at C:\git\atem-automation\Upload-AtemStills.ps1. Before importing, replace both REPLACE account placeholders in the XML with the studio Windows account. Review the account and path before saving the imported task.

Alternatively, create a task manually:

  1. Add an At log on trigger for the intended Windows user with a 30-second delay. The network and OneDrive images must be ready by then.
  2. Add a Start a program action with:
    • Program: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
    • Arguments: -NoProfile -MTA -ExecutionPolicy Bypass -File "C:\ATEM-Automation\Upload-AtemStills.ps1"
  3. Replace C:\ATEM-Automation with the actual folder path and save the task.

The task replaces matching stills each time it runs. The image folder must be available to the Windows user running the task. The execution policy argument applies to the task's PowerShell process; enforced Group Policy still takes precedence.

Troubleshooting

Progress, skipped images, and errors are recorded in %LOCALAPPDATA%\AtemAutomation\upload.log. The script retries each switcher connection for approximately two minutes. If a run fails partway through, earlier slots may already have been updated; check the log before retrying.

About

No description, website, or topics provided.

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages