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

    http://www.xilisoft.com/downloads/x-audio-converter.exe

  • 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

    http://www.share2.com/audio/wmatomp3converter.htm


Leave a Comment

Required

Required, hidden



Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to comments via RSS Feed

Search

Pages


New Photos

2008-07-24 The After After Party @ OpenSourcery by Stephen Lau2008-07-24 Beerforge (The Songbird Party) by Stephen Lau
2008-07-24 OSCON Day 2 at the Booth by Stephen Lau2008-07-23 John Plocher vs. Jörg Schilling Sumo Wrestle by Stephen Lau
2008-07-23 OSCON Day 1 by Stephen Lau2008-07-22 OSCON Day 0 by Stephen Lau
2008-07-21 Bummin' Around Portland by Stephen Lau2008 Photos of Char-siu by Koshi by Stephen Lau
2008-07-05 Climbing Six Toe Rock at Castle Crags by Stephen Lau2008-06-28 Neighbourhood Beagles by Stephen Lau

Categories