Skip to content

Instantly share code, notes, and snippets.

@jeffskelton3
Created December 28, 2015 21:06
Show Gist options
  • Save jeffskelton3/0f179e5863010038f622 to your computer and use it in GitHub Desktop.
Save jeffskelton3/0f179e5863010038f622 to your computer and use it in GitHub Desktop.
converts all wav files in a directory to mp3.
find . -name "*.wav" -exec sh -c 'ffmpeg -i $(basename {}) $(basename {} | cut -f 1 -d '.').mp3' \;
@jeffskelton3
Copy link
Author

NOTE: FOR THIS TO WORK PROPERLY THERE CAN BE NO PERIODS IN THE FILENAME OTHER THAN THE EXTENSION

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