Skip to content

Instantly share code, notes, and snippets.

@stella3d
Created September 4, 2025 06:08
Show Gist options
  • Save stella3d/4de640db1c92bb34dc6f0bb10e2721ce to your computer and use it in GitHub Desktop.
Save stella3d/4de640db1c92bb34dc6f0bb10e2721ce to your computer and use it in GitHub Desktop.
Convert a folder of .FLAC files to 320kbps mp3
for file in *.flac;
do ffmpeg -i "$file" -ab 320k -map_metadata 0 -id3v2_version 3 "${file%.flac}.mp3";
rm "$file";
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment