Using command line to encode WAV to MP3

Discussions for GoldWave plug-in development
Post Reply
VinceZhou
Posts: 7
Joined: Wed May 02, 2007 11:00 pm

Using command line to encode WAV to MP3

Post by VinceZhou »

I am working on a C# program that converts WAV files to MP3.
The WAV files are in either PCM or u-LAW format.

When I ran the command
C:\Program Files\GoldWave>GoldWave.exe /process:MP3 "C:\temp\Sample3.wav"

but GoldWave pops up an error message: "The preset could not be loaded: MP3"

Does this error message have to do with my trial version?

Thanks ahead for your help

Vince
GoldWave Inc.
Site Admin
Posts: 4372
Joined: Wed Mar 10, 2004 6:43 pm
Location: St. John's, NL
Contact:

Re: Using command line to encode WAV to MP3

Post by GoldWave Inc. »

That is not a limitation of the trial version.

Make sure you've created the MP3 preset under the File | Batch Processing command. Also make sure the preset exists for the user that is running the C# program (if it is running under a different account).

Chris
VinceZhou
Posts: 7
Joined: Wed May 02, 2007 11:00 pm

Post by VinceZhou »

Chris,

Thanks for the response. I got it working now.
Where are the presets saved? I could not find them in GoldWave directory.

thanks,
Vince
VinceZhou
Posts: 7
Joined: Wed May 02, 2007 11:00 pm

How can I specify multiple files in a command line

Post by VinceZhou »

Dear Chris,

Using wildcard symbol *, I can batch process multiple files. But what if I have files which I can't use wildcard to cover them? Can I put multiple file names in a command line?

thanks,
Vince
GoldWave Inc.
Site Admin
Posts: 4372
Joined: Wed Mar 10, 2004 6:43 pm
Location: St. John's, NL
Contact:

Re: How can I specify multiple files in a command line

Post by GoldWave Inc. »

Multiple files can be listed on the command line for batch processing.

Presets are stored in the Windows registry.

Chris
Post Reply