Simple one-liner to batch convert one type of audio file to another using ffmpeg. The example converts .ogg to .mp3 files:
for x in *.ogg; do ffmpeg -i "$x" "`basename "$x" .ogg`.mp3"; done
Simple one-liner to batch convert one type of audio file to another using ffmpeg. The example converts .ogg to .mp3 files:
for x in *.ogg; do ffmpeg -i "$x" "`basename "$x" .ogg`.mp3"; done
August 12th, 2011 on 15:20
for a batch script retard like myself the “for x in *” stuff is a life saver!!!
Although I always seem to be blowing MP3′s out to wave then re-encoding as speex… but that’s a whole ‘nother story.
Thanks for the tip!