Last active
January 4, 2020 19:01
-
-
Save indeedably/66b23b42992ac73b82c38509327e7164 to your computer and use it in GitHub Desktop.
How convert aac format files to itunes compatible mp3 format
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
/* | |
iTunes likes mp3 format music. This script converts any *.aac format files to *.mp3 format, then shifts the processed files into the appropriate old and new folders. | |
*/ | |
#!/bin/bash | |
cd ~/Downloads/ | |
mkdir new_music | |
mkdir old_music | |
for f in *.aac; do ffmpeg -i "$f" -codec:v copy -codec:a libmp3lame -q:a 2 new_music/"${f%.aac}.mp3"; mv "$f" old_music; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment