-
-
Save boki1/675d1be7a8ab6aa693ff054438ed5e53 to your computer and use it in GitHub Desktop.
Convert audio files to mp3
This file contains hidden or 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 | |
# https://unix.stackexchange.com/questions/9496/looping-through-files-with-spaces-in-the-names | |
find . -type f -name '*.wav' -exec sh -c ' | |
for file do | |
echo "$file" | |
ffmpeg -i "$file" -acodec mp3 "${file%.*}.mp3" | |
done | |
' exec-sh {} + |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment