Skip to content

Instantly share code, notes, and snippets.

@janpaul
Created January 5, 2017 14:51
Show Gist options
  • Save janpaul/96f1ed9a861e58df0f048be8d10a4ba2 to your computer and use it in GitHub Desktop.
Save janpaul/96f1ed9a861e58df0f048be8d10a4ba2 to your computer and use it in GitHub Desktop.
generate an ffmpeg command that converts a directory full of MP3's to one large MP3
# copy-and-paste the output of this script into a shell, and rejoice.
files=Dir.glob('*.mp3').sort.join('|')
puts "ffmpeg -i \"concat:#{files}\" -acodec copy output.mp3"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment