Copyright © 2006-2019 MultiMedia Soft

EncodeFormats.MP2.CBR property

Previous pageReturn to chapter overviewNext page

Type

long for Visual Basic

long for Visual C++

 

 

Remarks

The Constant Bitrate (CBR), expressed in bits per second (bps), used for MP2 format during recording or CD ripping sessions.

 

This is the default encoding mode, and also the most basic. In this mode, the bitrate will be the same for the whole file. It means that each part of your mp3 file will be using the same number of bits. The musical passage being a difficult one to encode or an easy one, the encoder will use the same bitrate, so the quality of your mp3 is variable. Complex parts will be of a lower quality than the easiest ones. The main advantage is that the final files size won't change and can be accurately predicted.

 

Note that, depending upon the chosen input format (fixed to 44100 Hz, 16 bits, Stereo for CD ripping sessions), not all of the bitrate values are supported by Lame.

The full list of Constant Bitrates, supported by a certain native input format, can be obtained using the EncodeFormats.MP2.GetTwoLameEncodingBitratesCount and EncodeFormats.MP2.GetTwoLameEncodingBitrate methods.

The full list of Constant Bitrates, supported by a certain frequency, can be obtained using the EncodeFormats.MP2.GetTwoLameEncodingBitratesCountEx and EncodeFormats.MP2.GetTwoLameEncodingBitrateEx methods.

 

This property is used only in the following situations:

 

During a recording session if the EncodeFormats.ForRecording property is set to ENCODING_FORMAT_MP2 and the EncodeFormats.MP2.EncodeMode property is set to MP2_ENCODE_CBR (for further details see the How to perform a recording session section).

During a CD ripping session if the EncodeFormats.ForCdRipping property is set to ENCODING_FORMAT_MP2 and the EncodeFormats.MP2.EncodeMode property is set to MP2_ENCODE_CBR (for further details see the How to perform a CD ripping session section).

During an exporting session if the EncodeFormats.ForExporting property is set to ENCODING_FORMAT_MP2 and the EncodeFormats.MP2.EncodeMode property is set to MP2_ENCODE_CBR (for further details see the How to export a recorded sound section).

 

This property is the same as entering the -b <kbps> setting inside the Appendix D - TwoLame command line.

 

For further details about encoding in MP2 format refer to the MP2 object section.

For further information about available encoding formats see the EncodeFormats object.