scripting lame in Linux

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

scripting lame in Linux

Marty Huntzberry
I have a lot of mp3 files that I want to re-compress with lame into smaller mp3s.  I want the input name to be the output name with _24 appended to
it.  How could I use a script to do this in Linux?  This is the lame command:

lame -m m -b 24 input.mp3 output_24.mp3

Marty
_______________________________________________
mp3encoder mailing list
[hidden email]
https://minnie.tuhs.org/mailman/listinfo/mp3encoder
Reply | Threaded
Open this post in threaded view
|

Re: scripting lame in Linux

Robert Hegemann
Am Samstag, 10. November 2007 21:13 schrieb Marty:
> I have a lot of mp3 files that I want to re-compress with lame into smaller
> mp3s.  I want the input name to be the output name with _24 appended to it.
>  How could I use a script to do this in Linux?  This is the lame command:
>
> lame -m m -b 24 input.mp3 output_24.mp3

in one line:

for i in *.mp3 ; do o=$(basename "${i}" .mp3); lame -m m -b
24 "$i" "${o}_24.mp3"; done



or in multiple lines

for i in *.mp3
do
  o=$(basename "${i}" .mp3)
  lame -m m -b 24 "$i" "${o}_24.mp3"
done

> Marty



Ciao Robert

PS: I'm using the bash shell
_______________________________________________
mp3encoder mailing list
[hidden email]
https://minnie.tuhs.org/mailman/listinfo/mp3encoder
Reply | Threaded
Open this post in threaded view
|

Re: scripting lame in Linux

Marty Huntzberry
thanks!

On Sat, 10 Nov 2007 23:09:56 +0100
Robert Hegemann <[hidden email]> wrote:

Am Samstag, 10. November 2007 21:13 schrieb Marty:
> I have a lot of mp3 files that I want to re-compress with lame into smaller
> mp3s.  I want the input name to be the output name with _24 appended to it.
>  How could I use a script to do this in Linux?  This is the lame command:
>
> lame -m m -b 24 input.mp3 output_24.mp3

in one line:

for i in *.mp3 ; do o=$(basename "${i}" .mp3); lame -m m -b
24 "$i" "${o}_24.mp3"; done



or in multiple lines

for i in *.mp3
do
  o=$(basename "${i}" .mp3)
  lame -m m -b 24 "$i" "${o}_24.mp3"
done

> Marty



Ciao Robert

PS: I'm using the bash shell
_______________________________________________
mp3encoder mailing list
[hidden email]
https://minnie.tuhs.org/mailman/listinfo/mp3encoder



     ><>Marty<><

Visit my web site: http://777.servemp3.com
_______________________________________________
mp3encoder mailing list
[hidden email]
https://minnie.tuhs.org/mailman/listinfo/mp3encoder