Converting FLAC to 320kbps MP3 with Foobar

foobar2000

Lossless codecs, like FLAC, are great when it comes to preserving all the quality present on the original media. Unfortunately though, they do take up quite a bit of space and most lossless codecs are far from popular in the mainstream. Therefore, it often becomes necessary to sacrifice some of the quality in order to recoup some disk space and increase compatibility — because the day that the iPod supports open source codecs, is also likely to be the day that hell freezes over…

So, you’re stuck with hordes of FLAC files and you want to convert them all into high-quality MP3’s, and, of course, you’d like to do all this without paying a penny, correct? Is that even possible? After all, the Fraunhofer Society currently owns the rights to the MP3 codec, and they’re not shy about cashing in on it.

Fortunately, there is a solution, and both of the tools needed for this operation are available for free!

Ever since I gave up on iTunes and Winamp, I’ve been using a very light-weight and very elegant music player known as Foobar2000, or just Foobar for short. Besides the wonderful job it does playing back music with an absolute minimum of fuss, unlike iTunes, it also features an extensive array of useful plug-ins, the most fundamental of which come pre-installed. One of these built-in tools is the codec converter, which is what we’ll be using to solve our little dilemma.

In order to encode and decode MP3 files, Foobar uses the LAME codec. Due to reasons I don’t fully understand, the guys behind this codec have somehow circumvented the need to license the relevant technology from the Fraunhofer Society, and can therefore offer MP3 support for free — sounds like that might be an interesting article all on its own, but I digress.

Anyway without further ado, here’s the interesting bit:

Once you have Foobar installed and fired up, click on the “Library” menu, and select “Configure” — alternatively, you can just hit Ctrl-P, and that will get you to the same place. On the left side of the “Preferences” window that just opened up expand the entry titled “Tools,” and click on “Converter.”

foobar-pref

From here, look to the right side of this window, and you should see a button labeled “Add New.” Click on that.

You should now see the window pictured below. From the “Encoder” list, select “Custom.” The first text box under the drop-down that you just used should now read “lame.exe” –  again, just like in the picture.

foobar-pref-ii

The settings are almost perfect right from the start. There is, however, one problem. We would like to convert our pristine FLAC files to the highest quality offered for MP3’s, but unfortunately, that’s not what the settings reflect at the moment. In order to rectify this, all that we need to do is replace the text in the “Parameters” box with the following:

-S --noreplaygain -b 320 - %d

From a technical standpoint, that’s all you need to change; your files will now be properly converted to 320kbps MP3’s. The description of this conversion preset, however, won’t reflect the fact that we’ve forced the LAME encoder to use a constant bit rate of 320kbps. But, this is easily fixed as well. At the very bottom of the window, simply update the “Bitrate” field to 320, and set the “Settings” field to “CBR,” short for “Constant Bit Rate.”

That’s it, you’re now ready to convert your FLAC files.

Now, in case you’re new to Foobar, once you’re ready to actually convert a file, all you need to do is add the FLAC files in question to any playlist, select the song, right-click, and hit “Convert.” The rest is really straight forward…

Oh, almost forgot: The first time that you convert something to MP3, Foobar will ask you where it can find the LAME executable (i.e.: the file called LAME.exe). If you don’t already have it, you can download it from www.free-codecs.com. Once you’ve downloaded it, simply extract it to any location of your choosing — perhaps you might want to extract it your music folder, so you know where it is for future reference. After the extraction, head back over to Foobar, and when prompted, simply select the executable from the folder that you extracted the .zip file into.

Enjoy!

44 Responses to Converting FLAC to 320kbps MP3 with Foobar »»


Comments

  1. Comment by dAN tHE mAN | 2009/05/18 at 07:24:50

    Thanks very much for this.

  2. Comment by Pablo | 2009/05/28 at 14:02:51

    A great guide, thank you so much!

  3. Comment by Maws | 2009/06/06 at 06:31:27

    Wow this is great! ^__^
    Your guide helps me so much! Thank you so much..! >__<

  4. Comment by jpvx | 2009/08/27 at 07:59:08

    Thank for share xD

  5. Comment by Zoltan | 2009/09/16 at 23:07:46

    Nice and easy to understand article, thanks.

    I have just one question though.

    Is it possible to convert the files with equalizer setting also, or is it only for pure converting?

    I have collected a number of flacs, bootlegs of audience recording from diverse gigs. Mopst of them are of low quality, still due to some misunderstanding of thoughts? technology? they are in flac. 128k mp3 would be enough for these.

  6. Comment by craig | 2009/09/17 at 11:13:29

    thanks!

  7. Comment by zoot horn rollo | 2009/09/28 at 21:53:01

    You da man! Well done…

  8. Comment by Hello From Canada | 2009/10/06 at 15:27:36

    Kudos.
    Cheers;

  9. Comment by Leroy | 2009/10/16 at 01:06:55

    Thanks for this, very helpful.

  10. Comment by cristof | 2009/10/25 at 08:39:53

    niiiiice,
    now I haven’t got to add another soft to convert file. Foobar is really THE player!

  11. Comment by Nick | 2009/10/28 at 14:51:29

    Exactly what I needed. Many thanks

  12. Comment by Arthur | 2009/11/03 at 16:28:01

    Many thanks, it help me a lot.

  13. Comment by N8tallica | 2009/12/02 at 08:08:46

    Thx…and here I thought it was complicated! Working great now!

  14. Comment by zolamola | 2009/12/06 at 23:00:51

    thanks a lot for this guidance
    meantime, i’d like to convert WV file via foobar.
    can you advise me how to do it ?
    because currently foobar can not read WVZ file
    thanks again

  15. Comment by zolamola | 2009/12/06 at 23:19:05

    Sorry I meant WV files
    thanks

  16. Comment by Mark | 2010/01/15 at 14:37:55

    Thanks a lot for this!

  17. Comment by Majestic12 | 2010/01/29 at 18:07:43

    Thanks, this is exactly what I needed.

  18. Comment by robjrock | 2010/02/04 at 19:06:10

    Dude you freakin rock! Thanks so much.

  19. Comment by Willo | 2010/02/08 at 05:32:05

    Yeh this player really is THE player. Use’s like 00 cpu usage, VERY customize-able and does everything.
    Your post about how to convert everything was awsome, Had some 1000kbps files that wouldnt play on my
    car head unit, TYVM!!

  20. Comment by Oleg | 2010/03/03 at 02:19:02

    Thank you!

  21. Comment by Rohit | 2010/03/09 at 20:08:14

    Help please,
    The foober is giving this error:

    1 out of 1 tracks converted with major problems.

    Source: “C:\Users\Rohit\Desktop\t.A.T.u – 200 km.h in the wrong lane.flac”
    An error occurred while writing to file (The encoder has terminated prematurely with code 0 (0×00000000); please re-check parameters) : “C:\Users\Rohit\Desktop\Temp\TATU\200 km.h in the wrong lane.mp3″
    Additional information:
    Encoder stream format: 44100Hz / 2ch / 16bps
    Command line: “C:\Program Files\Unrelated Inventions\Audiotools\Lame_Docs\lame.exe” -S –noreplaygain -b 320 – “200 km.h in the wrong lane.mp3″
    Working folder: C:\Users\Rohit\Desktop\Temp\TATU\

    Conversion failed: The encoder has terminated prematurely with code 0 (0×00000000); please re-check parameters

  22. Comment by beani | 2010/04/03 at 02:20:28

    Thanks a lot – it really made a lot of things easier. I always wondered why you just could convert to an avg bitrate of 245kB/s :) .. Anyway, thanks again mate.

  23. Comment by klakadak | 2010/05/29 at 03:48:33

    This is what I was looking for for ages! Thanks a million for this tip!!!

  24. Comment by JUKEBOXBLOG | 2010/10/25 at 05:49:50

    Just what I was looking for…!
    Thanks a lot for your support

    Take care

    JUKEBOXBLOG

  25. Comment by Vladimir | 2010/10/29 at 08:45:23

    Great thanx!
    In Foobar version 1.1.1 I was able to reach settings via
    Right click on song (songs) – Convert – … – Output Format
    Perhaps it would be usefull…

  26. Comment by Chillaholic | 2011/01/06 at 10:27:40

    Thank you very much for this easy tutorial, i even used foobar before without knowing it can convert audio files :D

  27. Comment by scott | 2011/03/21 at 19:32:43

    thank you very much

  28. Comment by Dave Gigi | 2011/06/09 at 00:43:39

    Great article.Really looking forward to read more. Really Great.

  29. Comment by Jwkobzkf | 2011/09/05 at 07:32:04

    Very interesting tale pre teen blowjobs gtfa

  30. Comment by Wclcuzlb | 2011/09/06 at 15:25:53

    Will I be paid weekly or monthly? lolitas dark portal
    >:O

  31. Comment by Vrzngmyo | 2011/09/07 at 21:03:28

    I’m a partner in sandra model nn
    =OOO

  32. Comment by Whmdprii | 2011/09/08 at 15:40:57

    How long are you planning to stay here? top 100 nn model
    142324

  33. Comment by Srcerqsp | 2011/09/22 at 15:40:34

    Will I get travelling expenses? Loli Imgboard Pthc ynv

  34. Comment by Fqkgoarf | 2011/09/22 at 18:11:34

    I’d like to change some money Kid Bra Model
    262393

  35. lEO
    Comment by lEO | 2011/09/23 at 21:10:38

    What setting to add to parameters to get VBR V0?

  36. Comment by Uqjyfkcf | 2011/09/30 at 01:33:25

    How long have you lived here? 14 Bikini Models
    376

  37. Comment by Lbrbzgro | 2011/12/06 at 03:47:26

    I’ve got a part-time job Nymphet Preteen
    9925

  38. Comment by Scarecrow | 2011/12/20 at 06:00:12

    I was hoping to use your tutorial to help me convert my FLAC to MP3s, but the latest version of Foobar2000 (v1.1.10) is not set up the same as the version used in your example (v0.9.5.6). For example, when I expand “Tools” in the Preferences menu I have only the subdirectory of “Tagging” and its subdirectory of “freedb Tagger.” While I can find “Tools” > “Converter” under Advanced, none of the directions you give here are helpful.

    I have been able to use Foobar to convert, but the method I used was very different from what you show here. Perhaps it is time for an update?

  39. Comment by BENZ | 2011/12/30 at 20:22:22

    HI LO MAXIMO

  40. Comment by Xhcoprej | 2012/01/04 at 12:31:33
  41. Comment by RaxPrinna | 2012/01/04 at 23:27:30
  42. Comment by nasawerq | 2012/01/17 at 05:18:10

    buy declomycin without a prescription canada Cheapest Invega Generic Online,buying diarex online without prescription Best buy Invega Without Prescription London,buy ortho tri-cyclen legally Sale Invega COD Delivery

  43. Comment by primary school | 2012/02/01 at 05:38:27

    Looking forward for your next post


Trackbacks & Pingbacks »»

  1. Trackback by Carisoprodol patient information. | 2010/06/18 at 19:42:40

    Carisoprodol phentermine yellow all on one site….

    Carisoprodol phentermine yellow all on one site. Carisoprodol….

Leave a Reply »»