Skip to content

Instantly share code, notes, and snippets.

@hz37
Created August 11, 2020 12:02
Show Gist options
  • Save hz37/8c6903defd092f1c06ae59f1a508e23f to your computer and use it in GitHub Desktop.
Save hz37/8c6903defd092f1c06ae59f1a508e23f to your computer and use it in GitHub Desktop.
#!/bin/bash
for f in *.*
do
name=$(echo "$f" | cut -f 1 -d '.')
echo "$name.mp3"
# Or whatever sample rate or bit rate you require of course:
ffmpeg -i "$f" -codec:a libmp3lame -b:a 192K -ar 44100 "$name.mp3"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment