Skip to content

Instantly share code, notes, and snippets.

@svesely
Created June 28, 2010 14:24
Show Gist options
  • Save svesely/455901 to your computer and use it in GitHub Desktop.
Save svesely/455901 to your computer and use it in GitHub Desktop.
#!/bin/bash
SAVEIFS=$IFS
IFS=$(echo -en "\n\b")
for i in $(ls -1 | grep '.*m4a'); do
ffmpeg -ab 256k -i ${i} ${i%m4a}mp3 -map_meta_data ${i%m4a}mp3:${i}
done
IFS=$SAVEIFS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment