Skip to content

Instantly share code, notes, and snippets.

@funky-monkey
Forked from janpaul/mp3concat.rb
Created January 5, 2017 15:29
Show Gist options
  • Save funky-monkey/c120978fc6b0e62dc7e57092e339034b to your computer and use it in GitHub Desktop.
Save funky-monkey/c120978fc6b0e62dc7e57092e339034b 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