Skip to content

Instantly share code, notes, and snippets.

@derpeter
Created June 8, 2016 12:27
Show Gist options
  • Save derpeter/34dde75e2ea25f610600c3d9a82d045d to your computer and use it in GitHub Desktop.
Save derpeter/34dde75e2ea25f610600c3d9a82d045d to your computer and use it in GitHub Desktop.
for i in "*.m4a"; do echo ffmpeg -i $i -ab 192k "$(basename -s .m4a $i).mp3"; done
or
for i in *.m4a; do out=`echo $i | cut -d '.' -f1`; ffmpeg -i $i -ab 192k $out.mp3; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment