Skip to content

Instantly share code, notes, and snippets.

@noah
Created May 2, 2016 17:00
Show Gist options
  • Save noah/de6b99e74fe4d1c2b84f17b1e430cd82 to your computer and use it in GitHub Desktop.
Save noah/de6b99e74fe4d1c2b84f17b1e430cd82 to your computer and use it in GitHub Desktop.
# recursively convert all flac to mp3 and add to ipod
#!/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