Last active
December 4, 2020 03:01
-
-
Save LouWii/422c9808bfedcb6a277a19b2b30a3b35 to your computer and use it in GitHub Desktop.
Convert Flac to MP3 320kbps
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
# 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