Created
May 11, 2014 05:00
-
-
Save negipo/d0f7a352e6d2764b3d09 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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