How to add multiple audio streams to the AVI file using Video Edit SDK .Net?

Related products
Video Edit SDK .Net
To make multiple output streams, you must add source audio to the timeline using a special way.

Sample code

string video = @"x:\video1.avi";
string audio1 = @"x:\video1.avi";
int audio1TargetStream = 0;
string audio2 = @"x:\audio2.mp3";
int audio2TargetStream = 1;

VideoEdit1.Input_Clear_List();
VideoEdit1.Input_AddVideoFile(video, -1, -1, -1, VFVideoEditStretchMode.Letterbox, 1.0);
VideoEdit1.Input_AddAudioFile(audio1, -1, -1, -1, string.Empty, 0, audio1TargetStream0, tbSpeed.Value / 100.0);
VideoEdit1.Input_AddAudioFile(audio2, -1, -1, -1, string.Empty, 0, audio2TargetStream1, 1.0);
Please contact support to get help with this tutorial. Visit our GitHub page to get more code samples.
abstract 2abstract 1abstract 3
logo
VisioForge © 2006 - 2021