PDA

View Full Version : How to convert mp3 for wma to wav



paulga
30th August 2010, 02:52 AM
I want to trim an wma file, but audacity does not open it. I assume it opens wav files, so I have to do this conversion first..
I know ffmpeg, mencoder or lame could do it. But I'm not so sure about those long operations options, could anyone give me a specific command which can convert mp3 to wav ? thanks in advance.
I used to know how to do it, but now when I want to redo I have to google for it again, but this time I could not find the perfect command..:rolleyes:

smr54
30th August 2010, 03:59 AM
Simplest would be

ffmpeg -i myfile.wma myfile.wav

paulga
30th August 2010, 05:08 AM
thanks! is there some option controlling the quality, bitrate, etc?

sidebrnz
30th August 2010, 07:43 AM
You might want to try SoundConverter. The preferences give you the control you need without having to remember CLI options.

gadgetwiz
30th August 2010, 08:47 AM
thanks! is there some option controlling the quality, bitrate, etc?
These links may come in handy.

http://www.catswhocode.com/blog/19-ffmpeg-commands-for-all-needs

http://ffmpeg.org/ffmpeg-doc.html

smr54
30th August 2010, 11:14 AM
Yes, there are many, many, options. The command I gave was the VERY simple version. I would browse through the links gadetwiz gave, the ffmpeg man page and also

http://howto-pages.org/ffmpeg

bonedome
30th August 2010, 04:30 PM
Hello
If you play the track with mplayer you can find out the bitrate etc, the problem you'll have is once a track has been compressed (mp3, aac etc) you can never return it to it's original state, also different compression codecs have differing quality for the same bitrate.
.wav usually indicates a raw lossless recording, ffmpeg will convert just about anything to whatever you want, to reduce the size of a cd track (which will be a raw uncompressed file) try the simple command given by smr54 if you give no options ffmpeg will use the defaults, just append the output file name with the format you require
ffmpeg -i ~/Music/track1.wav ~/Music/track1.mp3The bitrate will have the biggest effect on file size, so to force a given bitrate add -ab 192k (or whatever bitrate you want, I wouldn't go below 128k for decent audio quality) to the above command :D

paulga
30th August 2010, 06:15 PM
Thanks a lot! I once played with all the options of ffmpeg, but didn't really memorized them.
mencoder commands are even more out of reach.