Skip to content

Instantly share code, notes, and snippets.

@Rainyan
Last active August 27, 2018 17:23
Show Gist options
  • Save Rainyan/712baf7b13f48dcdae6872121b371bb6 to your computer and use it in GitHub Desktop.
Save Rainyan/712baf7b13f48dcdae6872121b371bb6 to your computer and use it in GitHub Desktop.
# https://superuser.com/questions/704493/ffmpeg-convert-m4a-files-to-mp3-without-significant-loss-of-information-quali#704535
mkdir newfiles
for f in *.m4a; do ffmpeg -i "$f" -codec:v copy -codec:a libmp3lame -q:a 2 newfiles/"${f%.m4a}.mp3"; done
for i in *.flac ; do
ffmpeg -i "$i" -acodec libmp3lame "$(basename "${i/.flac}").mp3"
#sleep 60
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment