VideoEdit Gold ActiveX Control

Save2MP3 Method

Description

Export MP3 file from media file and save to specific sample rate, bit per sample.

 

Syntax

Public Function Save2MP3 ( _
   ByVal strOutputFile as string, _
   ByVal iMP3SampleRate as long , _
   ByVal iMP3BitRate as integer
) As Boolean

 

Parameters

strOutputFile
    the output mp3 file name

iMP3SampleRate
    sample rate, in samples per second (hertz), e.g. 22050, 44100

iMP3Bitrate
    the value of mp3 audio bit rate.

 8 bps
 16 bps
 24 bps
 32 bps
 40 bps
 48 bps
 56 bps
 64 bps
 80 bps
 96 bps
 112 bps
 128 bps
 144 bps
 160 bps
 192 bps
 224 bps
 256 bps
 320 bps

 

Return Value

Return true - successful
Return false - Failed
 

Example

[Visual Basic Syntax]
VideoEdit1.AudioChannels=2    ' stereo
VideoEdit1.InitControl
result = VideoEdit1.AddAudio(txtAudio1, txtAudioStart1, txtAudioStop1)
result =VideoEdit1.Save2MP3("c:\\test.mp3",  44100, 128)