Created
August 11, 2020 12:02
-
-
Save hz37/8c6903defd092f1c06ae59f1a508e23f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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