The PCM (pulse-code modulation) established for CD-DA discs is not very compact and doesn't suit for delivering music via the net. That is why developers now are working on a number of complex compression algorithms. All of them differ very much in the sound quality, that is why a user has always to make a choice of an algorithm for its favorite music to be recorded.
FLAC stands for Free Lossless Audio Codec, an
audio format similar to MP3, but lossless, meaning that audio is
compressed in FLAC without any loss in quality. This is similar to how
Zip works, except with FLAC you will get much better compression
because it is designed specifically for audio, and you can play back
compressed FLAC files in your favorite player.
If you have a “WAV” or “riff” file you can do lossless
compression with this command:
|
Metadata can be added to the FLAC file with something like:
|
is a fully Open, non-proprietary, patent-and-royalty-free, general-purpose compressed audio format for high quality (44.1-48.0kHz, 16+ bit, polyphonic) audio and music at fixed and variable bitrates from 16 to 128 kbps/channel. This places Vorbis in the same class as audio representations including MPEG-1 audio layer 3, MPEG-4 audio (AAC and TwinVQ), and PAC.
Ogg Vorbis provides a high-quality format for you to listen to your music. Its file size is also smaller than MP3 and getting smaller as development continues. Vorbis already enjoys widespread player support and should be compatible with several major hardware players soon. With Vorbis, you can listen to your music with higher quality in less space. Also, using Vorbis means your player and encoder choices aren't bound by licensing terms.
(man page ) is part of the “vorbis-tools” package. This program is a complete encoder that creates Ogg Vorbis compressed soundfiles. OggEnc input files must currently be 16 or 8 bit PCM WAV, AIFF, or AIFF/C files. Files may be mono or stereo (or more channels) and sampling rates between 8kHz and 56kHz. Call oggenc with the “-h” flag or see the oggenc man page for more details.
This will create a “sample.ogg” output soundfile:
|
|
|
Metadata (title and author can be added to an Ogg file as follows:
|
(man page ) is also part of the “vorbis-tools” package. In essence it is simple command line Ogg Vorbis decoder and player. You can play your “ogg files” with ogg123 with:
|
|
According to the patent owners it is not possible to independently create an mp3 encoder without infringing on the patents. Recently they have started to crack down on open source projects that have created free alternatives to the commercial mp3 encoders. Read more about this in the lame (http://www.sulaco.org/mp3) and bladeenc (http://bladeenc.mp3.no/) web sites
A couple of widely available encoders are available in PlanetCCRMA, but are only intended to be used as tools for learning about mp3. If you encode your own mp3s you should own a properly licensed encoder.
(man page) means, Lame Ain't an MP3 Encoder and is an educational tool to be used for learning about MP3 encoding. The goal of the LAME project is to use the open source model to improve the psycho acoustics, noise shaping and speed of MP3. Run lame with the “–help” option or see the lame man page for more details.
Audio files created with Lame can be played back by popular MP3 players such as Xmms mpg123 or madplay.
For example a command for a fixed bit rate jstereo 128kbs encoding, highest quality :
|
|
The Lame –preset switches are designed to provide the highest possible quality. These are continually updated to coincide with the latest developments that occur and as a result should provide you with nearly the best quality currently possible from LAME.
To activate these presets:
--preset standard
This preset should generally be transparent to most people on most music and is already quite high in quality.
--preset extreme
If you have extremely good hearing and similar equipment, this preset will generally provide slightly higher quality than the standard mode.
--preset insane
This preset will usually be to much for the common user and most situations, but if you must have the absolute highest quality with no regard to filesize, this is the way to go.
--preset kbps
Using this preset will usually give you good quality at a speci- fied bitrate. Depending on the bitrate entered, this preset will determine the optimal settings for that particular situa- tion. While this approach works, it is not nearly as flexible as VBR, and usually will not attain the same level of quality as VBR at higher bitrates.
For example to use the extreme preset you will use this command:
|
|
|
© Copyright 2001-2022 CCRMA, Stanford University. All rights reserved.
Created and Mantained by Juan Reyes