VideoEdit Gold ActiveX Control

AddAudioWithFastMotion Method

Description

Add the audio to timeline and then add fast motion effect. If the strFile is the video file, it will extract audio stream and add to timeline.You  may add this effect on preview or save to another video formats.

 

Syntax

Public Function AddAudioWithFastMotion ( _
   ByVal strFile as string, _
   ByVal iAudioStart as double, _
   ByVal iAudioStop as double, _
   ByVal iFastMotionRate as double
) As Boolean

 

Parameter

strFile
    the file path of video file

iVideoStart
    the start time of audio time you want extract

iVideoStop
    the end time of audio time you want extract

iFastMotionRate
    the value of fast motion rate, the rangle from (0.1 to 0.9).
0.1 - about add fast motion rate 10%
0.5 - about add fast motion rate 50%

Return Value

Return true - successful
Return false - Failed

 

Example

Visual Basic Syntax

VideoEdit1.VideoSampleSize = 24
VideoEdit1.InitControl
VideoEdit1.AddVideoWithFastMotion "c:\video1.mpg", 0, 10, 0, 0, 2, 0.5
VideoEdit1.AddAudioWithFastMotion "c:\video1.mpg", 0, 10, 2, 0.5
VideoEdit1.Preview