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
LMarshRadio  
#1 Posted : Wednesday, June 17, 2020 5:46:12 PM(UTC)
LMarshRadio

Rank: Newbie

Groups: Registered
Joined: 6/17/2020(UTC)
Posts: 6
Australia

Thanks: 1 times
Hi all, have been having some trouble figuring this one out.

For my radio stations website, I want to swap between a delayed and non delayed version of our video feed, depending on if our audio is in delay or not (profanity delay)

Now the thing is, it takes the profanity delay about two minutes to build up to its maximum delay time.

I am sending commands via tcp from our playout program. How would I go about delaying the tcp command by two minutes? Could I do it with a script when the command reaches vMix?

Any help is much appreciated, cheers
DWAM  
#2 Posted : Wednesday, June 17, 2020 5:51:04 PM(UTC)
DWAM

Rank: Advanced Member

Groups: Registered
Joined: 3/20/2014(UTC)
Posts: 2,721
Man
France
Location: Bordeaux, France

Thanks: 243 times
Was thanked: 794 time(s) in 589 post(s)
use a "pause" or "sleep" command before the command... depends on your shell interface I believe...

You can also do this with vMix UTC or Panel Builder
LMarshRadio  
#3 Posted : Wednesday, June 17, 2020 5:55:57 PM(UTC)
LMarshRadio

Rank: Newbie

Groups: Registered
Joined: 6/17/2020(UTC)
Posts: 6
Australia

Thanks: 1 times
I was under the impression the sleep command works with scripting only and does not work with the API commands? That is what vMix support told me.
DWAM  
#4 Posted : Wednesday, June 17, 2020 6:03:40 PM(UTC)
DWAM

Rank: Advanced Member

Groups: Registered
Joined: 3/20/2014(UTC)
Posts: 2,721
Man
France
Location: Bordeaux, France

Thanks: 243 times
Was thanked: 794 time(s) in 589 post(s)
You mentionned sending TCP API from your playout system so it relies on this side or you could send your command to a vMix script which can start by a sleep command before executing the command...
thanks 1 user thanked DWAM for this useful post.
LMarshRadio on 6/17/2020(UTC)
LMarshRadio  
#5 Posted : Wednesday, June 17, 2020 6:49:51 PM(UTC)
LMarshRadio

Rank: Newbie

Groups: Registered
Joined: 6/17/2020(UTC)
Posts: 6
Australia

Thanks: 1 times
Ah I see, so I could send an api to call a script? Any chance you could help with the code?

It basically needs to wait 2mins after it receives the api command, then switch the input of externaloutput2

Thanks for your help!
doggy  
#6 Posted : Wednesday, June 17, 2020 7:04:11 PM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 293 times
Was thanked: 956 time(s) in 791 post(s)
Originally Posted by: LMarshRadio Go to Quoted Post
Ah I see, so I could send an api to call a script? Any chance you could help with the code?

It basically needs to wait 2mins after it receives the api command, then switch the input of externaloutput2

Thanks for your help!


check out the "scripting for dummies" post
Combined with the helpfiles especially shortcut function reference
DWAM  
#7 Posted : Wednesday, June 17, 2020 7:17:04 PM(UTC)
DWAM

Rank: Advanced Member

Groups: Registered
Joined: 3/20/2014(UTC)
Posts: 2,721
Man
France
Location: Bordeaux, France

Thanks: 243 times
Was thanked: 794 time(s) in 589 post(s)
Yes check the scripting section in the manual's shortcut function reference
We have several options to trigger a script with the API, then it's just a matter of writing your script as it should to execute your needs...
LMarshRadio  
#8 Posted : Wednesday, June 17, 2020 7:24:35 PM(UTC)
LMarshRadio

Rank: Newbie

Groups: Registered
Joined: 6/17/2020(UTC)
Posts: 6
Australia

Thanks: 1 times
Thanks guys will give this a shot tomorrow and let you know how I go, cheers
LMarshRadio  
#9 Posted : Thursday, June 18, 2020 1:32:33 PM(UTC)
LMarshRadio

Rank: Newbie

Groups: Registered
Joined: 6/17/2020(UTC)
Posts: 6
Australia

Thanks: 1 times
Hi guys, I have tried the code below and it runs, the sleep works but the external output does not change, any ideas why?

Sleep (3000)
API.Function("SetOutputExternal2""Value=Input""Input=Delay")

Thanks
LMarshRadio  
#10 Posted : Thursday, June 18, 2020 1:45:16 PM(UTC)
LMarshRadio

Rank: Newbie

Groups: Registered
Joined: 6/17/2020(UTC)
Posts: 6
Australia

Thanks: 1 times
Nevermind I figured it out, it turns out if you test a script it does not save the effects of your test when you exit the settings menu? Makes it a little hard to test if it actually works ;)
raugert  
#11 Posted : Thursday, June 18, 2020 10:52:03 PM(UTC)
raugert

Rank: Advanced Member

Groups: Registered
Joined: 8/5/2017(UTC)
Posts: 569
Canada
Location: Manitoba

Thanks: 115 times
Was thanked: 313 time(s) in 178 post(s)
You can download a Free Script Builder App from the forum if you like. It uses simple pulldown menus and builds the script for you.

https://forums.vmix.com/...r-App---Updated-02-24-20
Users browsing this topic
Guest (2)
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.