Skip to content

Instantly share code, notes, and snippets.

@trapple
Created April 16, 2016 14:52
Show Gist options
  • Save trapple/9a6cbd2fc1e678f7158fee0560a7dfde to your computer and use it in GitHub Desktop.
Save trapple/9a6cbd2fc1e678f7158fee0560a7dfde to your computer and use it in GitHub Desktop.
#!/bin/sh
set -e
for fromFile in *.wma; do
newName=`basename "$fromFile" .wma`
ffmpeg -i "./$fromFile" -acodec mp3 -ab 160k -map 0:0 "${newName}.mp3"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment