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.
- 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.
- Copy this folder to the studio computer.
- Copy
atem-settings-example.txttoatem-settings.txtin the same folder. - Edit
atem-settings.txtto 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.
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.
Open PowerShell in the folder containing the script. First run a check:
.\Upload-AtemStills.ps1 -CheckOnlyThis 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.ps1The 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 -CheckOnlyThe 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.
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:
- 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.
- 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"
- Program:
- Replace
C:\ATEM-Automationwith 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.
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.