IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
Help me with a batch script for WAV and FLAC to MP3 conversion, Anyone savvy in command prompt?
aax
post 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?
Go to the top of the page
+Quote Post
kwanbis
post Dec 5 2012, 01:43
Post #2





Group: Developer (Donating)
Posts: 2390
Joined: 28-June 02
From: Argentina
Member No.: 2425



I would do that with foobar2000.


--------------------
MAREO: http://www.webearce.com.ar
Go to the top of the page
+Quote Post
aax
post 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
Go to the top of the page
+Quote Post
julf
post Dec 5 2012, 22:09
Post #4





Group: Members
Posts: 359
Joined: 14-January 12
Member No.: 96426



What OS?
Go to the top of the page
+Quote Post
J.Philippe
post 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
Go to the top of the page
+Quote Post
aax
post 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?
Go to the top of the page
+Quote Post
J.Philippe
post Dec 5 2012, 23:44
Post #7





Group: Members
Posts: 10
Joined: 11-October 12
Member No.: 103766



No clue. I use foobar.
Go to the top of the page
+Quote Post
yourlord
post Dec 5 2012, 23:58
Post #8





Group: Members
Posts: 250
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.
Go to the top of the page
+Quote Post
greynol
post Dec 6 2012, 01:00
Post #9





Group: Super Moderator
Posts: 10338
Joined: 1-April 04
From: San Francisco
Member No.: 13167



http://www.hydrogenaudio.org/forums/index....mp;#entry601287


--------------------
Your eyes cannot hear.
Go to the top of the page
+Quote Post
aax
post 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
Go to the top of the page
+Quote Post
aax
post 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".
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 20th December 2014 - 08:27