N.
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: 8% [?]
6 Responses to “Convert flac to mp3”
Leave a Reply
Reserved, going to add something here later.



[...] Convert flac to mp3 [...]
Thanks for the useful script;)
My pleasure ;)
Just remember that converting files from one format to another hinders their quality. It’s bad enough that real audio is bad :/
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! :/
Everyone’s running off with their proprietary formats, but MP3 still remains the most popular type despite superior codecs.