I would like to have a batch script for converting wav and flac files to mp3 using preset lame switches, copy flac tags and put the resulting files in a folder within the original folder. I'd also like to be able to just drag a folder or file on top of that script to execute it.
Is that something that can be done? If it is, could someone at least make me an outline of such script?
I would do that with foobar2000.
I know, but I'd prefer to do it without any software, just a batch script
What OS?
flac -d *.flac
for f in *.wav; do lame -V 0 "$f" "${f%.wav}.mp3"; done
Win 7.
And how about keeping tags? I suppose I need metaflac for that?
No clue. I use foobar.
I was going to say that little script wouldn't preserve tags.
Only thing I can think of really quick is use metaflac to read tags, parse and store them in variables, then use flac to decode and pipe to lame called with those tags defined on it's command line.
I could write that if I cared enough, but I rarely use mp3 and if I do I generally batch convert using soundconverter or soundkonverter.
http://www.hydrogenaudio.org/forums/index....mp;#entry601287 (http://www.hydrogenaudio.org/forums/index.php?showtopic=67541&st=0&p=601287&#entry601287)
OK, I've found these FLAC Transcoder (http://www.simplefuels.com/tapergeek/flac-transcoder.htm) scripts and edited them to work with latest lame and recommended compression settings and it works really well.
The only problem is that LAME just won't use UTF-16 encoding in tags even when I add "--id3v2-only --id3v2-utf16" as switches.
Is there a way to specify to write image as front cover when using --ti "file" switch?
By default it saves it as "other".