Jump to content
Why become a member? ×

MP3 Encoding


thisnameistaken
 Share

Recommended Posts

Simple command-line LAME works fine with default settings for me: [url="http://www.rarewares.org/mp3-lame-bundle.php"]http://www.rarewares.org/mp3-lame-bundle.php[/url] .

Save the following as ConvertWAVtoMP3.vbs:
[code]Option Explicit

Sub Main()
if Wscript.Arguments.Count <> 1 then
Wscript.echo&#40;&#34;Incorrect command-line argument&#34;&#41;
Wscript.Quit&#40;-1&#41;
end if

Dim wav_filename &#58; wav_filename = Wscript.Arguments&#40;0&#41;
Dim mp3_filename &#58; mp3_filename = Replace&#40;wav_filename, &#34;.wav&#34;, &#34;.mp3&#34;, 1, 1, 1&#41;
'Wscript.echo&#40;wav_filename&#41;
'Wscript.echo&#40;mp3_filename&#41;

if wav_filename = mp3_filename then
Wscript.echo&#40;&#34;Input file is not .wav&#34;&#41;
Wscript.Quit&#40;-1&#41;
end if

Dim converter &#58; converter = &#34;d&#58;\software\lame3.97\lame.exe&#34;
Dim invocation &#58; invocation = &#34;%comspec% /c &#34; + converter + &#34; &#34;&#34;&#34; + wav_filename + &#34;&#34;&#34; &#34;&#34;&#34; + mp3_filename + &#34;&#34;&#34;&#34;
'Wscript.echo&#40;invocation&#41;

Dim WshShell &#58; Set WshShell = WScript.CreateObject&#40;&#34;WScript.Shell&#34;&#41;
Call WshShell.Run&#40;invocation, 8, true&#41;
'WScript.Sleep&#40; 4 * 1000 &#41;
Set WshShell=nothing

'Wscript.echo&#40;&#34;done&#34;&#41;
End Sub

Call Main&#40;&#41;[/code]

change the "converter" line to the right path to the Lame exe. Then create a shortcut to the VBS in your C:\Documents and Settings\Your Name\SendTo folder and you can activate a context menu Send To item on any WAV file in Windows explorer.

Link to comment
Share on other sites

[quote name='sdgrsr400' post='714560' date='Jan 16 2010, 04:55 AM']Simple command-line LAME works fine with default settings for me: [url="http://www.rarewares.org/mp3-lame-bundle.php"]http://www.rarewares.org/mp3-lame-bundle.php[/url] .

Save the following as ConvertWAVtoMP3.vbs:

...

change the "converter" line to the right path to the Lame exe. Then create a shortcut to the VBS in your C:\Documents and Settings\Your Name\SendTo folder and you can activate a context menu Send To item on any WAV file in Windows explorer.[/quote]

Neat I like that. Thanks.

Link to comment
Share on other sites

[url="http://eusing.com/CDRipper/CDRipper.htm"]http://eusing.com/CDRipper/CDRipper.htm[/url]

This simple little program is much more than a CD extractor, it encodes WAVs to other formats as well. Have used this for many years for all my simple MP3 encoding jobs.

The ID tagging is also fairly simple and easy to use. Audacity can be a bit inflexible with that.

It's free as well, which is nice.

Edited by Sharkfinger
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...