[Nottingham] Converting mp3 to ogg

Alex Walker alex at x3ja.co.uk
Sat Aug 15 17:05:41 UTC 2009


How about:

for f in `find /my/mp3/directory | grep .mp3$`;
    do mpg321 $f -w raw && oggenc raw -o `echo $f | sed -e 's/.mp3$/.ogg/'`;
done

or something? (Completely untested, but just an idea). Should be able to
leave it and you'll come back to a load of ogg files in with your mp3 files.
Of course if you want to use a new tree I guess you could do...

for f in `find /my/mp3/directory | grep .mp3$`;
    do mpg321 $f -w raw && oggenc raw -o `echo $f | sed -e
's/mp3\/directory/ogg\/directory/ -e 's/.mp3$/.ogg/'`;
done

(where /my/mp3/directory is your mp3 music root and /my/ogg/directory is
your ogg music root)

I'm sure I did something like that back in the past, but then ended up just
re-ripping them all from CDs so I could avoid lossy-to-lossy conversion.

Cheers
Alex

2009/8/15 Simon Sleaford <simon.sleaford at gmail.com>

> I'm trying to convert my mp3 collection to ogg, I've managed to do a few
> using Oggconvert http://oggconvert.tristanb.net/.
>
> I'm happy enough that I'm not losing too much quality wise by converting
> from one format to another but it's a little slow because it seems to only
> be able to do one file at a time.
>
> Can anybody recommend a program that will do a folder of files or even
> crawl my music folder and convert everything while I leave it to it?
> Preferably looking for something that will leave the originals intact in
> case of any hiccups before I've checked them out.
>
> Cheers
>
> Simo.
>
> _______________________________________________
> Nottingham mailing list
> Nottingham at mailman.lug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/nottingham
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.lug.org.uk/pipermail/nottingham/attachments/20090815/814f4bef/attachment.htm 


More information about the Nottingham mailing list