Skip to content

Instantly share code, notes, and snippets.

@luckylittle
Created October 27, 2021 07:35
Show Gist options
  • Save luckylittle/2db5215aaeea6cb8c521fb1305bcb0d5 to your computer and use it in GitHub Desktop.
Save luckylittle/2db5215aaeea6cb8c521fb1305bcb0d5 to your computer and use it in GitHub Desktop.
Convert all M4A to MP3 using ffmpeg
#!/bin/zsh
find . -type f -name '*.m4a' -execdir /bin/zsh -c '/usr/bin/ffmpeg -i $0 -c:v copy -c:a libmp3lame -q:a 4 ${0/m4a/mp3}' {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment