skip to main | skip to sidebar

ЛiНУКСЪ

Emacs-do and Linux-jitsu

19 February, 2006

m4a to mp3

#!/bin/bash
#
# Dump m4a to mp3

for i in *.m4a
do
if [ -f $i ]; then
rm -f "$i.wav"
mkfifo "$i.wav"
mplayer -ao pcm "$i" -aofile "$i.wav" &
dest=`echo "$i"|sed -e 's/m4a$/mp3/'`
lame "$i.wav" "$dest"
fi
done


FAAD

# m4a to wav
for i in *.m4a
do
faad "$i"
x=`echo "$i"|sed -e 's/.m4a/.wav/'`
y=`echo "$i"|sed -e 's/.m4a/.mp3/'`
lame -h -b 192 "$x" "$y"
rm "$x"
done
Posted by Unknown at 3:30 AM

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ►  2010 (3)
    • ►  March (3)
  • ►  2009 (4)
    • ►  July (4)
  • ►  2008 (16)
    • ►  September (2)
    • ►  August (3)
    • ►  July (1)
    • ►  May (3)
    • ►  April (5)
    • ►  February (2)
  • ►  2007 (1)
    • ►  February (1)
  • ▼  2006 (48)
    • ►  December (4)
    • ►  October (5)
    • ►  September (1)
    • ►  August (1)
    • ►  July (1)
    • ►  May (4)
    • ►  April (4)
    • ►  March (11)
    • ▼  February (17)
      • .initrc, bash_complete and other intersting tidbits
      • function fig2ps{ fig2dev -L ps "$1" "${1%.fig}.ps...
      • Mouse Pad SpeedSimple:/etc/X11/xorg.confunder Syna...
      • Check this out
      • ls color
      • m4a to mp3
      • Animated gif
      • MIME Types (Mplayer)
      • Zip Pipe
      • PERL: Read To Colums
      • Setting and unsetting desktop image
      • SSH cygwin
      • say "yes" to Xforwarding
      • customized shortcuts
      • Remove Icons from Desktop (GNOME)
      • Sudo is great
      • Opening Ports Linux

Links

  • Google News
  • Edit-Me
  • Edit-Me

About Me

Unknown
View my complete profile