VideoEdit Gold ActiveX Control

Delphi Developer Getting Started

Assuming that you have already run the VideoEdit Gold ActiveX Control installation program and started Delphi, the next step is to install VideoEdit Gold ActiveX in Delphi. Select Component/Import ActiveX Control/VideoEdit Gold ActiveX Control


Click Install button to import the activex ,otherwise when you run the videoedit gold 's delphi sample , you will see following screen.

Select Control

Click on the VideoEdit Gold ActiveX Control icon and draw it on the form. A rectangle should appear on the form.

Add Button in Form, add this line of code, which will automatically convert video file into VCD format.

procedure TForm1.Button1Click(Sender: TObject);
var iDur: Double;
begin
    VideoEdit1.OutputType :=0;
    iDur := VideoEdit1.GetFileDuration('c:\a.mpg');
    VideoEdit1.InitControl;
    VideoEdit1.AddVideo('c:\a.mpg',0,iDur,0);
    VideoEdit1.AddAudio('c:\a.mpg',0,iDur);
    VideoEdit1.Save('c:\outputvcd.mpg');
end;
end.