vMix Forums
»
General
»
General Discussion
»
Autoswitch from two sources
Rank: Newbie
Groups: Registered
Joined: 6/16/2021(UTC) Posts: 1 Location: Rada tilly
|
Hello Everybody, I´m new to vmix, I come from another software. I Was wondering how can a do this, i´ve tried with triggers, fades and overlays but can´t seem to find the way: i have two inputs, input 1 is enabled all time, with music/sound constantly playing. Input 2 is a remote camera that is enabled sometimes, with audio. I need to show at all times input 1 with audio, but when input 2 recieves audio switch to that (and mute audio input 1). When input 2 stop recieving audio switch to input 1 again
input 1 active input 2 recieves video and sound > fade to input 2 input 2 stop audio > fade to input 1
Until now i have done like this the first part, but can´t seem to find how to return to input 1:
Input2 OnAudioMeterDB6 Fade Input2 Duration 500 Delay 500 Mix 1 OnTransitionIn AudioOff Input1 Duration 500 Delay 500 Mix 1
I suppose that I need a trigger like OnAudioMeterBelowDB18? Maybe there is another way, i have very little experience programming for arduino only
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 11/20/2020(UTC) Posts: 74 Thanks: 13 times Was thanked: 9 time(s) in 9 post(s)
|
first of all you have to determine how to find out if In2 Audio is running or not. I would read out the Vmix XML file and refer to the audio meter "meterF1" You must find out if this could be the right trigger for the switching and then Code:Do
Dim xml as string = API.XML()
Dim x as new system.xml.xmldocument
x.load("http://127.0.0.1:8088/api")
AudioIn2 = (x.SelectSingleNode("//input[2]/@meterF1").InnerText)
If AudioIn2 > "whichever value is a clear signal"
api.function("Fade", input:=2, mix:=0, duration:=500)
api.function("SetVolumeFade", Input:=1, Value:=30,500)
else IF AudioIn2 < "..."
api.function("Fade", Input:= 1 , mix:=0)
api.function("SetVolumeFade", Input:=1, Value:=100,500)
End If
Loop
You could add maybe a bit of sleeps 500ms that makes it a bit smother or extend the durations in the fade or volume fade... or at least this would be my try on how to get it done
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 10/13/2012(UTC) Posts: 1,162 Location: Melbourne Thanks: 220 times Was thanked: 199 time(s) in 181 post(s)
|
The simplest way to achieve this is to use shortcuts. Look at the training videos and the help files.
|
|
|
|
vMix Forums
»
General
»
General Discussion
»
Autoswitch from two sources
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.
Important Information:
The vMix Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close