Gamingforce Interactive Forums
30772 29083

Go Back   Gamingforce Interactive Forums > Music and Trading > Behind the Music
Register FAQ GFWiki Members List Donate Arcade ChocoJournal Mark Forums Read

Welcome to the Gamingforce Interactive Forums.
GFF is a hellhole full of elitists who chat about everything EXCEPT games. We have a team of dedicated moderators who will ban your ass on the slightest provocation, constant member-organized activities that you are not allowed to participate in, and plenty of custom features, including our unique journal system where you can post entries that will be completely ignored. If this is your first visit, be sure to check out the FAQ or our GFWiki. You will have to register before you can post. Although membership is completely free (and gets rid of the pesky advertisement unit underneath this message) we do not recommend that you sign up, because you will get kicked in the nuts repeatedly.


Guide to Ripping & Encoding High Quality MP3s
Reply
 
LinkBack (2) Thread Tools
Tentacle Extraordinaire


Member 15679

Level 10.88

Nov 2006


Reply With Quote
Old Dec 3, 2006, 12:20 PM 2 2 links from elsewhere to this Post. Click to view. #1 (permalink) of 80
Guide to Ripping & Encoding High Quality MP3s

Guide for Encoding Efficient, High Quality Lossy Audio
ear-pleasing standards (;


10/4/2005 - (OLD) NEWS!
LAME version 3.97 has become the new recommended version over the previous 3.90.3 and uses a -V # switch system as opposed to the --alt-presets! (More info)


- First, decide which audio codec you wish to use!
  • MP3 is the most popular format, the most supported, and therefore the first choice for most people. In recent years, the quality of MP3 has been continually pushed to the envelope by the LAME encoder team (yes, it really is called LAME) despite the limits of this aging format. Sometimes, however, the limits cannot be easily overcome. For example, LAME attempts to fix the gap problem, where MP3s typically play an extra bit of silence at the end, quite noticable when it interrupts tracks that are supposed to run together. Since LAME's fix is not a part of the MP3 standard, only a few players will skip the extra gap.
    PC & HARDWARE PLAYERS: nearly any

  • Ogg Vorbis is a patent-free, open-source, totally-free audio codec. It especially excels at low bitrates (less than 128Kbps) compared to the other formats, and is gapless between tracks. Although official development has stagnated, unofficial Aoyumi's Tuned Vorbis (aoTuV) versions have kept quality marching forward. Also, it has been claimed that Vorbis encoding flaws sound less harsh than those of MP3. A fair number of hardware players support Vorbis, but unfortunately not nearly as many as MP3.
    HARDWARE PLAYERS: iPods (with Rockbox), several iRiver models, serveral Cowon models, Pocket PCs (with TCPMP), and many others
    PC PLAYERS: WinAmp, Windows Media Player (w/filter), Foobar2000, and many others

  • Musepack has been generally regarded as the best format for high-quality at high bitrates (above 128Kbps), encoding quite quickly too. However, the encoder's quality has not been developed in quite some time, and is perhaps now more comparable to the other codecs listed here. It plays back-to-back tracks gaplessly like Vorbis, and while it used to be sluggish when seeking within a track, the newest encoder (1.16) cures that problem. Unfortunately, there are very few compatible hardware players.
    HARDWARE PLAYERS: iPods and iRivers (with Rockbox), serveral Cowon models, Pocket PCs (with TCPMP), and more(?)
    PC PLAYERS: WinAmp (w/plugin), Windows Media Player (w/filter), Foobar2000, and others

  • FLAC is not a lossy codec like all of the above. Instead, it performs lossless compression, which means FLACs will always output the exact same audio that was put into them. But because FLAC does not selectively discard data like lossy formats, the files are quite larger. However, decoding takes very little CPU power, which makes for fast conversions from FLAC to whatever lossy format your portables may use, or whatever format would be easiest to "share". FLAC is useful for archiving in perfect quality, or for those with huge hard drives.
    HARDWARE PLAYERS: iPods and iRivers (with Rockbox), Pocket PCs (with TCPMP), and others
    PC PLAYERS: WinAmp, Windows Media Player (w/filters), Foobar2000, and others


Encoding from Audio CDs


I. First-time setup:

1) Because reading the CD right matters just as much as how you encode it, download & install the best, Exact Audio Copy, from
Introduction » Exact Audio Copy

2) Download the currently recommended encoder for your preferred format, unzip, and place it in a folder you will remember.

MP3: LAME 3.97 release
Ogg Vorbis: Oggenc2.83 using aoTuVb5 (or for advanced users: heavily CPU-optimized encoders)
Musepack: mppenc 1.16
FLAC: FLAC for Windows with installer (v1.2.1)

3) Run Exact Audio Copy. The Configuration Wizard should pop up (if not, start it from the "EAC" menu).
  • When it asks you, select all your CD drives. (Note: CD-RW drives are typically best for ripping purposes.)
  • Select "I prefer to have accurate results" for each drive.
  • Auto-detect your CD drive features. This requires an audio CD to be in your drive.
  • MP3 only: Check "Install & configure the external LAME.EXE compressor." Stop the search, manually find the path where you downloaded LAME, and select either quality option given (this will be changed later).
  • Enter the e-mail address.
  • Select "I am an expert."
4) Open the "EAC Options" from the "EAC" menu.
  • Under the Extraction tab, put "Error recovery quality" at "High."
  • If you have a constantly-on Internet connection, under the General tab select "On unknown CDs, automatically access online freedb database."
  • Under the Filename tab, change the naming scheme to
    Code:
    %N - %T
    which is basically the format "01 - TrackOneName". You may want to put additional parameters in there too, that's fine, but make sure the track number gets in there somewhere... unless you feel like having the tracks listed in alphabetical order rather than the natural CD order. :worried:
    You can also put your albums in directories, for example
    Code:
    %A\%C\%N - %T
    which is "\Artist\Album\01 - TrackOneName"
5) Open the "Drive Options" from the "EAC" menu.
  • Under the Extraction Method tab, it should already be set to "Secure mode with following drive features." If not, change it.
  • Under the Drive tab, hit the "Auto-detect read command now" button.
6) Open the "Compressor Options" from the "EAC" menu.
  • Under the External Compression tab, change the "Parameter passing scheme" to "User defined encoder", and enter the appropriate file extension below.

    MP3: .mp3
    Ogg Vorbis: .ogg
    Musepack: .mpc
    FLAC: .flac

    (Note: Selecting "User defined encoder" disables the effects of the "high quality/low quality" buttons & the bit rate drop-down menu. So just ignore them.)

  • Browse to the location where you unzipped the encoder. The specific file you're looking for is:

    MP3: lame.exe
    Ogg Vorbis: oggenc2.exe
    Musepack: mppenc.exe
    FLAC: flac.exe (in the "bin" sub-folder)

  • Enter under "Additional command line options":
    (These commands determine what methods will be used to encode the audio)

    MP3
    Code:
    -V 2 --vbr-new %s %d
    Ogg Vorbis
    Code:
    -q 5.0 -a "%a" -t "%t" -l "%g" -d "%y" -N "%n" -G "%m" %s %d
    Musepack
    Code:
    --quality 5.0 --artist "%a" --title "%t" --album "%g" --year "%y" --track "%n" --genre "%m" %s %d
    FLAC
    Code:
    -6 -V -T "artist=%a" -T "title=%t" -T "album=%g" -T "date=%y" -T "tracknumber=%n" -T "genre=%m" %s %d
    NOTE: Make sure no extra spaces or discrepancies are included when you enter or copy these commands! This can cause the encoder to fail when it tries to encode the music, and you will just end up with WAV files!
  • You will probably want to check "Delete WAV after compression". UNcheck "Add ID3 tag" if you are NOT using MP3.
  • MP3 only: Check "Add ID3 tag." Under the Offset tab, look at "Construction of the ID3 tag comment field", select "Write following text into ID3 tag comment", and then type LAME v3.97 -V 2 --vbr-new or your version of LAME & encoding method used, if different. (This is simply used for identification, so anyone viewing the ID3 comment can tell what quality mode was used to encode the MP3.)
    NOTE: Do NOT also add ID3 tags via the "Additional command line options", or you will end up with possibly-erroneous double-tagged MP3s!
Congrats, you finished the long part! Once everything has been set up, you shouldn't need to go back & mess with any of these settings. =)

II. Ripping each CD:
  • Run Exact Audio Copy & put the audio CD in the appropriate drive.
  • Either enter the CD/track/artist info yourself, or get it auto-filled from the CDDB (ALT-G) if you're connected to the Internet.
  • To rip & encode the entire CD, click the "MP3" button on the left. To get individual tracks, select all the ones you want and press SHIFT-F6.
  • If you don't mind taking double the time to be even more confident that your rips are coming out perfectly, then instead of hitting the MP3 button, right-click on the selected tracks and select "Test & Copy Compressed". After all the ripping, if the "CRC" field at the very right says "OK" for each track, all is good! If not, the test & actual copies read differently, which means one or both read something wrong.
That's it. The End! Hopefully you now have a folder full of high quality audio files ready for listening!


Important Lossy Concept
A lossy file (such as MP3, Musepack, or Vorbis) can never turn itself back into the original audio it is trying to approximate. Any converting, any burning, and any playing can only use the imperfect audio in that lossy file to do its job, so turning an MP3 to a WAV or burning it to a CD will only result in audio that sounds exactly as imperfect as the MP3. Also, if you were to take that imperfect-sounding WAV and turn it into MP3 again, it will only result in more loss. For this reason, it is inadvisable to convert lossy files to other lossy files. It is always best to use lossy compression on only original full quality audio.

Since lossy compression works by trying to remove the information humans percieve least, such quality degredation may not always be detectable. Indeed, the hope is that the encoded audio will sound exactly the same as the source. But quality reduction does always occur even if it is often inaudible.


Encoding from Files


I. First-time setup:
  • Foobar2000 has a reputation as a spartan, utilitarian little audio player. However, it features one of most customizable file converters that I have yet to try. So go ahead and get downloadin' and installin'. Oh, and make sure not to de-select that unimportant little "Converter" component.
  • Download the currently recommended encoder for your preferred format, unzip, and place it in a folder you will remember.

    MP3: LAME 3.97 release
    Ogg Vorbis: Oggenc2.83 using aoTuVb5 (or for advanced users: heavily CPU-optimized encoders)
    Musepack: mppenc 1.16
    FLAC: FLAC for Windows with installer (v1.2.1)

    (Wait! Haven't you done this part already? If not, return to the top of the thread, do not pass Go, do not collect $100, and install EAC already!)
  • Run Foobar2000 and add to the playlist the file(s) you want to convert. Select them all and right click, choosing "Convert > Convert too..." from the menu.
  • Choose your preferred audio format from the drop-down option box. The default encoding settings are right in line with the suggestions of this guide, so there should be no need to tweak them.
  • If you click on "More Settings" you can edit the Output File Names. I would recommend changing the Single Tracks setting to %filename% so that your converted file will only differ in file extension. Hit "Close" to exit the window.
  • Back in the previous window, click "OK". Now remember when I told you that you had to memorize where you put the encoder? This is where you have to go find it, Fido.
  • After selecting the directory to drop the new file into and watching the progress bars fill to full, you should now be the proud owner of a newly converted file, complete with any tag information that was in the original file.

II. Each subsequent conversion:
  • Run Foobar and add the files to the playlist.
  • Select, right-click, "Convert > Convert to..."
  • Select your desired codec if it isn't already and hit "OK".
  • Wait for moist, delicious cake^Z^Z^Z^Z MP3s.

Foobar2000, especially with all of its components, can convert just about anything you throw at it, to just about any format you want.
Except for emulated game music. For that, just download some a WinAmp plugin and diskwrite it to WAV before throwing it to Foobar.


ReplayGain: Preventing Loudness Jumps & Clipping

MP3Gain

MP3gain is a very useful program that performs volume normalizing, maximizing, and adjustment. Since MP3s are just an approximation of the original file, and since modern CDs are pushed so very close to the maximum volume/amplitude value, at some points the waveform of a decoded/played-back MP3 may calculate as a value above that maximum. This is called clipping, because those higher values must be truncated down to the maximum limit, flattening those segments of the waveform and often introducing annoying pops or static. MP3gain can prevent clipping by reducing the MP3's internal volume level just enough that its peaks will not breach the maximum amplitude.

The program can also "normalize" song loudness, meaning that it will make MP3s sound about equally loud from track to track (in default Track Mode), preventing the constant need to adjust your player's volume when listening to your collection. MP3Gain will even preserve the intended volume differences between songs on the same CD when you use Album Gain mode, instead attempting to equalize the overall loudness of different albums.

Note that for this to work as intended, you must Album Gain or Track Gain all the MP3s in your collection. Also, it will often make your songs quieter. This is because it uses a loudness standard that attempts to minimize the amount of clipping caused by raising dynamic tracks, with high peaks and otherwise low levels, to the same overall volume as more modern tracks, which tend to be so dynamically-compressed that the entire song hugs the maximum amplitude.

NOTE: Winamp has recently gained the ability to read MP3Gain's ReplayGain tags, so the compatability worries previously espoused here are now irrelevant.


Scientific Lossy Audio Codec Comparisons

- Sebastian's Public Listening Tests
- Roberto's Public Listening Tests

Please let me know if there are any other links I should include.

--------------------------------------------------------------------------------------

Questions and explanations.

Why is it ripping so slowly? I can get 5-10x faster with MusicMatch/CDex/WinAmp/etc!
  • Secure Mode double-reads the CD to make sure there was no read error (i.e. each data sector should be the same when read twice) caused by something on the CD or just a bad CD drive. This is the only mode that can let you know when there is an error, and the only one that will rescan the CD to get a prominent reading when it does find a discrepancy. Speed is what you sacrifice for this quality.
  • If you absolutely hate the slower ripping speed, or find that a CD is tripping up often on errors & taking hours, use Burst Mode. Occasionally it results in a better rip in those cases. Remember, though, that you will have to listen thoroughly to the music files yourself to determine if there were any flaws in the rip!
I hate VBR mp3s! They always give me problems, and are certainly not high quality!
  • LAME's implementation of VBR (variable bitrate) is markedly improved over any other VBR mp3s you've heard. Audiophile enthusiasts have even done scientific double-blind listening tests to prove that LAME's VBR is audibly "transparent" (sounds no different than the original audio) to most listeners.
What's wrong with 128Kbps? Why use something so LAME? (harharhar) Why not encode with a constant 192Kbps?
  • Firstly, if you can't tell the difference between 128Kbps mp3s and the originals, do yourself a long overdue favor: buy yourself a better set of speakers, headphones, or sound card. (Remember that the weakest links in the chain from that audio file to your ears dictate the sound quality.) However, older folks and those with hearing loss may not be able to tell the difference. And honestly, the difference can sometimes be subtle.
  • We use the LAME encoder, as it is considered the best encoder out there for bitrates above 112Kbps. LAME produces better quality mp3s than even the official Fraunhoffer encoders. Isn't it great that LAME is free?
  • The -V switch invokes a VBR (variable bitrate) encoding mode in LAME. VBR is, in theory, inherently superior to CBR (constant bitrate). CBR mp3s may at times have too few bits available to encode all the audible information in a frame. Or one frame may only need a fractional amount of the available bits to be audibly the same, with the rest of the frame filled with inaudible data to keep the mp3 at a constant bitrate. A variable bitrate cures such problems of lost audio quality & wasted file space by determining how many bits should be used in each different frame to keep the audio audibly unchanged. (Admittedly, the "bit reservoir" in CBR mp3s attempts to resolve this as well, but it is much less effective than pure VBR.) Typically, a VBR file may possess audio quality equivalent to a 10-20% larger CBR file.
What are the typical average bitrates of MP3s using these VBR switches?Why is the encoder set to "User defined encoder" in EAC, when there is already an option for the LAME encoder?
  • Choosing "User defined encoder" and entering -V [0/1/2/3/etc] --vbr-new %s %d effectively disables all other mp3 encoding options in the External Compression tab. This is done because certain quality parameters in LAME can interfere with -V's functionality, even some typically associated with producing hi-quality LAME mp3s. We are merely making sure that these specific VBR quality settings, and the source & destination files, are the only parameters passed to LAME.
Why set Error Recovery to High? Why use Secure Mode?
  • If any kind of error occurs while reading the CD, this tells EAC to rescan this section of the disc the most number of times EAC will allow. EAC will then use the most prominent result found from these reads.
  • The Burst & Fast modes may often make copying errors without realizing this or attempting to make any sort of correction. Secure Mode does rip more slowly, but it attempts to make a more perfect copy of the track than either other mode.
Where can I get more information about digital audio?
  • The Hydrogen Audio forums are an excellent resource for digital audio discussion, explanation, testing, and development.
Why is this post so long?
  • Because it's awesome?? :sweat: :worried:

If you have any questions about all of this, feel absolutely free to reply or contact me.

A light on the water... all souls pass...

Last edited by Moguta : Mar 1, 2008 at 11:43 PM. Reason: partially-complete guide revision
it's a lie


Member 929

Level 29.70

Mar 2006


Reply With Quote
Old Dec 5, 2006, 11:04 AM Local time: Dec 6, 2006, 01:04 AM #2 (permalink) of 80
Oh wow, this is a huge upgrade of my current ripping standards. Thanks a lot for this moguta.


(I think I still follow your old ripping guide.. the one made a few years ago.. like 3 or 4 years ago.)
Knock knock who's there? Me! I keel you!


Member 858

Level 27.49

Mar 2006


Reply With Quote
Old Dec 5, 2006, 01:27 PM #3 (permalink) of 80
I recently use -V 0 though...... Does it make me a bad person? ;_;

---------------{ Currently playing }--
... Nothing.... really.

-----------------------{ Last rips }--
Trauma Center New Blood (Wii)
Trauma Center Second Opinion (Wii)
Planet Puzzle League (DS)

---{ Currently in ripping progress }--
Dragoneer's Aria (PSP)
Professor Layton and the Curious Village (DS)

-----------{ Other stuffs about me }--
My VGM Collection
(last update: mar. 03, 2008)

--------------------------------------
射手


Member 2020

Level 20.21

Mar 2006


Reply With Quote
Old Dec 5, 2006, 03:26 PM #4 (permalink) of 80
Originally Posted by cubed
I recently use -V 0 though...... Does it make me a bad person? ;_;
Nope. It's totally up to you whether the increase in sound quality is worth the increase in bitrate or not.

Last edited by ArrowHead : Dec 20, 2006 at 05:16 AM. Reason: typo (whethere -> whether)
Tentacle Extraordinaire


Member 15679

Level 10.88

Nov 2006


Reply With Quote
Old Dec 5, 2006, 07:11 PM #5 (permalink) of 80
Thanks to Darko for keeping a copy of my thread alive even after the GFF crash! This one has a few changes, such as a totally new section on encoding files already on the hard disk, additional explanation of what MP3Gain does, updated broken links, a short mention of some CPU-optimized Vorbis encoders (much quicker!), and the newest version of the Musepack encoder. Oh yeah, and taking out AAC to reduce clutter, and because I have the feeling absolutely no one who followed my guide used that format.

cubed, I would argue that -V 0 --vbr-new is a bit overdoing it & wasteful of space, since -V 2 --vbr-new doesn't reveal even subtly audible difference in the great majority of cases. But at least you're not using 320Kbps.
*Coughs to clear his throat and dons his mock-superior voice* Yes, cubed, you are a very bad man for using higher quality settings than necessary for your own personal use! Shame, to the highest degree!

A light on the water... all souls pass...
i like presents


Member 973

Level 35.34

Mar 2006


Reply With Quote
Old Dec 17, 2006, 11:18 PM Local time: Dec 17, 2006, 11:18 PM #6 (permalink) of 80
Welcome back to keeping our ripping in line! I'm going to update my settings now.

Also, hi. ^_^

And I'm stickying the thread. FIRST OFFICIAL MOD ACTION IN 4ish YEARS. WOO.
Tentacle Extraordinaire


Member 15679

Level 10.88

Nov 2006


Reply With Quote
Old Dec 21, 2006, 10:39 PM #7 (permalink) of 80
Omigosh it's Drexie! And I get the honor of having my thread stickied by him!

Oh, yes, and hello. ;D

Ah, who cares if it's your first action in four years? Wouldn't want you to break out into a sweat with all that heavy mod work. Nope, nope!
Good to see ya around again.

A light on the water... all souls pass...
Banned


Member 54

Level 45.73

Mar 2006


Reply With Quote
Old Dec 24, 2006, 08:30 AM Local time: Dec 25, 2006, 03:30 AM #8 (permalink) of 80
Thanks for this, this guide is highly useful.
Syklis Green


Member 531

Level 6.75

Mar 2006


Reply With Quote
Old Dec 29, 2006, 11:38 PM #9 (permalink) of 80
Quick question, I would like to use EAC to compress WAV's and decompress MP3's.

The problem is that under EAC -> Compression Options -> Offset, the "use lame command line encoder/decoder for decoding mp3 files" is grayed out.

Anyone have any ideas on what the problem is? Thanks!
Tentacle Extraordinaire


Member 15679

Level 10.88

Nov 2006


Reply With Quote
Old Jan 1, 2007, 06:37 PM #10 (permalink) of 80
Phatcorns, I'm not certain why that is. The option is ghosted on mine as well...

But, if you are using lame.exe in the "External Compression" tab, following the directions in my ripping guide, then it will use those settings when doing the "Compress WAVs" command. And I believe EAC may be able to decode MP3s without LAME.

Additional Post:
And just linking a post I just made in another thread which explains, in a bit of detail, some of the aspects and trivialities of audio encoding. For those who care to know...
http://www.gamingforce.org/forums/be...ost355440.html

A light on the water... all souls pass...

Last edited by Moguta : Jan 2, 2007 at 12:29 AM. Reason: This member relied intentionally on the double-post merge. :p
I see you


Member 1020

Level 8.57

Mar 2006


Reply With Quote
Old Jan 6, 2007, 09:25 PM Local time: Jan 6, 2007, 09:25 PM #11 (permalink) of 80
So, for some odd reason, lame.exe is not included in the bundle of files provided by LAME's website. That, and the link you have provided for LAME is also down. Any thoughts on the matter?

Additional Spam:
Nevermind. Take an extra five seconds and refine a Google search will get me what I need.

Last edited by Star Man Aevum : Jan 6, 2007 at 09:26 PM. Reason: This member got a little too post happy.
Tentacle Extraordinaire


Member 15679

Level 10.88

Nov 2006


Reply With Quote
Old Jan 8, 2007, 06:27 PM #12 (permalink) of 80
Sorry, Aevum. Evidently Rarewares.org -- the site I link to for the LAME encoder -- was down for a bit due to a billing dispute. But it's back up again.

A light on the water... all souls pass...
Cal
WIRKN FAMLEES


Member 76

Level 25.09

Mar 2006


Reply With Quote
Old Jan 10, 2007, 02:50 AM Local time: Jan 10, 2007, 06:50 PM #13 (permalink) of 80
The track/artist/#/etc doesn't seem to work when ripping in MPC. EAC actually names the artist, for instance, '%a'.

' I've got a good definition
of economic conservative:
someone who promises to
spend $1 less than Howard. '
Tentacle Extraordinaire


Member 15679

Level 10.88

Nov 2006


Reply With Quote
Old Jan 14, 2007, 08:02 PM #14 (permalink) of 80
Hrm, Cal, that is very odd. EAC should be converting those symbols (like %a) into the actual artist/album/track/etc. strings shown in the main window before it passes the command to the encoder. Perhaps you could try it without the surrounding "quotes"?

EDIT: I just tried to reproduce your problem, but to no avail. Even with the ""s around the symbols, the tags were written fine.

A light on the water... all souls pass...

Last edited by Moguta : Jan 14, 2007 at 08:16 PM.
Cal
WIRKN FAMLEES


Member 76

Level 25.09

Mar 2006


Reply With Quote
Old Jan 15, 2007, 02:57 AM Local time: Jan 15, 2007, 06:57 PM #15 (permalink) of 80
Is there any way I get get EAC to append APE and not ID3?

Quote:
Note: Selecting "User defined encoder" disables the effects of the "high quality/low quality" buttons & the bit rate drop-down menu.
Apparently it's the opposite case with Musepack.

' I've got a good definition
of economic conservative:
someone who promises to
spend $1 less than Howard. '

Last edited by Cal : Jan 15, 2007 at 03:22 AM.