Skip to content

Instantly share code, notes, and snippets.

@negipo
Created April 12, 2014 23:40
Show Gist options
  • Save negipo/10562300 to your computer and use it in GitHub Desktop.
Save negipo/10562300 to your computer and use it in GitHub Desktop.
LOOP_COUNT = 50
def main
`ffmpeg -i in.gif -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`
end
main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment