Last active
September 9, 2021 12:34
-
-
Save philtgun/304d70727d9bda5a0aee7a9e92ddbe69 to your computer and use it in GitHub Desktop.
Bulk convert m4a files to mp3
This file contains 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
#!/usr/bin/env bash | |
# recursive find | |
find . -name "*.m4a" -exec bash -c 'ffmpeg -i "{}" -codec:a libmp3lame -q:a 0 "../audio-mp3/${0/.m4a}.mp3"' {} \; | |
# one directory | |
for i in *.wma; do ffmpeg -i "$i" -codec:a libmp3lame -q:a 0 "${i/.m4a}.mp3"; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment