Skip to content

Instantly share code, notes, and snippets.

@davidandrzej
Created March 5, 2012 14:45
Show Gist options
  • Select an option

  • Save davidandrzej/1978597 to your computer and use it in GitHub Desktop.

Select an option

Save davidandrzej/1978597 to your computer and use it in GitHub Desktop.
WMA-to-MP3 bash one-liner
# Assumes WMA files end in *.wma
for f in `ls | grep "\.wma" | rev | cut -d \. -f 2- | rev`; do ffmpeg -i "$f.wma" -acodec libmp3lame -ab 160k -ac 2 -ar 44100 "$f.mp3"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment