Video to show it in action

There were a few challenges to overcome. You can’t launch ffplay directly from PowerShell, it must be launched from a cmd window (I gave up trying but it might still be possible). You can’t run ffplay with its -fs (full screen) switch because PowerShell keeps jumping on top of the player. I tried all sorts of tricks to try an minimize and resize windows. In the end I had to go with some code to switch the ffplay window to maximize.

Ingrediants

  • MS Surface (I’m just using an i5)
  • USB 3 capture device (Elgato Cam Link in this demo, I also have use Ultrastudio)
  • HDMI Multiview output from ATEM
  • Ffplay (comes with ffmpeg)
  • .cmd file to launch ffplay
  • PowerShell.exe script (link below)
  • Switcherlib.dll to interface between PowerShell and the ATEM
    https://1drv.ms/f/s!ApGpqMMpRLhikJVpf1M_JytL0tI7vQ

Recipe

Place .ps1 script, switcherlib.dll and ffplay in same directory (right click on each file and check properties for un-block option)

Create shortcut on desktop to PowerShell with the following command and set the “Start In” location to match where you have saved the files.
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -command “& c:\tools\scripts\atem_multiview.ps1”

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.