Free MP3 Encoding on Windows Media Player XP

Published March 4th, 2004

❦

The information in this article applies only to: Microsoft Windows Media Player for Windows XP

Windows Media Player for Windows XP has MP3 encoding plug-in support. To enable the Windows Media Player to encode MP3 files, you must download and install a compatible MP3 encoder. Windows Media Player supports only Audio Compression Manager (ACM) functions to communicate with the MP3 encoders. Therefore, the codec must be an ACM codec. I use the Fraunhaufer Pro ACM MP3 Codec. you can get it, like all other files, from my site.

MP3 Compression Only. Windows Media Player for Windows XP supports only plugging in an MP3 encoder. Using any other compression creates invalid MP3 files. Therefore, the only compression support that is provided by the codec is for MP3. The codec accept only raw data and output-compressed data.

Windows does already come with the Fraunhaufer Standard ACM MP3 Codec (L3CODECA.ACM) but it only supports very low bitrates, unacceptable for music. So get the good one from my site.

Installation

Thanks to Justin Leoni there is now an installer that does all the work for you. Or, to do it the manual way, continue reading.

All you need to do after obtaining the ACM Codec is to copy your Preferred Codec (L3CODECP.ACM, LAMEACM.ACM, etc.) to the windows system32 directory, “c:/windows/system32/”. Thats the simple part, but don’t worry the rest is easy. Now we edit that registry.

You must have administrator rights on the computer to change any of the registry settings. But before we do that we need to know a few things.

A Few things about MP3

Every MP3 files has two settings, the Bit Rate and The Sample Rate.

The Bit Rate is measured in kilobytes per second (KBps). Everyone who has heard of MP3’s knows about this. Higher quality music has higher bit rates. eg. most MP3’s on the internet are encoded at 96 - 128 kBps, this is lower quality but has quite small file sizes and is good for sharing over the internet. Higher quality MP3’s generally use 192 kBps, This is what I like because it gives a good balance between quality and size. And those audiophiles amongst us use 256 kBps or higher.

The second Thing is the Sample Rate. This is the frequency at which the music is recorded. I’m no audio engineer but the higher this value is, the more “analog-like” (better) your music will be. CD’s are recorded at 44.1 Kilohertz (kHz) (1kHz = 1000 cycles/second). Music off of your DVD Movies is recorded at 48 kHz. And the new DVD Audio is encoded at 96 kHz, and in my opinion sounds just as good as a high quality vinyl record.

Now that we know this lets make a few decisions. If we set our Codec Settings for 96 kHz, it sounds cool, but is a wast since we are using lossy compression and CD’s are at best recorded at 44.1 kHz. So our first decision is to use a sample rate of 48 kHz. You say, why not 44.1, well, why not 48. Not much difference there.

Our second decision is to choose FOUR bitrates. Windows Media Player XP only supports four different bitrates. I find that the good choice here is 96, 128, 192, and 256 kBps. You’ll probably only use one, so just pick what you like best, then pick one higher and one lower. You’ll have to play around here to find out what your codec supports. As I say though, I know the Fraunhaufer supports 128, 192, and 256 kBps @ 48 kHz, it gives a good range.

Also note the following:

1 kHz = 1000 Hz

1 kBps = 1000 Bps

Editing the Registry

WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk. Blah, Blah, Blah, Lets Hack…

Don’t worry I’ll walk you through it. First we need to start the registry editor. Just go the the Start Menu, click Run, the type “regedit” and click enter.

Creating The Key

Now navigate to HKEY_LOCAL_MACHINE/Software/Microsoft/MediaPlayer/Settings, just like exploring your folders, and create a new key in that folder called “MP3Encoding”. To create a new key click on the settings folder then go, Edit -> new -> key, and name it “MP3Encoding”.

Creating The DWORD Values

Now open the folder “MP3Encoding” and create a “DWORD value” named “LowRate”. Create it the same way as the “key” but go, Edit -> new -> DWORD value. Also create a “DWORD value” named LowRateSample the same way.

both are entered

Now Double Click on the LowRate DWORD value, and set the value data to the lowest bit rate you selected earlier. ie. if you chose 96 kBps then enter 96000 in value data. Everything you enter is in terms of Bps. And enter it as a Decimal NOT Hexadecimal.

Now repeat the same process for the “LowRateSample” using 48000 as your value data. Everything you enter is in terms of Hz. And again as a Decimal NOT Hexadecimal.

Now repeat the same for MediumRate, MediumRateSample, MediumHighRate, MediumHighRateSample, HighRate and HighRateSample.

Creating The Strings

Now you have to create two strings “PreferredCodecName” and “PreferredCodecPath”. You should know how to create a string now, same as DWORD but choose string. The PreferredCodecName is the name of the encoder that will show on Windows Media Player. You use what ever you want. The PreferredCodecPath must be set to “C:\WINDOWS\system32\L3CODECP.ACM”, or what ever the filename of your codec is.

you should have something like this when your done

Note that the value for PreferredCodec is limited to 255 characters. The PreferredCodecPath key must contain the fully-qualified path to the location of the codec as well as the file name of the codec.

Finally

Just go in to the Windows Media Player options, were you are able to choose the encoder (ie. WMA Losless … ), and you should see your new encoder there with the bitrate settings your setup earlier.

Comments

The opinions expressed in comments are entirely the responsibility of the various contributors. While I will do everything within reason to ensure that they are not defamatory, I accept no liability for them or the content of links included in them.

Thanks Matt! Now to see whether I can install it into My SONY Network Walkman.
BTW, in Windows 10, the codec is already in there, just to modify it to CAPS and get rid of the sample low bit rate thing before it can work. Z
Z

[begin verbose mode]
I just received my new Windows Media Center box and the included Windows Media Player 10 (.3990) would not rip any MP3s, regardless of the bitrate. I was getting quite frustrated before I happened upon your site in my search for a solution - and as others have stated previously - your solution works like a charm.

I already had an existing key and values at HKLM | Softare | Microsoft | MediaPlayer | MP3encoding, so after backing up the original values (just to be safe), I setup the new values per the tutorial, fired up Media Player, and voila! MP3-rippin’ heaven.

I am running a windows 2000 machine (I JUST recently upgraded to it from 98se) Not being totally familiar with registry values and such, I was a little hesitant to try this, but after going through it as per your very clear instructions, I’m presently sitting here ripping an OZZY CD to my computer and laughing maniaclly as I look at the stack of CD’s I am gonna rip and use in my portable MP3 player now! Thanks for the walkthrough and you can bet i’m gonna reccomend other to this page!

I was looking into this because I was looking for a way to rip my CD’s to MP3 using Windows Media Player 9. When I got to the part when you had to go to the settings folder, there wasn’t a settings folder. Will this even work for Media Player 9?

I actually took your tutorial and created a windows installer which does all the work for you so for those of you who don’t want to mess with your registry or if your just plain lazy and looking for a FREE mp3 encoding tool for WMP here it is
iMp3 Thanks Matt.

wag1 this page is wikd i used it on my laptop and it worked charms, my teachers were impressed seeing that im only 14 ( i left out the fact i gt it of the internet lol) i just wanted sum help coz on my computer there are no settings folder in media player so wat do i do????