[NTLUG:Discuss] Transcoding MP3s
Wayne Walker
wwalker at bybent.com
Sun Jul 16 10:03:10 CDT 2006
If you want to keep the spaces:
lame -b 128 -cbr ${FILE}.mp3 /user/${FILE}.mp3
becomes
lame -b 128 -cbr "${FILE}.mp3" "/user/${FILE}.mp3"
On Sat, Jul 15, 2006 at 06:09:40PM -0500, agoats wrote:
> Since you don't seem to be getting any good answers, here's some real
> help:
>
> Using lame:
>
> #!/bin/sh
>
> for i in *.mp3
> do
> file=${i%.mp3}
> echo $FILE
>
> lame -b 128 -cbr ${FILE}.mp3 /user/${FILE}.mp3
> done
>
> for i in *.MP3
> do
> file=${i%.MP3}
> echo $FILE
>
> lame -b 128 -cbr ${FILE}.MP3 /user/${FILE}.mp3
> done
>
>
>
> The above will convert the current directory of mp3's to 128kbps bit
> rate, 44.1kHz sample rate, constant bit rate mp3's in directory /user.
> The format is repeated for *.MP3 and if you have any Mp3, you need to
> add that section as well.
>
>
> The only problem I have with this is filenames with spaces, those are
> skipped. Anyone know how to correct that?
>
> Alvin
>
> _______________________________________________
> http://ntlug.pmichaud.com/mailman/listinfo/discuss
--
Wayne Walker
www.unwiredbuyer.com - when you just can't be by the computer
wwalker at bybent.com Do you use Linux?!
http://www.bybent.com Get Counted! http://counter.li.org/
Perl - http://www.perl.org/ Perl User Groups - http://www.pm.org/
Jabber: wwalker at jabber.gnumber.com AIM: lwwalkerbybent
IRC: wwalker on freenode.net
More information about the Discuss
mailing list