TASBlend.avsi — Method of lowering framerate while maintaining flickering sprites

Implementation of the “TASBlend” filter, based on the filter described at http://tasvideos.org/EncodingGuide/TASBlend.html but with some additional comments and features.

TASBlend(c, ratio=0.6666, assertEven=False)
Parameters:
  • c (clip) – the clip to blend
  • ratio (float) – the ratio of the first frame compared to the second, defaults to 2/3rds.
  • assertEven (bool) – when true, check to make sure there are an even number of frames. This is necessary if you want to make sure that you’re not potentially desyncing by a single frame if you’re combining a blended clip with an unblended clip.

The resulting clip will be “TAS blended” together and therefore be at exactly half the input framerate.