Created
June 17, 2016 19:46
-
-
Save dmitrydyomin/7158e8bd4e8d69ff7d606aedd23c8c30 to your computer and use it in GitHub Desktop.
Bash script to convert all flac files in dir 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 | |
for i in *.flac ; do | |
ffmpeg -i "$i" -acodec libmp3lame -ab 256k -y "$(basename "${i/.flac}").mp3" | |
sleep 1 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment