Skip to content

Instantly share code, notes, and snippets.

@maurostorch
Last active May 27, 2016 18:25
Show Gist options
  • Save maurostorch/6071055 to your computer and use it in GitHub Desktop.
Save maurostorch/6071055 to your computer and use it in GitHub Desktop.
Convert a set of wav file from a directory to MP3 with avconv
#/bin/bash
for i in *.wav; do avconv -i "$i" -c libmp3lame -ac 2 -b:a 192k "`echo $i|sed 's\wav\mp3\g'`" ; done
@maurostorch
Copy link
Author

On Ubuntu 13.04 just install the following packages:
sudo apt-get install libavcodec-extra-53 ffmpeg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment