Converting lossless WMA to MP3 for FLAC format

I need to find a way to convert lossless wma files to mp3 or flac format (the end result needs to be mp3 but if we can get it to a flac format that will be good enough). This needs to be done as an automated process on a 64 bit Debian Squeeze platform. Ideally, the solution will be done using Lame but if it needs to be done using something else (ffmpeg or mplayer) I can live with that. If there is no pre-existing command line tool that can do there but there is a C++ library that can perform this conversion that is also ok but having something pre-built would be preferable.

Some information that might help:

- The WMA files are all DRM free.
- I really am not interested in any solution that involves Wine, Windows or 32 bit Linux (these are not an option)
- The solution must work from a batch process (no GUI!)
- The process must be automated as it will be part of an automated ingestion system
- This is quite urgent as it's currently blocking a very significant workflow
- Please do ask if there is any more info you need

Thanks in advance.

In case you are wondering, the format shifting I am performing is perfectly legitimate (ie. no laws are being broken and I have the copyright holders permission to undertake this process). If you have any doubt please take a look at my profile, specifically who I work for.
LVL 40
evilrixSenior Software Engineer (Avast)Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

evilrixSenior Software Engineer (Avast)Author Commented:
This was resolved thanks to the assistance of one of my colleagues.

Basically, be created a chroot'd 32bit instance of a Debian install and build a statically linked version of mplayer that would then work with the w32codecs package.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.