Skip to content

Instantly share code, notes, and snippets.

@deadghost
Created March 29, 2023 07:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deadghost/79ccff0c1778ad06ab4f136497dc5d49 to your computer and use it in GitHub Desktop.
Save deadghost/79ccff0c1778ad06ab4f136497dc5d49 to your computer and use it in GitHub Desktop.
Converts all .flac in current directory to .mp3
#!/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