Skip to content

Instantly share code, notes, and snippets.

@kastnerkyle
Last active August 29, 2015 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kastnerkyle/fccdbc3fa69d7d65ae63 to your computer and use it in GitHub Desktop.
Save kastnerkyle/fccdbc3fa69d7d65ae63 to your computer and use it in GitHub Desktop.
convert_mp3_to_wav.sh
ffmpeg -i 111.mp3 -acodec pcm_s16le -ac 1 -ar 16000 out.wav
find ../mp3_symlinks/ -name *.mp3 -exec sh -c 'echo $(basename {} .mp3)' \;
find ../mp3_symlinks/ -name *.mp3 -exec sh -c 'ffmpeg -i {} -acodec pcm_s16le -ac 1 -ar 16000 $(basename {} .mp3).wav' \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment