Skip to content

Instantly share code, notes, and snippets.

@EHG613
Created February 10, 2022 05:40
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save EHG613/7009b2f76e3f8dcf383f6cc84a88692a to your computer and use it in GitHub Desktop.
Save EHG613/7009b2f76e3f8dcf383f6cc84a88692a to your computer and use it in GitHub Desktop.
find . -iname '*.flac' -exec bash -c 'D=$(dirname "{}"); B=$(basename "{}"); T="mp3/$D"; mkdir -p "$T"; ffmpeg -i "{}" -ab 192k -map_metadata 0 -id3v2_version 3 -acodec libmp3lame "$T/${B%.*}.mp3"' \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment