Skip to main content

How to add multiple audio streams to the AVI file?

Product: Video Edit SDK .Net. Engine: VideoEditCore (Windows only).

To make multiple output streams, you must add source audio to the timeline using a special way.

Sample code

var videoSource = new VideoSource("video1.avi");
var audioSource1 = new AudioSource("video1.avi");
var audioSource2 = new AudioSource("audio2.mp3");

VideoEdit1.Input_AddAudioFile(audioSource1, targetStreamIndex: 0);
VideoEdit1.Input_AddAudioFile(audioSource2, targetStreamIndex: 1);

Required redists

How to install required redists or deploy them to the user's PC?

Visit our GitHub page to get more code samples.