Movie Maker Timeline Control

SetVideoTrackResolution Method

Description

Set the resolution of the video track. This value may affect the output and preview quality.

Syntax

Public Function SetVideoTrackResolution Method( _
   ByVal iWidth as integer, _
   ByVal iHeight as integer
   )

 

Parameter

iWidth
    the width of video

iHeight
    the height of video



No Return Value
 
 

Example

Visual Basic Syntax
'assume the input video resolution is 720x480
TimelineControl1.SetVideoTrackResolution 720, 480
TimelineControl1.OutputType=2
TimelineControl1.MP4Width =1280
TimelineControl1.MP4Height =768
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")