Created
May 2, 2016 17:00
-
-
Save noah/de6b99e74fe4d1c2b84f17b1e430cd82 to your computer and use it in GitHub Desktop.
# recursively convert all flac to mp3 and add to ipod
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
#!/bin/sh | |
# recursively convert all flac to mp3 | |
# | |
for dir in "$@"; do | |
echo "+ $dir" | |
find "$dir" -type f -name "*.flac"\ | |
| parallel -u\ | |
ffmpeg -v warning -n -i {} -qscale:a 0 {.}.mp3 | |
done | |
# recursively add to ipod | |
# | |
for dir in "$@"; do | |
ga "$dir" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment