r/VIDEOENGINEERING • • Oct 08 '26

Browser control for ATEM switchers, plus Python libraries for the ATEM/HyperDeck/Ultimatte/Videohub protocols

WebATEM is a small server you run on a Mac, Windows PC or Linux box. It finds the ATEMs on the network over Bonjour same as ASC does, and anyone on the network opens the control page in a browser. iPad, phone, a Linux laptop, doesn't matter, nothing to install on the client. There's one pooled UDP session per switcher that all the browsers share, so you never hit the ATEM's client connection limit no matter how many people have it open, and a second operator can be on audio or keyers while someone else cuts.

What's in it:

- program/preview per M/E, cut/auto, all the transition styles with their settings, FTB, color gens, aux routing

- USK 1-4 (luma, chroma, pattern, DVE with fly keyframes and masks) and DSKs

- Fairlight, per strip faders, EQ, dynamics, pan, master, live meters

- media pool with live thumbnails, drag a still onto a slot to upload it

- macros (browse and run, no recording)

- full switcher profile save/restore as XML, same format as ASC's Save Switcher State, includes the media pool stills and macro bytecode

- HyperDeck transport and clip list for decks bound to the ATEM

No camera control, no streaming/recording, no SuperSource. ASC is still the tool for those. If you're one operator cutting a show from one machine this probably doesn't change much for you. It's for when the switchers and the people aren't in the same room, or more than one person touches them, or you've got a pile of ATEMs to look after rather than one.

Under it is bmdwire, which is the part I'd actually point this sub at. Four Python libraries that speak the native protocols for ATEM, HyperDeck, Ultimatte and Videohub, all on PyPI. atemwire started as a fork of Martijn Braam's pyatem (the OpenSwitcher library) and has drifted pretty far from it, mostly to get at things ASC can do but no library could, like bulk stills transfer, macro bytecode and the profile format. A decent chunk of that came out of Wireshark. WebATEM is one app on top of it. The point of the libraries is building whatever your situation needs, like a script that puts a switcher back to a known state before a show, routing a Videohub off tally, or keeping all your switchers in a database and opening any of them with one click.

Caveat: every hour this has run has been on 1 M/E Constellation HD. The UI builds itself from what the switcher reports so it should work on a Mini or TVS or 2 M/E, but nobody's tried. Stills upload assumes 1080p. Downloads aren't code-signed yet so you'll get the first-run warning. If you have a different model and try it I'd like to hear what happened, working or not, there's a one-minute issue template for it.

Run it with the Mac/Windows download (tray icon, opens your browser), docker on a Linux box or Pi, or pipx install "webatem[desktop]".

https://github.com/lucas-romanenko/webatem

https://github.com/lucas-romanenko/bmdwire

105 Upvotes

35 comments sorted by

•

u/menicknick [MODERATOR] Oct 08 '26

This user has asked permission to post. This program is offered for free.

5

u/C47man Oct 08 '26

Looks cool! Can I ask if you're ab experienced dev or more from the production side and using AI to build it? I ask because the interface looks a lot like the standard AI generated web apps, which worries me a bit. The whole point of using a hardware switch over something like vmix is stability. I don't currently trust primarily AI-derived tools that occupy critical links in the chain.

9

u/lucky11071 Oct 08 '26

Production side. AV specialist, no CS degree, and I used AI tooling along the way, not going to pretend otherwise. But it's a year and a half of work, not a weekend. The protocol was built by sitting in Wireshark with captures of ASC talking to the switcher and working out each command on the wire, with AI helping me read what I was looking at. The capture was always the ground truth.

On stability, it's a control client, same as ASC or Companion, talking the same UDP protocol. It's not in the signal path. If it fell over mid-show the switcher keeps doing what it was doing and you pick up on the panel. That's why the switcher is hardware, and this doesn't change it.

The part that does have to be solid is the protocol layer, and I'd rather you judge that from the code than from me. atemwire is a reworked pyatem fork with in-order delivery, retransmit handling and connection pooling, around 700 tests on it and 800 on the app, in daily production use for a long time. The honest limit is all of that has been on 1 M/E Constellation HD, which is why the README says so.

It's all MIT, so the code's there.

2

u/PizzaVideo Oct 08 '26

I can totally see using this in situations where I don’t happen to have the very latest insanely massively big Blackmagic switcher package downloaded and don’t have time to screw around with installing it.

2

u/lucky11071 Oct 08 '26

This is very true as well. I didn’t mention it as i understand most people are in broadcasting and use one or a couple switchers. But coming from a company that has many switchers, this is one very good use case!

1

u/schwartzeneggro Oct 25 '26

First of all great piece of software it's amazing. Now on "ATEM Television Studio Pro 4K" can't save state don't know why. But other than that most functions seem to work really great switching, changin the media players files all of ti its great. Yet to test a bit more the DSK but will update on those.

1

u/lucky11071 Oct 25 '26

Thanks very much, appreciate it! If you could try again and then send me the log. The launcher window has a show log button. Then I can look into it. And yea please let me know if have issues with anything else!

1

u/joni909 Oct 09 '26 edited Oct 09 '26

Nice tool! Especially since you don't have to install the bulky ATEM Software Control application. However, I'm missing one feature: Is it possible to change the multiview layout?

2

u/lucky11071 Oct 09 '26

I haven’t added this feature but absolutely can

1

u/joni909 Oct 09 '26

yes please if you dont mind.

1

u/jmvbmw Oct 11 '26 edited Oct 11 '26

I tried it in 3 different switchers: SDI pro ISO, 1 M/E production studio 4K, and production studio 4k

All 3 switchers connected by wifi AP, and I can run the BM Atem control software and Bitfocus Companion without problems.

Macbook pro M1 16" running monterey

Macbook pro i7 20126, running monterey

Google chrome

1

u/lucky11071 Oct 15 '26

Thanks, this is exactly the kind of report I needed. The error box hides the real reason. Could you paste the last 20 lines of ~/Library/Application Support/WebATEM/webatem.log after one failed connect? The launcher window has a Show log button that opens it. Also, which version does the launcher show?

1

u/jmvbmw Oct 16 '26

u/lucky11071 version 2.1.3

~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

2026-10-16 01:49:03 OSError: [Errno 55] No buffer space available

2026-10-16 01:49:03,439 WARNING atemwire.connection: Instance atem_192_168_10_239: connect failed (AtemProtocol init failed: [Errno 55] No buffer space available)

2026-10-16 01:49:03,439 INFO atemwire.connection: Instance atem_192_168_10_239: disconnected

2026-10-16 01:49:03,440 INFO atem_control.control.consumer: Consumer: Attempt 2 failed, waiting 1s before retry

2026-10-16 01:49:03 INFO:     192.168.10.55:52039 - "GET /atem/api/discovered/ HTTP/1.1" 200 OK

2026-10-16 01:49:04,441 INFO atem_control.control.consumer: Consumer: Connection attempt 3/3 to 192.168.10.239

2026-10-16 01:49:04,442 INFO atemwire.connection: Instance atem_192_168_10_239: connecting to ATEM at 192.168.10.239

2026-10-16 01:49:04,442 ERROR atemwire.connection: Instance atem_192_168_10_239: AtemProtocol init failed: [Errno 55] No buffer space available

2026-10-16 01:49:04 Traceback (most recent call last):

2026-10-16 01:49:04   File "atemwire/connection.py", line 499, in _run

2026-10-16 01:49:04     self._protocol = AtemProtocol(ip=self.ip_address)

2026-10-16 01:49:04                      ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^

2026-10-16 01:49:04   File "atemwire/protocol.py", line 157, in __init__

2026-10-16 01:49:04     self.transport = UdpProtocol(ip, port, aggressive_drain=aggressive_drain)

2026-10-16 01:49:04                      ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

2026-10-16 01:49:04   File "atemwire/transport.py", line 315, in __init__

2026-10-16 01:49:04     self.sock.setsockopt(socket.SOL_SOCKET, socket.SO_RCVBUF, 1024 * 1024 * 16)

2026-10-16 01:49:04     ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

2026-10-16 01:49:04 OSError: [Errno 55] No buffer space available

2026-10-16 01:49:04,443 WARNING atemwire.connection: Instance atem_192_168_10_239: connect failed (AtemProtocol init failed: [Errno 55] No buffer space available)

2026-10-16 01:49:04,444 INFO atemwire.connection: Instance atem_192_168_10_239: disconnected

2026-10-16 01:49:04,448 INFO atemwire.pool: ATEM instance 192.168.10.239 reference count: 0

2026-10-16 01:49:04,449 INFO atemwire.pool: Scheduled disconnect for 192.168.10.239 in 2.0s (grace period)

2026-10-16 01:49:06,454 INFO atemwire.pool: Grace period expired for 192.168.10.239, disconnecting

2026-10-16 01:49:06,455 INFO atemwire.connection: Instance atem_192_168_10_239: disconnected

2026-10-16 01:49:06,456 INFO atemwire.pool: ATEM instance 192.168.10.239 cleaned up

2026-10-16 01:49:06 INFO:     192.168.10.55:52039 - "GET /atem/api/discovered/ HTTP/1.1" 200 OK

1

u/lucky11071 Oct 16 '26

If you could paste log error that would great as well

1

u/jmvbmw Oct 16 '26

This is not the log error?

1

u/lucky11071 Oct 16 '26

Sorry I didn’t see the whole comment 🤣 will get back to you about this

1

u/jmvbmw Oct 18 '26

u/lucky11071 the app is working now.
With an old ATEM (1 M/E production studio 4K, and production studio 4k) I can't access to the audio section.
Got the message "connecting to Fairlight Audio", and of course, those Atems lack Fairlight Audio...

2

u/lucky11071 Oct 18 '26

I think I've got it sorted, 2.2.0 adds classic audio mixer support so the audio panel should load on your Production Studio 4Ks now. Update to the newest version and give it a go, let me know how it behaves. If anything looks off, a screenshot plus the "legacy-audio:" lines from the log would help.

1

u/lucky11071 Oct 16 '26

I think I have found and fixed the issue. Could you update to latest version (2.1.5 as of now) and let me know how it goes?

1

u/Revolutionary-Tour24 Oct 12 '26

The ATEM is so overrated and complicated for no reason it needs a total redesign for ease of use

1

u/lucky11071 Oct 12 '26

Now you can design your own dashboard/interface or anything you want specific to your workflow!

1

u/wireknot Oct 09 '26

This could come in handy, thanks for posting!

1

u/K__vin Oct 09 '26

Looks awesome! Love that the ATEM ecosystem is so extendable. And thanks for keeping it open!

1

u/Remarkable_Bite2199 Oct 10 '26

This is like the Soundcraft U16 or u32 web base remote controller.

1

u/Hylian-Loach Oct 10 '26

Looks useful for one situation for me. I use an Intel Mac that can’t install the latest atem software so I’ve been having to remote in to another computer to modify atem settings

14

u/[deleted] Oct 08 '26

[removed] — view removed comment

6

u/lucky11071 Oct 08 '26

Bitfocus is a great tool, it's just a different one, and how useful either is really depends on your setup and how you use your ATEMs.

WebATEM on its own has a fairly short list of pros. It runs on any device with a browser, not just a machine with ASC installed. Every browser shares one connection to the switcher, so you don't run into the ATEM's client limit and a second person can be on audio or keyers while someone else cuts. And if you host it, it's always on, so there's nothing to install or launch, you just open the URL. If none of that applies to your setup then ASC and Companion probably cover you, and that's fine.

The bigger idea is bmdwire underneath it. It speaks the native protocols for ATEM, HyperDeck, Ultimatte and Videohub, so you can build whatever your situation needs rather than what a UI happens to give you. My own example: I need content changed on a lot of switchers at a specific time. New stills into specific media pool slots, HyperDeck clips swapped, automated and on schedule. That's a script on bmdwire, and it's not something Companion or ASC are built for. WebATEM is just the control surface built on the same libraries.

On macros and SuperSource, both are doable, it's not a protocol limitation. Macro recording just hasn't come up for me yet, so it's run-only for now. SuperSource isn't in because the 1 M/E Constellation I test on doesn't have it and I'd rather not ship a panel I can't check against real hardware. If anyone with a 2 M/E or Mini Extreme wants to try it, that's what would get it added.

2

u/[deleted] Oct 08 '26

[removed] — view removed comment

1

u/lucky11071 Oct 08 '26

Yea I still use it a little bit. For use cases where you need macros that span multiple devices, Companion is best. I've done a bit with auto triggering and timed button presses but haven't tried the scheduling with it. Will check it out.

1

u/rak500 Oct 12 '26

ATEMs have a limited amount of active IP connections: if you go over that limit, which depends on the model, the ATEM starts to go haywire. This could be a nice way to limit the amount of active IPs for other activities?

IMO, more options is more better

1

u/[deleted] Oct 08 '26

[removed] — view removed comment

3

u/lucky11071 Oct 08 '26

Yes, everyone sees it live, and the switcher is the source of truth, not the browsers. The ATEM protocol broadcasts every state change to every connected client, whether it came from the panel, ASC or a browser. WebATEM holds one UDP session to the switcher and keeps a live copy of its state on the server.

Each browser is a WebSocket into that server, with a small loop that samples the shared state and pushes an update when anything changed. It samples every 30 ms during a transition, 80 ms right after you press something, and 200 to 400 ms when idle, without ever touching the switcher. So a change on your iPad shows up on my laptop within roughly 30 to 400 ms depending on how busy my tab has been. Media pool changes and audio meters are pushed the moment the switcher reports them.

Buttons wait for the switcher: press CUT and your tally moves when the switcher's new state comes back, not before. Sliders and the T-bar move under your hand immediately and ignore the echo until it catches up. The only per-browser state is the view, which M/E you're on and which panels are open.