Movie Maker Timeline SDK Control

Movie Maker Timeline SDK Control

Platform : Windows 10, Windows 8, Vista, Windows 7, XP

Video Editor SDK that allows users Drag & Drop to arrange clip orders, edit movies, apply effects & transitions with C++ , C#, VB.net , VB, Delphi, VFP, MS Access. 

Popular Solution Go   Back

C# - How to mixing audio tracks on Movie Maker Timeline Control?

Step 1: To install the Movie Maker Timeline Control SDK, begin by launching the setup file (http://www.viscomsoft.com/demo/moviemakersetup.exe). Select the desired installation folder for the Movie Maker TImeline Control and continue with the installation on your development computer.

Step 2: Create New Visual C# Project, select Windows Forms Application.

Step 3: In Solution Explorer, select References ,right click mouse to select Add Reference... 

Select COM tab, select  Movie Maker Timeline Control SDK
 
 
Step 4: Now you will see the Movie Maker Timeline Control on Toolbox,  Drag the Movie Maker Timeline Control from Toolbox to form.
 

 

Step 5: Add following code in Button1 click event.

private void button1_Click(object sender, EventArgs e)
{

axTimelineControl1.SetScale((float)0.1);

string strVideo1 = "C:\\yourfolder\\yourvideo1.mpg";

float iVideo1Duration = axTimelineControl1.GetMediaDuration(strVideo1);

axTimelineControl1.AddVideoClip(axTimelineControl1.GetVideo1TrackIndex(), strVideo1, 0, iVideo1Duration, 0);

axTimelineControl1.AddAudioClip(axTimelineControl1.GetAudio1TrackIndex(), strVideo1, 0, iVideo1Duration, 0, 1);

}

Step 6: Add following code in Button2 click event. it will set the audio track 2 to visible. set the effect, transition, text, image track to invisible. Assume the duration of video 1 is 30 second. so the duration of strAudio2 same as strVideo1.  Increase the volume of strAudio2 to 200%.

private void button2_Click(object sender, EventArgs e)
{
axTimelineControl1.SetTrackVisible(axTimelineControl1.GetAudio2TrackIndex(), 1);
axTimelineControl1.SetTrackVisible(axTimelineControl1.GetEffectTrackIndex(), 0);
axTimelineControl1.SetTrackVisible(axTimelineControl1.GetTransitionTrackIndex(), 0);
axTimelineControl1.SetTrackVisible(axTimelineControl1.GetTextTrackIndex(), 0);
axTimelineControl1.SetTrackVisible(axTimelineControl1.GetImageTrackIndex(), 0);
string strAudio2 = "C:\\yourfolder\\youraudio.mp3";
axTimelineControl1.AddAudioClip(axTimelineControl1.GetAudio2TrackIndex(), strAudio2, 0, 30, 0,(float)2.0);
}

Step 7: Add following code in Button3 click event. 

private void button3_Click(object sender, EventArgs e)
{
axTimelineControl1.Play();
}

Step 8: Finally, Click Add Video button,  Add Audio Track2 button, then click Play button.