MP3 to Ogg conversion

Dan Lund situationalawareness at gmail.com
Tue Apr 24 14:25:47 MST 2007


http://faceprint.com/code/
It's called mp32ogg

I made a script that just played the mp3 to stdout and piped it to oggenc.

Naturally, I don't have that script at my disposal.

but I used mpg123 and oggenc to do the decoding/encoding.

Here's a quick-n-dirty script to convert them, with those two apps:

#!/bin/sh
FILES=`ls -1 *.mp3`
MP3DEC="mpg123"
OGGENC="oggenc"
for FILE in ${FILES}
do
        OGGNAME=`echo ${I} | sed "s/.mp3/.ogg/"`
        ${MP3DEC} -s ${I} | ${OGGENC} -r - -o  ${OGGNAME}
done

You can obviously change the location of the oggfiles being created
and such by tacking on a directory before ${OGGNAME}.

HTH,
Dan
On 4/23/07, Nathan Aubrey <paysonlinux at gmail.com> wrote:
> All,
>
> I have literally thousands of mp3 files that I want to convert to ogg. They
> are all legitimate files with no copyrights. Nonetheless, they all have tags
> stating what each file is with author/title and other information in them. Is
> there an easy way to convert them to ogg without having to manually write in
> all the tagging info again?
>
> I am hoping for something that will just read the info into the new file. I
> know I'll loose some quality, but I'm willing to re-encode that as a larger
> file to make up for it.
>
> I want to get away from mp3 and stick with ogg.
>
> nathan
> --
>
> --------------------------------------------------------------
> PaysonLinux User Group
> Community Based Linux Support
> http://www.paysonlinux.org/
>
> Business Consulting Services,
> Advanced Network and Server Design,
> Security Solutions,
> Process Management and Efficiency Consultations
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss at lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change  you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>


-- 
"Courage is like love; it must have hope to nourish it."
-Napoleon Bonaparte


More information about the PLUG-discuss mailing list