Created
December 31, 2021 09:45
-
-
Save icheft/f25bc009c31f0300c265c1f2c8176873 to your computer and use it in GitHub Desktop.
macOS m4a to mp3 conversion
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| if [[ $1 == *.m4a ]]; then | |
| base="$(basename "$1" .m4a)" | |
| ffmpeg -i "$1" -codec:v copy -codec:a libmp3lame -q:a 2 "$base.mp3" | |
| fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment