View Full Version : animating sound
renegat_pl
16th June 2007, 15:23
I have tried to make the sound out effect with the animate command, however it doesn't seem to work. Could anyone help me with my problem?
audio = WavSource("E:\Divx\winuae\gra.avi")
multichannel_amp = Animate(audio,100,500,"AmplifydB", 3, 3, 3,-4, -4, -4)
klip=AudioDub(klip, audio)
gzarkadas
16th June 2007, 23:57
Animate does not correctly handles changing soundtracks and its use for that operation is not recommended (by the official docs).
You will have to do it with the runtime filters, ScriptClip and ConditionalReader. Below is a recipy that I didn't test, but I think it will work for you; if not tweak it a little.
1. Create a text file (say "db.txt", at the same folder as the script) with the following content:
type float
default -4.0
R 0 100 3.0
I 100 500 3.0 -4.0
2. Then use the following commands after audio = ...:
ScriptClip(audio, "AmplifyDB(last, MyDBInput, MyDBInput, MyDBInput)")
ConditionalReader("db.txt", "MyDBInput")
multichannel_amp = last
3. Continue with the rest of your script's commands.
renegat_pl
17th June 2007, 00:48
That does not look nice.
It seems that it is much easier to fade out the sound in audacity separately and then mix it with the video.
gzarkadas
17th June 2007, 02:17
For a one time shot, definetly yes (specialized apps always win ;) ). If however you intend to make this frequently, using the .avs script will save you time.
IanB
17th June 2007, 07:29
Sorry, none of the frame based mutation functions currently implement audio processing. Make a RFE.
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.