Re: [linux-audio-user] converting large number of ogg's to mp3's

From: Jan Depner <eviltwin69@email-addr-hidden>
Date: Sat Jan 08 2005 - 21:22:44 EET

On Sat, 2005-01-08 at 11:50, rob wrote:

> to convert the files I'm just doing:
>
> sox /shared/music/albums/albumName/song.ogg ~/mp3/albumName/song.mp3
>
> using find I'm not sure how I change the extension from ogg to mp3.
>

Here's the simple solution:

cd /shared/music/albums
find . -name \*.ogg -print -exec sox {} {}.mp3 \;

This will take any file under /shared/music/albums and create an mp3
file with the same name plus a .mp3 extension. In other words,
/shared/music/albums/albumName/fred.ogg will still be there but so will
/shared/music/albums/albumName/fred.ogg.mp3. When it's finished you can
move them wherever you want and use rename to change the name from
*.ogg.mp3 to just .mp3 (although leaving it as .ogg.mp3 would at least
tell you that you've converted from one compressed format to another).

Jan
Received on Sun Jan 9 00:15:07 2005

This archive was generated by hypermail 2.1.8 : Sun Jan 09 2005 - 00:15:07 EET