[Linux-disciples] Converting from Ogg to MP3 en masse
Adam Rosi-Kessel
adam at rosi-kessel.org
Tue Jul 5 09:34:34 EDT 2005
Stephen R Laniel wrote:
> Is there some tool out there that will allow me to do
> something really simple like
> ogg2mp3 ~/mp3s
I think all the handy converters go the other way. Free software
developers are more interested in free music formats.
You might try just searching around freshmeat.net, though.
In any case, it really wouldn't be more than a 10 line script. You
don't need to do mplayer etc.; just
oggdec -o - $x | lame - ${x%%ogg}mp3
where x is your ogg file to be converted.
Adding metatags would be a quick hack of grepping the output of ogginfo
or vorbiscomment, and adding the proper switches to lame, e.g.
title=`vorbiscomment $x | grep -i title | sed "s/^title=//gi"`
(etc...)
oggdec -o - $x | lame - -tt $title ${x%%ogg}mp3
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 254 bytes
Desc: OpenPGP digital signature
Url : http://lists.bostoncoop.net/pipermail/linux-disciples/attachments/20050705/ac6e49fb/signature.pgp
More information about the Linux-disciples
mailing list