LAME MP3 command-line questions
2009-07-28 00:01:46
Hi, I am new to LAME and trying to work out a script. So far I have the following (have not changed title/artist etc. yet): Using 3.98.2 so do not need to add "--vbr-new and -h", correct?lame -V 0 --tt "title" --ta "artist" --tl "album" --ty "year" --tc "comment" --tn "track[/total]" --tg "genre" --ti "file" --tv "id=value" sample.wav sample1.mp3 My question is though, what are the correct ID3Tags for copyright and URL? And do I need to specify stereo, joint-stereo, or duel-channel? If so, how do you do that? Was also interested to know, when using VBR, are you able to configure it so say it uses a minimum bit-rate of 128, an average bit-rate of 192, and a maximum bit-rate of 256? And again if so, how would you do that? Now in regards to batch encoding. I did some searching and came across the below script:@echo off rem WinXP CMD file to encode all WAV files in a folder to MP3s via LAME.EXE.. rem Make sure this cmd file resides in the same folder as LAME.EXE. rem rem The argument to this cmd file should be the full path to the folder containing the WAV files. rem Display our arguments.. echo Full Arg: %1 echo Drive: "%~d1" echo Path: "%~p1" echo Name: "%~n1" echo Ext: "%~x1" rem Change to arg drive and path %~d1 cd "%1" cd rem Encode with Lame.. for %%z in (*.wav) do "%~dp0lame.exe" --preset standard "%%z" "%%~nz.mp3" pause :end How it should work is that you name the above file something.cmd and move it into the folder with lame.exe. Then create a shortcut, the move it to your desktop, now you should be able to just drag and drop your folder with the .wav tracks onto the .cmd file and it will batch encode them to .mp3. I have not tried it yet because I was unsure where to add my encode settings from the first part of this thread to the batch encode script. Would think it would replace the "--preset standard" part. Could anyone help? Thanks