rife-fps
TypeScript icon, indicating that this package has built-in type declarations

0.0.7 • Public • Published

About

This package uses pre-built Rife binaries in order to interpolate video frames. You can use this to increase the framerate, for example from 30FPS to 60FPS.

Insall

npm install rife-fps

Useful Links

Interlopating Videos

import rife from "rife-fps"
/*The multiplier multiplies the framerate. To interpolate a 30FPS video into 60FPS set it to 2.*/
await rife.interpolateVideo("./videos/input.mp4", "./videos/input2.mp4", {multiplier: 2}, progress)

/*Just a directory of image frames.*/
await rife.interpolateDirectory("./input_images", "./output_images", {multiplier: 2}, progress)

/*You can track progress with a callback.*/
let progress = (percent: number) => {
  console.log(percent)
}

RifeOptions

export interface RifeOptions {
    multiplier?: number
    ffmpegPath?: string
    sdColorSpace?: boolean
    framerate?: number
    quality?: number
    rename?: string
    rifePath?: string
    threads?: number
    speed?: number
    reverse?: boolean
    pitch?: number
    noResume?: boolean
    pngFrames?: boolean
    transparentColor?: string
}

Package Sidebar

Install

npm i rife-fps

Weekly Downloads

16

Version

0.0.7

License

MIT

Unpacked Size

53.6 MB

Total Files

13

Last publish

Collaborators

  • tenpi