Created
October 16, 2021 12:28
-
-
Save n8jadams/5051664fae882736ff08be6e20e5f31d to your computer and use it in GitHub Desktop.
Convert Apple ALAC (.m4a) to .mp3
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/sh | |
# Find and convert all apple alac (.m4a) files to .mp3. | |
find . -name '*.m4a' -print0 | while read -d '' -r file; do | |
ffmpeg -i "$file" -n -acodec libmp3lame -ab 320k "${file%.m4a}.mp3" < /dev/null && rm "$file" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment