Wednesday, December 24, 2008

Convert ogg to mp3

My sister is here for the holidays. Unfortunately her mp3 player only supports mp3 and no ogg. :-(
I helped her to convert their ripped ogg files from her kubuntu system into mp3 files. The following command transforms the whole directory from ogg in mp3.

for i in *.ogg; do sox "$i" "${i/.ogg}".mp3; done

(sox old.ogg neu.mp3 is the basic command to transform ogg to mp3.)

No comments: