Class Audio::MPEG::Encoder
In: ext/icanhasaudio/audio_mpeg_decoder.c
lib/icanhasaudio/mpeg/encoder.rb
Parent: Object
File Decoder Decoder Encoder WAV OGG MPEG Audio dot/f_3.png

call-seq:

   encoder.init_params

Initialize lame parameters.

Methods

Constants

WAV_ID_RIFF = 0x52494646
WAV_ID_WAVE = 0x57415645
WAV_ID_FMT = 0x666d7420
WAV_ID_DATA = 0x64617461
IFF_ID_FORM = 0x464f524d
IFF_ID_AIFF = 0x41494646
IFF_ID_AIFC = 0x41494643
IFF_ID_COMM = 0x434f4d4d
IFF_ID_SSND = 0x53534e44
IFF_ID_NONE = 0x4e4f4e45
IFF_ID_2CBE = 0x74776f73
IFF_ID_2CLE = 0x736f7774
VBR_OFF = 0
VBR_NORMAL = 2
VBR_FAST = 4
MODE_NAMES = [ [ 'stereo', 'j-stereo', 'dual-ch', 'single-ch' ], [ 'stereo', 'force-ms', 'dual-ch', 'single-ch' ], ]

Attributes

logger  [RW] 
pcmbitwidth  [RW] 

Public Class methods

Public Instance methods

Set the ID3 album.

Set the ID3 artist.

Get the mpeg compression ratio

Flush the encoder

Get the force ms flag

Set the ID3 genre.

Set the input samplerate

Initialize lame parameters.

Get the mpeg mode

Get the mpeg quality

Get the mpeg version

Get the number of channels

Set the number of channels

Get the number of samples

Set the number of samples

Get the out samplerate

Print the encoder configuration.

Print the lame internals. For debugging

Set the ID3 title.

Set the ID3 track.

Strictly enforce the vbr min bitrate. Normally it will be violated for analog silence.

Get the hard minimum flag.

Get the maximum vbr bitrate.

Set the maximum vbr bitrate.

Get the minimum vbr bitrate.

Set the minimum vbr bitrate.

Get the VBR quality. 0 = highest, 9 = lowest

Set the VBR quality. 0 = highest, 9 = lowest

Get the type of VBR.

Set the type of VBR. Must be VBR_OFF, VBR_NORMAL, or VBR_FAST

Write the vbr tag

Write the VBR tags to outfile

Set the ID3 year.

[Validate]