Skip to content

Instantly share code, notes, and snippets.

@adamvr
Created July 9, 2011 04:59
Show Gist options
  • Save adamvr/1073335 to your computer and use it in GitHub Desktop.
Save adamvr/1073335 to your computer and use it in GitHub Desktop.
Creating an m4b audiobook from a bunch of mp3s
find . -name '*.mp3' -print0 | xargs -0 -I {} sh -c 'echo "{}"; n="{}~"; cp "{}" "$n"; id3v2 -D "$n"; cat "$n" >> comb.mp3; rm "$n"'; ffmpeg -i comb.mp3 -acodec libfaac audiobook.m4a; mv audiobook.m4a audiobook.m4b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment