logo

Live Production Software Forums


Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
snapoleon  
#1 Posted : Saturday, August 19, 2023 7:44:16 PM(UTC)
snapoleon

Rank: Newbie

Groups: Registered
Joined: 8/19/2023(UTC)
Posts: 3
France

I would like to launch a vmix preset from a powershell command.

I cant make it working. I've tried to play with the API and the localhost:8088/api/?Function=OpenPreset&Value=preset.vmix route, but it only open a windows file selector. I've tried to launch it just by putting the path of the preset.vmix into th powershell command line. It works if you have the powershell open on the instance, but when doing it remotely (through AWS SSM execute command), it does nothing.

I am running out of idea. If anyone have an idea on how to do this, i would really appreciate.
doggy  
#2 Posted : Saturday, August 19, 2023 8:21:52 PM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 5,246
Belgium
Location: Belgium

Thanks: 294 times
Was thanked: 961 time(s) in 795 post(s)
Originally Posted by: snapoleon Go to Quoted Post
I would like to launch a vmix preset from a powershell command.

I cant make it working. I've tried to play with the API and the localhost:8088/api/?Function=OpenPreset&Value=preset.vmix route, but it only open a windows file selector. I've tried to launch it just by putting the path of the preset.vmix into th powershell command line. It works if you have the powershell open on the instance, but when doing it remotely (through AWS SSM execute command), it does nothing.

I am running out of idea. If anyone have an idea on how to do this, i would really appreciate.


a API call will only work if vMix is allready running afaik!

Will need to do a Start-Process of the preset file
snapoleon  
#3 Posted : Saturday, August 19, 2023 8:33:59 PM(UTC)
snapoleon

Rank: Newbie

Groups: Registered
Joined: 8/19/2023(UTC)
Posts: 3
France

Oh sorry, Vmix is already running on the machine. Just need to load another preset.
I will try with the startProcess command, thanks
doggy  
#4 Posted : Saturday, August 19, 2023 8:35:38 PM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 5,246
Belgium
Location: Belgium

Thanks: 294 times
Was thanked: 961 time(s) in 795 post(s)
Originally Posted by: snapoleon Go to Quoted Post
Oh sorry, Vmix is already running on the machine. Just need to load another preset.
I will try with the startProcess command, thanks


is the link ( location) to the preset file correct ?
snapoleon  
#5 Posted : Saturday, August 19, 2023 8:56:07 PM(UTC)
snapoleon

Rank: Newbie

Groups: Registered
Joined: 8/19/2023(UTC)
Posts: 3
France

Yes, if I put the path (the one that I put in the Value part of the API call) in the powershell command line, it open vmix actually.

The Start-Process won't work since it runs vmix in the background, you wont be able to have the GUI :(

So i will need to make the API works I think
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.