How to made audio volume envelope effect in Video Edit SDK .Net

Related products
Video Edit SDK .Net

1. Create audio source for a specified file.

var audioFile = new VFVEAudioSource(file, segments, null);

2. Create audio volume envelope effect, 70% value used. Can be 0 - 100%.

streams.Add(new VFVEFFMPEGStream
{
                Filename = "c:\\samples\\!video.avi",
                ID = "v"
});
Add audio stream from mp3 file. ID set to "a" to add audio stream. Must be "a" for audio files.
var envelope = new VFVEAudioVolumeEnvelopeEffect(70);
Add audio stream from another AVI file. ID set to "a" to add audio stream from video file.
streams.Add(new VFVEFFMPEGStream
{
                Filename = "c:\\samples\\!video2.avi",
                ID = "a"
});

3. Add audio source with effect applied to timeline.

VideoEdit1.Input_AddAudioFile(audioFile, 0, 0, new []{ envelope });
Please contact support to get help with this tutorial. Visit our GitHub page to get more code samples.
VisioForge © 2006 - 2021