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
MichaelKoh  
#1 Posted : Tuesday, October 1, 2019 10:56:59 PM(UTC)
MichaelKoh

Rank: Member

Groups: Registered
Joined: 7/17/2017(UTC)
Posts: 17
Man
Singapore
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.
admin  
#2 Posted : Tuesday, October 1, 2019 11:05:08 PM(UTC)
admin

Rank: Administration

Groups: Administrators
Joined: 1/13/2010(UTC)
Posts: 5,211
Man
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
MichaelKoh  
#3 Posted : Tuesday, October 1, 2019 11:14:09 PM(UTC)
MichaelKoh

Rank: Member

Groups: Registered
Joined: 7/17/2017(UTC)
Posts: 17
Man
Singapore
Location: Singapore

I am sure the shortcut is correct. When I change the function to setvolume and value to 0, it works.
ggudnason  
#4 Posted : Tuesday, October 1, 2019 11:20:38 PM(UTC)
ggudnason

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.
admin  
#5 Posted : Tuesday, October 1, 2019 11:25:13 PM(UTC)
admin

Rank: Administration

Groups: Administrators
Joined: 1/13/2010(UTC)
Posts: 5,211
Man
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.
thanks 1 user thanked admin for this useful post.
talrmd on 4/22/2020(UTC)
MichaelKoh  
#6 Posted : Tuesday, October 1, 2019 11:55:01 PM(UTC)
MichaelKoh

Rank: Member

Groups: Registered
Joined: 7/17/2017(UTC)
Posts: 17
Man
Singapore
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.
admin  
#7 Posted : Wednesday, October 2, 2019 12:39:11 AM(UTC)
admin

Rank: Administration

Groups: Administrators
Joined: 1/13/2010(UTC)
Posts: 5,211
Man
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.

D.R. Lynn  
#8 Posted : Sunday, August 2, 2020 8:31:43 AM(UTC)
D.R. Lynn

Rank: Member

Groups: Registered
Joined: 8/2/2020(UTC)
Posts: 15
United States
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?
dpinka  
#9 Posted : Friday, February 26, 2021 4:49:50 AM(UTC)
dpinka

Rank: Newbie

Groups: Registered
Joined: 2/26/2021(UTC)
Posts: 1
United States
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.
on_call  
#10 Posted : Sunday, April 11, 2021 2:23:18 AM(UTC)
on_call

Rank: Newbie

Groups: Registered
Joined: 12/15/2018(UTC)
Posts: 7
United States

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.
thanks 1 user thanked on_call for this useful post.
ryanlehms on 4/27/2021(UTC)
doggy  
#11 Posted : Sunday, April 11, 2021 2:54:38 AM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 293 times
Was thanked: 955 time(s) in 790 post(s)
Originally Posted by: on_call Go to Quoted Post


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 !!
raugert  
#12 Posted : Wednesday, April 14, 2021 12:26:37 AM(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)
@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
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.