Skip to content

Instantly share code, notes, and snippets.

@indeedably
Last active January 4, 2020 19:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save indeedably/66b23b42992ac73b82c38509327e7164 to your computer and use it in GitHub Desktop.
Save indeedably/66b23b42992ac73b82c38509327e7164 to your computer and use it in GitHub Desktop.
How convert aac format files to itunes compatible mp3 format
/*
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