Movie Maker Timeline Control

Save Method

Description

Save to AVI, WMV, MPEG, MP4, FLV, AVCHD video formats. You need set the OutputType property before call Save method.

Syntax

Public Function Save( _
   ByVal fileName as string, _
  ) as integer

 

Parameter

filename
   the path of output video file.


Return Value

    return 1 if successful.
    return -1 if the fileName is empty.
    return -2 if the transcoding failed.
    return -3 if the OutputType property out of range.

 

Example

Visual Basic Syntax
TimelineControl1.OutputType=2
TimelineControl1.MP4AspectRatio = 0
TimelineControl1.MP4AudioBitrate =96000
TimelineControl1.MP4AudioChannels = 2
TimelineControl1.MP4AudioSampleRate = 44100
TimelineControl1.MP4FrameRate = 25
TimelineControl1.MP4H264Preset = 0
 iresult = TimelineControl1.Save("c:\yourfolder\yourfile.mp4")