Skip to content

Instantly share code, notes, and snippets.

@tamoyal
Created September 17, 2021 23:52
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tamoyal/a2fd3d76f6327d8e963f5136291c073d to your computer and use it in GitHub Desktop.
Save tamoyal/a2fd3d76f6327d8e963f5136291c073d to your computer and use it in GitHub Desktop.
For batch converting aif to mp3 and keeping original filename
for f in *.aif;
do
ffmpeg -i "$f" -f mp3 -acodec libmp3lame -ab 192000 -ar 44100 "${f%.aif}".mp3;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment