Created
March 29, 2023 07:59
-
-
Save deadghost/79ccff0c1778ad06ab4f136497dc5d49 to your computer and use it in GitHub Desktop.
Converts all .flac in current directory to .mp3
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 | |
for filename in ./*.flac; do | |
ffmpeg -i "$filename" -codec:a libmp3lame -q:a 0 -b:a 320k -compression_level 9 -id3v2_version 3 -write_id3v1 1 "${filename%.*}.mp3"; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment