[NTLUG:Discuss] Transcoding MP3s
Alvin Goats
agoats at compuserve.com
Mon Jul 17 21:18:25 CDT 2006
This was close:
lame -b 128 -cbr "${FILE}.mp3" "/user/${FILE}.mp3"
but had an error going to /user. This fixed it!
lame -b 128 -cbr "${FILE}.mp3" /user/"${FILE}.mp3"
Now, it changes everything and keeps the spaces and other characters as
well.
Thanks!
Alvin
Wayne Walker wrote:
>
> 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
>>
>
>
More information about the Discuss
mailing list