Skip to content

Instantly share code, notes, and snippets.

@ucnv
Created January 9, 2011 22:34
Show Gist options
  • Save ucnv/772097 to your computer and use it in GitHub Desktop.
Save ucnv/772097 to your computer and use it in GitHub Desktop.
require 'aviglitch'
a = AviGlitch.open ARGV.shift
keys = []
a.frames.each_with_index do |f, i|
keys << i if f.is_keyframe?
end
keys.each do |i|
fa = a.frames[i]
fb = a.frames[i+1]
fb.data = fa.data
a.frames[i] = fb
end
a.output 'out.avi'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment