Avisynth MVToolsFPS

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

MVToolsFPS raises the frame rate with MVTools' motion-compensated flow interpolation. It uses the small script MvToolsFPSmod and needs no graphics card.

Filtering → Avisynth → Frame → Interpolation

MVToolsFPS controls in Hybrid
MVToolsFPS controls in Hybrid

The interpolation filters share one FPS adjust: check box and a method list (InterFrame, MVToolsFPS, FrameRateConverter). Choose MvToolsFPSmod in the list to see these controls.

What it does

Motion vectors are estimated forwards and backwards, and new frames are built by moving pixels along them. It is fairly fast, but difficult scenes can show artifacts. It can only raise the frame rate.

Requirements

CPU only. Needs mvtools2.dll (pinterf) and the FFTW library; Hybrid ships both.

Settings

Control Parameter Range Hybrid default Meaning
Target FPS (num / deNum) NewNum / NewDen 1–100000 each 60 / 1 Target frame rate as a fraction.
Preset Preset Film, MusicVideoClip Film Film uses parameters with good flow. MusicVideoClip does the same but does not repeat the last frame at scene changes.
Custom – on/off off Use different presets for different frame ranges. Disables Preset.
Custom value – text – Sections written as from,to,preset, joined with #, for example 0,100,Film#100,200,MusicVideoClip#200,0,Film. The first section starts at 0, each section starts where the previous ended, and a to of 0 means the end of the clip.
Debug custom – on/off off Adds a subtitle with the preset name to each section.

Example

Default settings; the filter works on the clip as it is and Hybrid adds no conversion:

# adjusting frame rate
MvToolsFPSmod(NewNum=60,NewDen=1,Preset="Film")

How Hybrid calls it

  • Hybrid loads mvtools2.dll and FFTW and imports MvToolsFPSmod.avs.
  • All three parameters are always written. With Custom, every section becomes a trimmed part of the clip with its own call, and the parts are joined with +.
  • The filter is skipped, with a comment, 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.
  • MVToolsFPS also offers the common options and can be added to the filter queue several times.

Background

MvToolsFPSmod.avs 0.2 (2019) by Anton Shishkov. Internally it calls MSuper, MAnalyse in both directions and MFlowFps with fixed settings (block size 16, quarter-pixel precision, no overlap); the scene-change threshold is the difference between the two presets. The VapourSynth version offers more options (block size, precision, decimal target rate).

See also: Vapoursynth MVToolsFPS, FrameRateConverter, InterFrame

Sources

  • MVTools2 (pinterf)
  • Hybrid's tooltips
  • The AviSynth+ documentation does not cover MvToolsFPSmod.