Skip to content

Instantly share code, notes, and snippets.



Last active Dec 4, 2020
What would you like to do?
Convert Flac to MP3 320kbps
# This creates a mp3 folder and will put mp3 files in it after conversion; Requires ffmpeg and libmp3lame codec
# Found in the comments here:
# Change the quality using the qscale parameter or change it to -b:a 320k to convert to 320kbps bitrate (see
mkdir mp3 && for f in *.flac; do ffmpeg -i "$f" -codec:a libmp3lame -qscale:a 2 -map_metadata 0 "mp3/${f%.*}".mp3; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment