Recently I overheard one friend say to the other “My CD Player can play 12 and a half hours of music from a single CD.” “Well you must be joking” said the other, and continued saying “That's impossible as a CD can hold 74 minutes of music only”. Their conversation went on, each trying to disprove the other. Unfortunately I didn't manage to hear the end of it.
Well Folks, what I want to say is that you can compress 12 and a half hours of music or even more depending on the quality you need , as compared to a measly 74 minutes of audio in a normal audio CD. You can also compress music without any loss in quality and in a manner that it can be completely reversed, however the file sizes will be a little large as compared to the other formats.
We will take a look at the popular formats used for compressing music, how to compress music ourselves and how to play the compressed music. The information given in this article is for the information of the readers.
According to the current line of thought it is legal to make any compressed music only from CD's that you legally own and that you cannot sell or give away the resulting files. The reader must note that He/She has to observe relevant copyright and other laws.
Although all efforts have been made to provide accurate and relevant information, any user of the information contained herein must note that they are making use of the information contained here at their own risk.The music formats that I will discuss here are MP3, WMA, Ogg Vorbis, Monkey's Audio.
MP3
This format is a proprietory format owned by Fraunhofer IIS and Thomson Multimedia. It dates back to 1992 when the Fraunhofer institute in Germany invented a format called as Moving Pictures Expert Group Layer 3 Shortened to MPEG-1 Layer 3 and finally as it gained popularity it got shortened to MP3.This format is the most widely supported format in hardware devices as well as across all Operating Systems.
Ogg Vorbis (www.vorbis.com , www.xiph.org )
Ogg Vorbis is a completely open, patent-free, professional audio encoding and streaming technology with all the benefits of Open Source. The music encoded in this format sounds slightly better than mp3 at the same bit rates. Its Popularity has soared ever since the Fraunhofer institute decided to get tough on the MP3 standards patents and is now charging a fee for use of MP3 technology in decoders also.
Windows Media Audio (www.microsoft.com/windows/windowsmedia/default.asp)
This format is next in popularity to MP3.Windows Media Audio ( WMA) is Microsoft's proprietory standard for Compressed Music. This format is made only for windows users, although recently, a command line media player has been released for linux which supports wma playback.One of the major differences with the other formats is that WMA supports Digital rights Management (DRM) which means that distribution of copyrighted wma's is severely restricted.
Monkey's Audio
Monkeys Audio is a what you would call a loss-less compressor, that is when a monkeys audio file is played the resulting rendition is exactly the same (quality wise) as the original. The process is reversible in the fact that if we reconvert the monkeys audio file to wav the resulting wav file will be exactly the same as the original wav file, unlike Mp3, WMA, Ogg vorbis and other similar compression methods which are lossy compression methods ,( like the .jpg format for digital photos) where sound information is discarded in the name of higher compression rates. The downside to Monkeys approach is that compression ratios will very low as compared to the lossy compression methods.
The table below illustrates the file sizes, compression ratios and compression time for various audio file formats.
| ||||
Audio Format | File Extension | Compression Ratio | File size in MB | Encoding Time (minutes: Seconds) |
MP3 | .mp3 | 11.0 to 1 (9%) | 5.80 | 1:05 |
Ogg Vorbis | .ogg | 11.5 to 1 (8.7%) | 5.57 | 2:59 |
Wma | .wma | 0.9 to 1 (9.1%) | 5.85 | 0:36 |
Monkeys Audio | .ape | 1.7 to 1 (60%) | 38.2 | 2:00 |
NOTE:
(i) The original wav file used for encoding was 63.9 MB having a Playing time of 6:20
(ii) All the compressed files were encoded at a bitrate of 128 Kbps, Except for monkeys audio where normal compression was used.
(iii) During Playback of the ogg file in winamp 2.xx it showed a variation from 116 to 138 kbps. This may sometimes result in a slightly smaller file size than MP3 (As in the present Case)
(iv)The above results will vary with your system configuration, and encoder used. For example the P4 3.06 Ghz is reported to encode a 51 MB Wav file in just 17 seconds.
We will now take a look at the various Encoders which we can use to make compressed music.
Encoding Using CDEX (http://www.cdex.n3.net)
When you put the CD in the drive you will get the list of files displayed. The files have been named by default names such as Track One, Track Two, Etc.
If you convert the Songs to MP3 by the using these file names, after you have converted several files you will not know which file corresponds to which song. Hence it is preferable to rename according to the name of the song. Firstly enter the name of the album. Next Enter the type of the song by selecting from the provided list. Then select the track, press F2 and enter the name of the song .Repeat the process for all tracks. The names of the songs can also be entered by opening CD player in Windows 95/98 and entering the names of the tracks , artist name, album name etc. in the playlist. If you want to save the track names entered in CDEX in CD player then select the option save to CD player.ini under the CDDB menu.
Settings
The Settings are under the Options Menu. The settings we can be select are
(i)Under General Settings where one can specify the type of tag which you want to use namely ID3 v1 or ID3 v2. ID3 v2 tags allow for longer names than ID3 v1.
(ii) Under File Names We can specify the format for the name of the file i.e if we want the track no., artist name etc included in the file name. We can also specify the folder for the Recorded tracks (Tracks which are directly converted to MP3) and the folder for Wav to MP3 Conversion .
(iii)Under CD-ROM Settings we can select the CD-ROM drive to be used if we have more than one CD-ROM drive.
(iv)Under Encoder we can select the format of compressed music by selecting the Encoder that we require . For example For Converting to MP3 we have to select Lame encoder And for Ogg files we select the Ogg vorbis encoder. For the MP3 format we can select between constant bit rate and variable bit rate. However some hardware players will not recognize the variable bit rate format hence it is best to stick to constant bit rate and the bitrate should be maximum of 192Kb for the same reason. The Bitrate required for excellent quality in the MP3 format is 192 kilobits. A balance between good quality and optimum file size is obtained at 128. For the Lame encoder the settings should be
Version : MPEG1 BitRate Minimum 128 kilobits mode Stereo Quality (Normal q = 5) VBR method disabled .
The files produced by compressing to Ogg format are slightly better sounding than those obtained by compressing to MP3 format at the same bitrates.
Converting To MP3
Select the tracks by using the option Select All from the Edit Menu.
Then Go To Convert Menu and select Extract CD tracks to MPEG Files. The conversion process Will start and then the MP3 files Will be written in the default directory. There is another way of starting the conversion process. Simply click on the icon CD to MP3 to the right of the screen and the process will start .
We can also Have a two stage conversion process firstly we can convert the tracks to wav files and then the wav files can be converted to MP3 format. In this two stage process the quality of MP3 files obtained is slightly better than that obtained when we convert directly to MP3 format . However In this two stage process we will have to write the ID3 tags manually.
We can also use CDEX as a player for compressed music by selecting Tools --> Play Files. However I would not recommend you to use CDEX for music playback.
NOTES :
(1) Another conversion software based on CDEX is Neo-Audio.The latest version includes support for monkeys audio and has plugins for Winamp 2.xx.
Conversion using dB Power Amp Music Converter (http://www.dbpoweramp.com/dmc)
Before I describe now to use the dBPowerAMP Music converter I will tell you the files that are to be downloaded. Firstly you have to download dBPowerAMP which is currently in it's 12 version. It is about 1.5 MB in size. Note that the MP3 facility is a time limited demo facility in the free version to to licensing issues.
Besides that I suggest that you download the following codecs for dBPowerAMP : dBpowerAMP-codec-ogg (500 KB) , dBpowerAMP-codec-wmav9 (263 KB), dBpowerAMP-codec-MonkeysAudio (392 KB). Besides this you have to download Windows Media Audio 9 System Codecs which are about 3.78 MB in size.
From Start --->Programs ---->dBpowerAMP Music Converter ,select dMC Audio CD input. You will see the tracks listed as before . To rename the tracks follow the same procedure as previously explained . Clicking on the arrow next to Rip throws up the following options:
1)Rip Audio From CD
2)Rip with Options (Right Button Click)
3) Rip To
4)Compressions settings
Clicking on Rip Audio From CD starts the ripping process for the selected tracks (By default all tracks are selected ) and the audio tracks are ripped to the format and bit rate which is currently selected.
Clicking on Rip with Options(Right Button Click) enables us to select the compression format and/or the compression settings as well as the output directory. The above two options can also be had by clicking on the Rip icon and Right Button Click on the Rip icon respectively.
Clicking on Rip To displays the various compression codecs installed in our computer and we can select the default compression option from here.
Clicking on Compressions settings displays the currently selected compression setting and which can also be changed from here as per our requirement .
Right clicking the Rip icon enables us to set the various options for ripping the audio tracks .
If we wish to rip to MP3 , we have to select MP3 (lame) as the compression codec,bitrate of 128 ,160, or 192 as per our requirement and the output folder. The channels should be stereo and frequency 44100 Hz .
Clicking on Advanced Options enables us to change between constant and variable bit rate as well as alter the Quality settings.It is recommended that you select Constant Bitrate and High quality.
Clicking on the Options icon on the toolbar enables us to select the CD-ROM drive that you wish to use and also enable slow accurate ripping ( Which is very useful in case your CD has scratches) .