Help me with a batch script for WAV and FLAC to MP3 conversion, Anyone savvy in command prompt? |
![]() ![]() |
Help me with a batch script for WAV and FLAC to MP3 conversion, Anyone savvy in command prompt? |
Dec 5 2012, 00:08
Post
#1
|
|
|
Group: Members Posts: 5 Joined: 2-December 12 Member No.: 104931 |
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? |
|
|
|
Dec 5 2012, 01:43
Post
#2
|
|
|
Group: Developer (Donating) Posts: 2332 Joined: 28-June 02 From: Argentina Member No.: 2425 |
I would do that with foobar2000.
-------------------- MAREO: http://www.webearce.com.ar
|
|
|
|
Dec 5 2012, 02:26
Post
#3
|
|
|
Group: Members Posts: 5 Joined: 2-December 12 Member No.: 104931 |
I know, but I'd prefer to do it without any software, just a batch script
This post has been edited by aax: Dec 5 2012, 02:26 |
|
|
|
Dec 5 2012, 22:09
Post
#4
|
|
|
Group: Members Posts: 97 Joined: 14-January 12 Member No.: 96426 |
What OS?
|
|
|
|
Dec 5 2012, 23:14
Post
#5
|
|
|
Group: Members Posts: 10 Joined: 11-October 12 Member No.: 103766 |
flac -d *.flac
for f in *.wav; do lame -V 0 "$f" "${f%.wav}.mp3"; done |
|
|
|
Dec 5 2012, 23:36
Post
#6
|
|
|
Group: Members Posts: 5 Joined: 2-December 12 Member No.: 104931 |
Win 7.
And how about keeping tags? I suppose I need metaflac for that? |
|
|
|
Dec 5 2012, 23:44
Post
#7
|
|
|
Group: Members Posts: 10 Joined: 11-October 12 Member No.: 103766 |
No clue. I use foobar.
|
|
|
|
Dec 5 2012, 23:58
Post
#8
|
|
|
Group: Members Posts: 144 Joined: 1-March 11 Member No.: 88621 |
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. |
|
|
|
Dec 6 2012, 01:00
Post
#9
|
|
![]() Group: Super Moderator Posts: 9265 Joined: 1-April 04 Member No.: 13167 |
-------------------- Everything sounds the same until it is proven otherwise.
|
|
|
|
Dec 6 2012, 23:10
Post
#10
|
|
|
Group: Members Posts: 5 Joined: 2-December 12 Member No.: 104931 |
OK, I've found these FLAC Transcoder 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. This post has been edited by aax: Dec 6 2012, 23:10 |
|
|
|
Dec 10 2012, 01:11
Post
#11
|
|
|
Group: Members Posts: 5 Joined: 2-December 12 Member No.: 104931 |
Is there a way to specify to write image as front cover when using --ti "file" switch?
By default it saves it as "other". |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 24th May 2013 - 05:19 |