Giter VIP home page Giter VIP logo

fpsdown's Introduction

Avisynth FPS Downconversion Filter

This filter reduces the framerate of a video by 1/2, by blending odd and even frames together. However, it does this in a smart way such that in case of duplicate frames, it will do the smart thing to remove unnecessary blurring in the output video.

Source: https://github.com/arkeet/fpsdown

Binary download: https://github.com/arkeet/fpsdown/releases

Demonstration: http://www.youtube.com/watch?v=XULTJAWCDWk

Interface

FpsDown(clip clip [, bool maxnorm, int threshold, bool debug,
                     bool adjust3xslowdown, float gamma])
  • clip: This is the clip to reduce the framerate of. Note that only clips in RGB32 format are accepted.

  • maxnorm: Selects which norm to use when determining how close two consecutive frames have to be to be considered duplicates. If false, uses an L^1 norm (sum over all pixels of absolute values of differences in each channel). If true, uses a L^infinity (max) norm (the largest absolute value of differences over all pixels). Default value is true.

  • threshold: Two consecutive frames are considered duplicates if the norm (as determined by the maxnorm argument) is smaller than this value. Default value is 8 if maxnorm = true, and 2000000 if maxnorm = false.

  • debug: If true, this will show a small square in the bottom left which is normally white, but black when duplicate frames which should not be blended are detected.

  • adjust3xslowdown: If true, this will blend frames differently in situations with 3 consecutive duplicate frames, in an attempt to make the result smoother and less jittery. Default value is false.

  • gamma: Set the gamma value for gamma correction when blending frames together. Default value is 2.2.

Notes

To load the plugin, simply place fpsdown.dll in the Avisynth plugins directory. Then, to do the framerate conversion, for default settings it suffices to just have this line:

FpsDown()

It is good to use the debug option when testing, however. If two frames which are supposed to be duplicates are not actually detected as such (so that the debug square remains white), try increasing the threshold.

Important note! Because I'm lazy, this function only accepts clips in RGB32 format. If necessary, use the ConvertToRGB32 function first.

fpsdown's People

Contributors

arkeet avatar

Stargazers

 avatar

Watchers

 avatar

fpsdown's Issues

64-bit support

Hey there

Would it be possible if this script could support 64-bit Avisynth builds? I tried to build it myself but got a bunch of errors on compilation.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.