Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: WAV to MP3 (Read 4079 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

WAV to MP3

Hi All! Eric here, newb to the forum. Lookin' for some advice.

On Sunday's at church, we record the sermons and I put them on the website. I compress them as much as I can when converting them to MP3 (adding id3 tags so we can automate the display based on a simple file drop in a folder - in progress) using our recording software (Sonar Cakewalk). The problem is, I'm a bottle neck. If I'm not there, it doesn't get done. So... I'd like to automate the conversion and copy of the files. With Sonar, I can get an hour sermon down to about 10 meg (mono - 22k - 16 bit...). Is there a free tool out there that can:

1) Convert from the command line into a mega-compressed mp3
2) Add ID3 (v1) tags (less necessary because I can do this with a little C# program if necessary)

Thanks much in advance for any help!
Eric

WAV to MP3

Reply #1
foobar2000   
Nov schmoz kapop.

WAV to MP3

Reply #2
There must be a small app that does this very easily and user-friendly-y, but I can't think of one at the moment.

If you are familiar with the command line you could take the following and adapt it to better suit your needs.  Copy the script below and save it as lame-enc.bat.  All you need to do then is drag a WAVE file onto the batch file icon.  The script will ask you to enter values for the Artist, Album, Title, and Year tags, and then encode to MP3, setting ID3 tags with those values.  Amend "C:\Program Files\Lame\LAME.EXE" to the path to LAME.EXE, and the LAME command line as you see fit.

Code: [Select]
@ECHO OFF
CLS

SET lameExe="C:\Program Files\Lame\LAME.EXE"

SET /P artist=Artist?   :
SET /P album=Album?    :
SET /P title=Title?    :
SET /P year=Year?     :

%lameExe% --preset voice --ta "%artist%" --tt "%title%" --tg "101" --tl "%album%" --ty "%year%" %1 "%~dpn1.mp3"

I just thought of another option: LameDropXPd v2.
I'm on a horse.

 

WAV to MP3

Reply #3
That looks like a great start Synthetic Soul, thanks!!!  I'll just write a little GUI front end for it that gathers the arguments from the user (with examples) and calls the batch file passing the arguments.  I'll adjust the batch file to use %1, %2, %3, and %4 for Artist, Album, Title, and Year.  I'll probably then add a call to SCP (Secure Copy - Like FTP but it encrypts passwords so that it's secure) to push the file to our web server so that it's published.  If anyone is interested in the source code when I get done, I'd be happy to send it out or post it somewhere.

Thanks for all the help!
Eric

[span style='font-size:8pt;line-height:100%']Moderation: Unnecessary quote removed.[/span]

WAV to MP3

Reply #4
One thing I didn't get SS (my bat file scripting has much to be desired):

%1 "%~dpn1.mp3"

%1 is the wav file that you would drop (for me I'll be passing it as an argument - %1 or %5), but the "%~dpn1.mp3" must be naming the output file but I don't get the "~dpn1" part.  Is that going to take the extension off of the %1 for you?  I tried googling it, but google doesn't like special characters...

Thanks Again,
Eric

WAV to MP3

Reply #5
http://www.ss64.com/ntsyntax/parameters.html

Basically it is splitting the parameter into its component parts.

d: drive
p: path
n: filename
x: extension

So, %~dpn1 is, as you say, the whole path without the extension.

Do you really need my batch file if you are writing a GUI?  Your GUI could just take the tag values and pass them to LAME itself.

Have you tried running the batch file as it stands?  It will ask the user for the values quite nicely.  You could make the whole think more user-friendly by adding some ECHO command with instructions, e.g.:

Code: [Select]
@ECHO OFF
CLS
ECHO Please enter values for the file tags.
ECHO.
ECHO Entor the pastor's name for the Artist field.
SET /P artist=Artist?   :
ECHO Enter the church name for the Album field.
...
I'm on a horse.

WAV to MP3

Reply #6
Quote
Do you really need my batch file if you are writing a GUI?  Your GUI could just take the tag values and pass them to LAME itself.


Nope, I'm sure I'll just call Lame directly with your parameters.

Quote
Have you tried running the batch file as it stands?  It will ask the user for the values quite nicely.  You could make the whole think more user-friendly by adding some ECHO command with instructions


I haven't run the batch file because I'm at work and don't want to spend too much time for church stuff while here.  I'll get to it after hours.

I'll be writing a simple GUI because I'll be putting a dropdown in there for source file (I don't want folks to have to memorize the crazy path where Sonar is putting the wav file) and the save to location (on web server) will be an option also based on the sermon (Revelation, Jude, 1John, Guest Speaker...).  It will also rename and copy the source file to an archive because Sonar names it with a crazy name.

Thanks for all the help!!!