Last active
July 24, 2020 20:51
-
-
Save Marc-Bender/1822ca3d435aecece2dd2d86d4cf9ef2 to your computer and use it in GitHub Desktop.
Shellscript to convert M4A and OGG 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
find . -type f -name '*.m4a' -exec bash -c 'ffmpeg -i "$0" -c:a libmp3lame -q:a 2 "$0.mp3" && rm "$0"' '{}' \;& find . -type f -name '*.ogg' -exec bash -c 'ffmpeg -i "$0" -c:a libmp3lame -q:a 2 "$0.mp3" && rm "$0"' '{}' \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment