Movie Maker Timeline Control

Movie Maker Timeline 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, Delphi, VFP, Access. 

Popular Solution Go   Back

C# - How to add transition between the video clips on Movie Maker Timeline Control ?

Step 1: To install the Movie Maker Timeline Control SDK, begin by launching the setup file ( 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 two button, one ListBox on form. Change the text of button1 to "Add Video Clips", Change the text of button2 to "Play".

 Step 6: Add following code in Form load event, it add all transitions to ListBox and set the video track 2 to visible.

private void Form1_Load(object sender, EventArgs e)

  string strTransition;
  int iCount;
  iCount = 0;
 strTransition = "Empty";

  while (strTransition != "")
  strTransition = axTimelineControl1.GetDESTransition(iCount);

    if (strTransition != "")
     iCount = iCount 1;


 if (listBox1.Items.Count > 0)

    listBox1.SelectedIndex = 0;

  axTimelineControl1.SetTrackVisible(axTimelineControl1.GetVideo2TrackIndex(), 1);



Step 7: Add following code in Button1 click event. it will add strVideo1 to video track1, add strVideo2 to video track2, Add transition between the video clips, the duration of transition is 2 second.

private void button1_Click(object sender, EventArgs e)


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);

string strVideo2 = "C:\\yourfolder\\yourvideo2.mp4";

float iVideo2Duration = axTimelineControl1.GetMediaDuration(strVideo2);

float iVideo2Start = iVideo1Duration - 2;

axTimelineControl1.AddVideoClip(axTimelineControl1.GetVideo2TrackIndex(), strVideo2, iVideo2Start, iVideo2Start iVideo2Duration, 0);

axTimelineControl1.AddAudioClip(axTimelineControl1.GetAudio1TrackIndex(), strVideo2, iVideo2Start, iVideo2Start iVideo2Duration, 0, 1);

axTimelineControl1.AddTransition(axTimelineControl1.GetTransitionTrackIndex(), listBox1.Text, iVideo1Duration-2, iVideo1Duration, "", 2, 0);


Step 8: Add following code in Button2 click event. 


Step 9: Finally, Click Add Video Clips button, then select the transition item in listbox, then click Play button.