Movie Maker Timeline Control

SetVideoTrackFrameRate Method

Description

Set the frame rate of the video track. This value may affect the output and preview quality. Default value is 15.

Syntax

Public Function SetVideoTrackFrameRate Method( _
   ByVal iFrameRate as float
   )

 

Parameter

iFrameRate
    the frame rate of video track


No Return Value
 
 

Example

Visual Basic Syntax
'assume the input video resolution is 720x480
TimelineControl1.SetVideoTrackFrameRate 25
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")