Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'A command line ogg to mp3 converter' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A command line ogg to mp3 converter
Authored by: blentz on Feb 15, '10 07:27:11PM

I had filenames with spaces and I wanted to process a directory tree recursively, so I ended up doing something like this (note that I'm using "-d wav" not "-d raw")

$ find Desktop/Music/ -type f -name "*.ogg" -exec echo ogg123 -d wav -f - \"{}\" \| lame -h -m s -b 192 - \"{}.mp3\" \; | bash

The ogg123 and lame tools and associated libraries were available in fink.

$ fink install libao2 libogg libvorbis vorbis-tools lame



[ Reply to This | # ]