Copyright © 2006-2019 MultiMedia Soft

EncodeFormats.MP3.CBR property

Previous pageReturn to chapter overviewNext page

Type

[Visual Basic]

Public Property CBR As Int32


 

[C#]

public Int32 CBR {get; set;}


 

[C++]

public: __property Int32 CBR();

public: __property void CBR(Int32);


 

 

Remarks

The Constant Bitrate (CBR), expressed in bits per second (bps), used for MP3 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.MP3.GetLameEncodingBitratesCount and EncodeFormats.MP3.GetLameEncodingBitrate methods.

The full list of Constant Bitrates, supported by a certain frequency, can be obtained using the EncodeFormats.MP3.GetLameEncodingBitratesCountEx and EncodeFormats.MP3.GetLameEncodingBitrateEx methods.

 

This property is used only in the following situations:

 

During a recording session if the EncodeFormats.ForRecording property is set to ENCODING_FORMAT_MP3 and the EncodeFormats.MP3.EncodeMode property is set to MP3_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_MP3 and the EncodeFormats.MP3.EncodeMode property is set to MP3_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_MP3 and the EncodeFormats.MP3.EncodeMode property is set to MP3_ENCODE_CBR (for further details see the How to export a recorded sound section).

 

This property is the same as entering the -b <kbps> --cbr setting inside the Appendix A - Lame command line.

 

For further details about encoding in MP3 format refer to the EncodeMP3 class section.

For further information about available encoding formats see the EncodeFormatsMan class.