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: http://www.boback.com/2013/how-to-convert-flac-to-mp3-ubuntu-command-line/ | |
# Change the quality using the qscale parameter or change it to -b:a 320k to convert to 320kbps bitrate (see https://trac.ffmpeg.org/wiki/Encode/MP3) | |
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