From: Doug C. <idi...@us...> - 2010-07-18 08:28:20
|
What version of SoX are you running? How did you get the version of SoX that you're currently trying to use? What is the output from running "sox -V6 input.mp3 output.wav"? The official version of SoX 14.3.1 does not have MP3 decoding/encoding built-in, but it can dynamically load libmad.dll and libmp3lame.dll if they are present. However, the support for dynamically loading these is recent (not present in 14.3.0 and earlier versions) and may not be enabled if you built SoX yourself (requires several build configuration options to be set up correctly). SoX does not support wma. I started writing a plugin to allow it to support wma (using Windows' built-in WMA codec), but I haven't finished it yet, and it is possible that I might never finish it because I'm quite lazy. I suggest using ffmpeg.exe to convert WMA files to a format that SoX can read. Note: I don't recommend using the SoX ffmpeg plugin. It has several nasty bugs, several of which are most obvious when you run it under Windows. Instead, just have ffmpeg.exe write to a format that SoX can accept. You'll get the same result, it will probably work a lot faster, and you'll avoid a lot of problems. Additional note: ffmpeg.exe is great for decoding WMA files, but don't use it to encode them. Its WMA encoder is not very good. The Microsoft WMA encoder is much much better. On Thu, Jul 15, 2010 at 9:52 PM, Mohit Mittal <moh...@gm...>wrote: > Thanks a ton for your response Philip. I will look into compiling with win > binaries. > > -Mohit > > > On Thu, Jul 15, 2010 at 12:31 AM, Fmiser <fm...@gm...> wrote: > >> > Mohit Mittal wrote: >> >> > I am running Windows 7 and want to convert mp3, ogg, wma etc >> > formats to wav format. Can you please suggest how can I do it >> > using sox command line utility. When I run "sox sample.mp3 >> > sample.wav", >> >> That is the correct format for the command. >> >> > I get that it needs libmad but even if i keep the >> > dll for same in the same folder, it does not work. >> >> I'm pretty sure that for SoX to read or write an MP3 it needs to >> be _compiled_ in. So how it responds to an MP3 is what I would >> expect. I can't help with compiling MS Win binaries. >> >> > Other formats are also not supported, it says unknown format. >> > How can I do it, any help in this regard will be appreciated. >> >> I have used SoX about 4 times in MS Windows. That was WinXP, so >> I can't help much. But I think ogg support is built in even in >> the MS Win binary. The version I have (14.3) doesn't seem to >> support wma. >> >> -- Philip >> > |