Methods
AbortCompress Method
Abort the compression.
[Visual Basic]
Sub AbortCompress( )
Example
X360AviConverter.LoadMediaFile "c:\Source.mov"
X360AviConverter.CompressToAvi 0, "c:\Dest.avi", True
X360AviConverter.AbortCompress
CompressToAvi Method
Compress the video stream to AVI file with specified compressor.
[Visual Basic]
Function CompressToAvi( _
ByVal CompressorIndex As Integer, _
ByVal OutputFilePath As String, _
ByVal HaveAudio As Boolean _
) As Integer
Parameters
CompressorIndex
The index of the AVI compressor.
FilePath
Path of the output AVI file.
HaveAudio
Enable or disable output audio track.
Return Value
1. The input file reading error.
2. Init filter graph error.
3. Aborted action by user.
Example
X360AviConverter.LoadMediaFile "c:\Source.mov"
X360AviConverter.CompressToAvi 0, "c:\Dest.avi", True
GetAudioBalance Method
Get the balance of the audio signal.
[Visual Basic]
Function GetAudioBalance( ) As Integer
Return Value
Balance ranges from -10,000 to 10,000. The value -10,000 means the right channel is attenuated by 100 dB and is effectively silent. The value 10,000 means the left channel is silent. The neutral value is 0, which means that both channels are at full volume. When one channel is attenuated, the other remains at full volume.
Example
X360AviConverter.LoadMediaFile "c:\Source.avi"
iAudioBalance = X360AviConverter.GetAudioBalance
»
|