vMix Forums
»
General
»
General Discussion
»
Moderator voice over video (or any other source with audio)
Rank: Advanced Member
Groups: Registered
Joined: 11/20/2020(UTC) Posts: 74 Thanks: 13 times Was thanked: 9 time(s) in 9 post(s)
|
When a video is running and moderator wants to speak over and you´re alone and do not want or can not adjust the level of the video each time For this the following Script automatically lowers the volume of the video, when input of moderator mic receives a certain level. Explanation for this case: Input [4]: Mod Mic or Audio Desk IN -> the audio level of this Input gets monitored Input [5]: Video/Audio Source Input -> the audio level of this input gets asjusted corresponding to Mod talking/not talking Code:'1 define all variables
do while true
Dim xml as string = API.XML()
Dim x as new system.xml.xmldocument
Dim HSLvl as string = ""
x.load("http://127.0.0.1:8088/api")
'7 read out headset level
HSLvl = x.SelectSingleNode("//input[4]/@meterF1").InnerText
'9 adjust video level corresponding to headset level
if HSLvl >= "0.02"
api.function("SetVolumeFade", input:= 5, value:= "50,500")
sleep(1000)
else
api.function("SetVolumeFade", input:= 5, value:= "100,500")
end if
'console.writeline(HSLvl)
loop
Maybe you have to play a little with levels, fade times and gap between if/else (sleep(1000)) without a short gap it´s a mess :-) "'7" numbers are only for debugging as well as console.writeline...
|
|
|
|
vMix Forums
»
General
»
General Discussion
»
Moderator voice over video (or any other source with audio)
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