Last active
October 29, 2022 19:15
-
-
Save oscar230/166f48c9c8066c72bd4edbdae0ceb860 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 | |
echo "Starting FLAC to MP3 320kbps converter." | |
if ! command -v ffmpeg &> /dev/null | |
then | |
echo "Error: ffmpeg could not be found" | |
exit | |
fi | |
find . -name "*.flac" -exec ffmpeg -n -i '{}' -ab 320k -map_metadata 0 -id3v2_version 3 '{}'.mp3 \; -exec mv '{}' '{}'.remove \; | |
echo "Completed." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Run with: