Guest User

Untitled

a guest
Jan 21st, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. function TASBlend(clip c, float "ratio") {
  2. # reduces framerate to 1/2 but leaves flicker effects partly visible
  3. # blends frame pairs with alternating opacity (default is 2/3+1/3;1/3+2/3)
  4. # optional "ratio" is the opacity of the first frame out of the four
  5. ratio = default(ratio, 2.0 / 3)
  6. opacity1 = round((1 - ratio) * 257)
  7. opacity2 = round(( ratio) * 257)
  8. c
  9. Interleave(Layer(SelectEvery(4, 0), SelectEvery(4, 1), level=opacity1),
  10. \ Layer(SelectEvery(4, 2), SelectEvery(4, 3), level=opacity2))
  11. }
  12.  
  13. AVISource("60_fps_avi_dump_thing_from_snes9x.avi")
  14.  
  15. TASBlend
Add Comment
Please, Sign In to add comment