Author Topic: Avisynth script for doubling the framerate | Twixtor alternative  (Read 5564 times)


  • Member
  • ***
  • Posts: 185
Hello :)

I just want to share a little Avisynth script that allows you to double your RAW video's framerate without Twixtor.

That's really helpfull for the DSLRs without CF card slots like the 550D, 600D or 60D. Since they are limited to a 21 Megabyte/s write speed, resolutions above 0.5 Megapixel aren't possible if you shoot at 24 frames per second. And to be honest, 960 X 544 looks like crap compared to 1920 X 1080 even if it's raw :(

But if you have the possibility to double the framerate in post, than you can shoot at 12 frames per second but with twice as much resolution. At 12 f/s you can shoot at 1344 X 768 (16:9) or 1536 X 656 (21:9 | 2.35:1). And those resolutions actually look better than 1920 X 1080 H.264.

So here is the script:

Code: [Select]
# Replace YOUR_PATH with the directory of your mvtools2.dll file.

Source = ImageSource("YOUR_SOURCE_PATH\%d.tif", 1, X, 12).ComplementParity.ConvertToYUY2
# Replace YOUR_SOURCE_PATH with the directory of your source files.
# I assume that you edited your DNG images with Lightroom and saved them as TIFFs.
# If that's true, make sure that they are somehow numbered. E.g.: 1, 2, 3 ... Replace X with the name of your last frame.

super = MSuper(Source, pel=1)
backward_vec = MAnalyse(super, blksize=16, overlap=4, isb = true, search=3)
forward_vec = MAnalyse(super, blksize=16, overlap=4, isb = false, search=3)

MFlowFps(Source, super, backward_vec, forward_vec, num=24, den=0, mask=0)

To run this script, you need Avisynth, MVTools2 and probably VirtualDub (Everything as 32-bit version).

The script isn't perfect, but it works pretty well and the results look better than Canon's default 1920 X 1080 H.264 imo.
If you have a camera with slow write speed, I think you should give it a try.
If you own Twixtor, you can use that of course. If you have an idea how to improve the script, feel free to share it :D

UPDATE: I did some more tests and it looks like my script isn't as good as I thought. My first tests looked really good, almost like actual 24p. But the newer ones look horrible ...

Maybe there's no way to avoid filming at low resolutions :(