* [gentoo-user] re-encode mp3 files
@ 2004-12-06 8:59 Khan
2004-12-06 10:55 ` SHI Ning
0 siblings, 1 reply; 5+ messages in thread
From: Khan @ 2004-12-06 8:59 UTC (permalink / raw
To: gentoo-user
Hello,
I have some mp3's that are encoded ok 160Kbps. I would like to lover
they bitrate to 30Kbps. Which software should I use.
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] re-encode mp3 files
2004-12-06 8:59 [gentoo-user] re-encode mp3 files Khan
@ 2004-12-06 10:55 ` SHI Ning
2004-12-08 2:35 ` Ow Mun Heng
0 siblings, 1 reply; 5+ messages in thread
From: SHI Ning @ 2004-12-06 10:55 UTC (permalink / raw
To: gentoo-user
I think you can use lame to do it.
On 09:59 Mon 06 Dec , Khan wrote:
> Hello,
>
> I have some mp3's that are encoded ok 160Kbps. I would like to lover
> they bitrate to 30Kbps. Which software should I use.
>
>
>
> --
> gentoo-user@gentoo.org mailing list
>
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] re-encode mp3 files
2004-12-06 10:55 ` SHI Ning
@ 2004-12-08 2:35 ` Ow Mun Heng
2004-12-08 11:02 ` Lluís Batlle i Rossell
0 siblings, 1 reply; 5+ messages in thread
From: Ow Mun Heng @ 2004-12-08 2:35 UTC (permalink / raw
To: gentoo-user
On Mon, 2004-12-06 at 18:55, SHI Ning
wrote:
> I think you can use lame to do it.
>
> On 09:59 Mon 06 Dec , Khan wrote:
> > Hello,
> >
> > I have some mp3's that are encoded ok 160Kbps. I would like to lover
> > they bitrate to 30Kbps. Which software should I use.
You can take a page out of this script.
cat convert2mp3.pl
#!/usr/bin/perl -w
use strict;
foreach my $file (@ARGV) {
next if ($file !~ /\.wma$/i);
my $base = $file; $base =~ s/\.wma$//i;
system "mplayer \"$file\" -ao pcm -aofile \"$base.wav\"";
system "lame -h \"$base.wav\" \"$base.mp3\"";
unlink("$base.wav");
print "$base.wma converted to mp3.\n";
}
--
Ow Mun Heng
Gentoo/Linux on D600 1.4Ghz
Neuromancer 10:34:23 up 1:36, 6 users, 0.37, 0.32, 0.27
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] re-encode mp3 files
2004-12-08 2:35 ` Ow Mun Heng
@ 2004-12-08 11:02 ` Lluís Batlle i Rossell
2004-12-08 11:16 ` Lluís Batlle i Rossell
0 siblings, 1 reply; 5+ messages in thread
From: Lluís Batlle i Rossell @ 2004-12-08 11:02 UTC (permalink / raw
To: gentoo-user
I personaly prefer using a pipe. :)
Here is my "mp32mp3.sh":
#!/bin/bash
echo "Converting mp3 to mp3..."
if [ $# -lt 2 ]; then
echo "Usage: $0 <dest-dir> <abr> <mp3_1> <mp3_2> ..."
exit 1
fi
DEST="$1"
ABR="$2"
shift
shift
for a in `seq 1 $#`; do
echo "* Converting \"$1\"... "
exit 1
fi
DEST="$1"
ABR="$2"
shift
shift
for a in `seq 1 $#`; do
echo "* Converting \"$1\"... "
mpg321 -q -w - "$1" | lame --abr $ABR - "$DEST"/"$1"
if [ $? = 0 ]; then
echo \[done\]
else
echo failed
fi
shift
done
% END
--
+-------------------------------------------------------+----------------------+
| Lluís Batlle i Rossell |Tel.Olot. 972 26 71 24|
| Membre de [s3os] (www.s3os.net) | BCN. 93 16 22 680|
| viric@jabber.org / ICQ# 9658637 | Mòb. 654 08 67 35|
| +info personal: http://vicerveza.homeunix.net/~viric/ | Santa Pau / Catalunya|
+-------------------------------------------------------+----------------------+
Cita:
- Press any key to accept the license.
(Dell Computers)
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] re-encode mp3 files
2004-12-08 11:02 ` Lluís Batlle i Rossell
@ 2004-12-08 11:16 ` Lluís Batlle i Rossell
0 siblings, 0 replies; 5+ messages in thread
From: Lluís Batlle i Rossell @ 2004-12-08 11:16 UTC (permalink / raw
To: gentoo-user
Fek. There are doubled lines....
I should have kept my mouth shout up. I corrected that.
On Wed, Dec 08, 2004 at 12:02:51PM +0100, Lluís Batlle i Rossell wrote:
> I personaly prefer using a pipe. :)
>
> Here is my "mp32mp3.sh":
#!/bin/bash
echo "Converting mp3 to mp3..."
if [ $# -lt 2 ]; then
echo "Usage: $0 <dest-dir> <abr> <mp3_1> <mp3_2> ..."
exit 1
fi
DEST="$1"
ABR="$2"
shift
shift
for a in `seq 1 $#`; do
echo "* Converting \"$1\"... "
mpg321 -q -w - "$1" | lame --abr $ABR - "$DEST"/"$1"
if [ $? = 0 ]; then
echo \[done\]
else
echo failed
fi
shift
done
% END
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2004-12-08 11:16 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-06 8:59 [gentoo-user] re-encode mp3 files Khan
2004-12-06 10:55 ` SHI Ning
2004-12-08 2:35 ` Ow Mun Heng
2004-12-08 11:02 ` Lluís Batlle i Rossell
2004-12-08 11:16 ` Lluís Batlle i Rossell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox