Skip to content

Instantly share code, notes, and snippets.

@negipo
Created May 11, 2014 05:00
Show Gist options
  • Save negipo/d0f7a352e6d2764b3d09 to your computer and use it in GitHub Desktop.
Save negipo/d0f7a352e6d2764b3d09 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
LOOP_COUNT = 20
def main
`ffmpeg -i #{ARGV.shift} -f mp4 in.mp4`
`ffmpeg #{LOOP_COUNT.times.map { '-i in.mp4' }.join(' ')} -filter_complex "concat=n=#{LOOP_COUNT}:v=1:a=0" out.mp4`
`rm in.mp4`
end
main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment