Skip to content

Instantly share code, notes, and snippets.

@ucnv
Created July 14, 2010 16:07
Show Gist options
  • Select an option

  • Save ucnv/475617 to your computer and use it in GitHub Desktop.

Select an option

Save ucnv/475617 to your computer and use it in GitHub Desktop.
# http://dl.dropbox.com/u/4316370/reversed_frames.mp4
require 'aviglitch'
a = AviGlitch.open ARGV.shift
# datamosh
a.glitch(:keyframe) do |f|
nil
end
# reverse
q = a.frames[-1, 1]
a.frames.size.times do |i|
q.push a.frames[-2-i]
end
AviGlitch.open(q).output('o.avi')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment