Avisynth InterFrame

From wiki.selur.net
Revision as of 23:07, 21 November 2026 by Selur (talk | contribs) (Avisynth filter documentation (via create-page on MediaWiki MCP Server))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

InterFrame creates smooth in-between frames with the SVPflow plugins of the SVP project, for example to play 25/30 fps material at 50/60 fps. The script is InterFrame 2.8.2 by SubJunk.

Filtering → Avisynth → Frame → Interpolation

InterFrame controls in Hybrid
InterFrame controls in Hybrid

The interpolation filters share one FPS adjust: check box and a method list (InterFrame, MVToolsFPS, FrameRateConverter). InterFrame is the first entry.

What it does

Motion between neighbouring frames is estimated and new frames are synthesised along the motion. Simple ratios (25 → 50, 30 → 60) work best; odd ratios such as 24 → 60 show more artifacts. It is meant for smoother motion, not for slow motion.

Requirements

Windows with the 64-bit SVPflow DLLs. The GPU option needs an OpenCL-capable graphics card.

Settings

Control Parameter Range Hybrid default Meaning
Preset Preset Medium, Fast, Faster Medium Speed/quality trade-off; Medium is the best quality.
Tuning Tuning Film, Animation, Smooth, Weak Film Film balances accuracy of moving objects and cohesion of the picture. Animation is for cartoons. Smooth tracks single objects more accurately with less cohesion. Weak interpolates less.
Target frame rate NewNum / NewDen 1–999 (step 0.001) 25 Frame rate to interpolate to. If it is not above the rate at the filter's position, the filter is skipped.
Input type InputType 2D, SBS, OU, HSBS, HOU 2D For 3D material (side by side, over under, half variants). Each eye is processed separately, which takes about twice as long.
Override algo. OverrideAlgo 0, 1, 2, 11, 13, 21, 23 0 SVP algorithm. 0: the tuning decides. 1: sharp, no blending. 2: nearest frame, good for 2D animation. 11: time-weighted blend. 13: 11 plus dynamic median, fewest artifacts, some halos. 21: 11 plus cover/uncover masking. 23: 21 plus vectors from adjacent frames.
Override area OverrideArea 0–500 0 Size of the area mask; lower means stronger. 0 lets the tuning decide.
GPU GPU on/off off Use the graphics card (OpenCL) as well as the CPU.
Cores Cores 0–64 0 Number of threads for SVP. 0 = automatic.
Overwrite – on/off off Switches to the three text fields Super, Analyse and Smooth and disables the other controls.
Super / Analyse / Smooth – text SVP parameter strings Parameter strings for SVSuper, SVAnalyse and SVSmoothFps in SVP's own syntax. They are passed on unchanged and not validated.

Example

Default settings with a target of 50 fps on a 10-bit YUV 4:2:0 source. Hybrid converts to 8 bit and back; Cores is taken from the thread setting of Hybrid:

# Converting from 10 to 8bit for Interframe
ConvertBits(8)
InterFrame(NewNum=50,NewDen=1,Cores=64)
# Converting from 8 to 10bit for encoder
ConvertBits(10)

How Hybrid calls it

  • Hybrid loads svpflow1_64.dll and svpflow2_64.dll and imports InterFrame2.avsi. In Overwrite mode it calls SVSuper, SVAnalyse and SVSmoothFps directly.
  • The filter needs 8-bit YV12 and progressive input; Hybrid adds the conversions.
  • Target frame rate is converted to a fraction. NewNum, NewDen and Cores are always written; other parameters only when they differ from the defaults. A Preset other than Medium or Fast is written as "Faster".
  • The filter is skipped, with a log message, when the target is not above the rate at the filter's position.
  • After the filter Hybrid uses the target rate as the new frame rate (not in Overwrite mode, where the rate comes from the Smooth string).
  • InterFrame also offers the common options and can be added to the filter queue several times.

Background

InterFrame 2.8.2 by SubJunk (spirton.com) builds the SVP parameter strings from Preset, Tuning and GPU and calls SVPflow. The SVPflow plugins come from the SVP team. The script also knows the preset "Fastest" and a frame-doubling parameter; Hybrid does not offer them. GPU mode is optional because early versions lost quality with it. Under-cropped sources can show border artifacts.

See also: Vapoursynth Interframe/SVP, FrameRateConverter, MVToolsFPS

Sources