Convert flac to mp3
What you will need:
- Python : Scripting/Programming Language
- Flac 1.1.2 win : Free Lossless Audio Codec [Homepage]
- Lame 3.96.1 win : mp3 encoder [Homepage]
Note: These file versions may be outdated. I havent tested later versions, but those work perfectly fine.
How-To:
Here is a little script I wrote in python; flac2mp3.txt (rename the extension from .txt to .py)
You will find the files flac.exe and lame.exe in the zip files linked above. Note that you need to place flac.exe and lame.exe in your path, for example in C:\Windows\System32. Also note that the line:
lame_command = 'lame --ta "Mozart" --tl "Requiem" --tg "Classical" '
needs to be changed manually to reflect artist, album, and genre respectively.
After you manage to put them all together, all you have to do is run the script. If you renamed it flac2mp3.py then run it like so.
>flac2mp3.py "C:\Mozart Requiem"
And make sure the path is correct and is in quotes if it has spaces in it.
Popularity: 12% [?]


content rss

May 4th, 2007 at 1:26 pm
[...] Convert flac to mp3 [...]
May 10th, 2007 at 2:33 pm
Thanks for the useful script;)
May 10th, 2007 at 8:08 pm
My pleasure ;)
July 20th, 2007 at 11:39 pm
Just remember that converting files from one format to another hinders their quality. It’s bad enough that real audio is bad :/
July 21st, 2007 at 7:46 am
Real audio is mostly useless now. Too bad mp3 players don’t support lossless formats like flac, or ape. I’m not sure if AAC is considered lossless or not, but its the best format for mp3 players so far! :/
July 21st, 2007 at 10:21 am
Everyone’s running off with their proprietary formats, but MP3 still remains the most popular type despite superior codecs.
July 19th, 2009 at 9:43 pm
Cowon players are the best! They support FLAC, OGG, and other formats. Being a big supporter of open standards, FLAG and OGG are pretty much the only formats I use. Look Cowon up, they make really nice DAPs (SUPER long battery life, AM/FM radio, line-in/microphone/radio recording, 24-bit color screens, ..etc).