Rank: Member
Groups: Registered
Joined: 7/17/2017(UTC) Posts: 17 Location: Singapore
|
This function does not seem to work on an audio file anymore. I have to use SetVolume without the fading effect. However, it is still working on an AudioInput input.
|
|
|
|
Rank: Administration
Groups: Administrators
Joined: 1/13/2010(UTC) Posts: 5,211 Location: Gold Coast, Australia Was thanked: 4297 time(s) in 1523 post(s)
|
Hi Michael,
Double check the shortcut has been configured correctly. I just tested adding an MP3 file and setting up two shortcuts:
1. Value set to 100,1000 (go up to 100% taking 1000 milliseconds) 2. Value set to 0,1000 (go down to 0% taking 1000 milliseconds)
While playing the audio file I pressed the two shortcuts and the volume faded up and down as expected.
Regards,
Martin vMix
|
|
|
|
Rank: Member
Groups: Registered
Joined: 7/17/2017(UTC) Posts: 17 Location: Singapore
|
I am sure the shortcut is correct. When I change the function to setvolume and value to 0, it works.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 11/21/2014(UTC) Posts: 41
Thanks: 4 times Was thanked: 8 time(s) in 7 post(s)
|
I have had the problem that setvolumefade stopped working for an input and also asin a trigger. The only way to get it to work was to change the input. And selecting the same audiofile I was working with.
|
|
|
|
Rank: Administration
Groups: Administrators
Joined: 1/13/2010(UTC) Posts: 5,211 Location: Gold Coast, Australia Was thanked: 4297 time(s) in 1523 post(s)
|
Note that SetVolumeFade requires two parameters not one as is the case of SetVolume. It requires a volume *comma* then the milliseconds. If one of both of these are missing it will not work.
|
1 user thanked admin for this useful post.
|
|
|
Rank: Member
Groups: Registered
Joined: 7/17/2017(UTC) Posts: 17 Location: Singapore
|
I have screen captured how the shortcut works on my audioinput but when I change to a mp3, it does not work. I have been using this feature for quite a while. After .68 patch, it stopped working. I am using .69...also not working.
|
|
|
|
Rank: Administration
Groups: Administrators
Joined: 1/13/2010(UTC) Posts: 5,211 Location: Gold Coast, Australia Was thanked: 4297 time(s) in 1523 post(s)
|
Try converting the audio file to WAV or trying a different MP3 and see if that helps. In .68 we added a fallback audio decoder in the case where some MP3 files would not play using the default Windows decoder. The fallback decoder does not currently support SetAudioFade so that might explain it.
|
|
|
|
Rank: Member
Groups: Registered
Joined: 8/2/2020(UTC) Posts: 15 Location: Chicago Thanks: 2 times Was thanked: 2 time(s) in 2 post(s)
|
trying to use SetVolumeFade with a stinger, doesn't work at all
tried it with Triggers on 2 video clips, cutting between the two, still nothing
Ideas?
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 2/26/2021(UTC) Posts: 1 Location: Madison
|
For whoever stumbles across this. It turns out that SetVolumeFade works with a period when fading in (100.3000). But only the comma works for fading out (0,3000). Funny quirk but fixed it for me.
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 12/15/2018(UTC) Posts: 7 Was thanked: 2 time(s) in 2 post(s)
|
Can anyone provide an example script for a "setvolumefade" function? I'm using the vMix Script Builder app and have had some success. (p.s. "Background" is the name of my background music input) This works fine (of course the duration value does nothing): Quote:Function=SetVolume&Duration=1000&Input=Background&Value=100
But this doesn't work at all: Quote:Function=SetVolumeFade&Duration=1000&Input=Background&Value=100
And this is a great script that I found here, which works for fading down an audio input: Quote:Dim doc As New XmlDocument() dim bgmi = Input.Find("Background")
doc.LoadXml(API.XML())
Dim node As XmlNode = doc.SelectSingleNode("/vmix/inputs/input[@title='Background']") Dim volume As Integer = node.Attributes.GetNamedItem("volume").Value Console.WriteLine(volume)
Do While volume > 0 Console.WriteLine(volume)
bgmi.Function("SetVolume", volume) volume = volume - 1 sleep(10)
Loop Any guidance would be appreciated. I'm trying to find a way to Fade Up audio, as this custom script works for now...but a reliable way to SetAudioFade would be ideal. Thanks.
|
1 user thanked on_call for this useful post.
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,219 Location: Belgium Thanks: 293 times Was thanked: 955 time(s) in 790 post(s)
|
Originally Posted by: on_call But this doesn't work at all: Quote:Function=SetVolumeFade&Duration=1000&Input=Background&Value=100
it's a good idea to check the helpfile's shortcut function references https://www.vmix.com/hel...utFunctionReference.html or even the shortcut details (settings) when creating one as it clearly explains what is needed and how Quote:SetVolumeFade:
Set volume gradually over x milliseconds. Value = Volume 0-100,Milliseconds Then it will work perfectly If still not : Value is the volume to go to comma the duration The script was created before the function was available !!
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 8/5/2017(UTC) Posts: 569 Location: Manitoba Thanks: 115 times Was thanked: 313 time(s) in 178 post(s)
|
@on_call
The following command will fade up Input named Background to 100% over 1000 milliseconds (don't put anything into Duration)
Function=SetVolumeFade&Input=Background&Value=100,1000
The following command will fade down Input named Background to 0% over 1000 milliseconds (don't put anything into Duration)
Function=SetVolumeFade&Input=Background&Value=0,1000
|
|
|
|
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