converting m4a to mp3
November 29th, 2004 stevel
ripped a bunch of CDs on Wendy’s laptop with iTunes, which saved them in m4a format. i see gStreamer supports the m4a format, but i’d rather have it in mp3 just for uniformity.
i know i know, “you should just switch to ogg”
anyway:
perl -e ‘foreach $file (ls *.m4a) { chomp $file; $newfile = $file; $newfile =~ s/.m4a/.mp3/; faad -w "$file" | lame -b 192 - "$newfile"; }’
i know this could be written as a much shorter shell script, but i know perl better than shell scripting, and this works under my linux system - so i’ll stick with it.
[tags: Code]
6 Comments Add your own
-
1.
Nick | December 27th, 2004 at 21:17
Thanks for that perlscript. I use debian and xmms doesnt really like the m4a files very much. I appreciate it.
-
2.
Droopy | January 23rd, 2005 at 13:18
This Url I put Down Converts M4a To Mp3 Or The Other Way Around Plus a couple more formats
-
3.
Droopy | January 23rd, 2005 at 13:19
-
4.
bubsy | February 16th, 2005 at 14:25
downloaded the xilisoft converter - was V good!! thx droopy.
-
5.
metallikop | August 3rd, 2005 at 21:25
I’d recommend using –alt-preset 192 instead of -b 192. Just my .02. Thanks for the script though.
-
6.
Smukati | December 19th, 2005 at 10:24
Leave a Comment
Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>









