Skip to content

Instantly share code, notes, and snippets.

@stevemclaugh
Last active June 3, 2018 04:37
Show Gist options
  • Save stevemclaugh/2ddd92838d024357f031982c64b53396 to your computer and use it in GitHub Desktop.
Save stevemclaugh/2ddd92838d024357f031982c64b53396 to your computer and use it in GitHub Desktop.

Convert all MP3s in a directory to mono 16/44.1 WAV files

cd /path/to/directory/

for file in *.mp3; 
do ffmpeg -i $file -acodec pcm_s16le -ac 1 `basename "$file" .mp3`.wav; 
done
@stevemclaugh
Copy link
Author

small edit

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