0.0.7 • Published 2 months ago

rife-fps v0.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

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
}
0.0.5

2 months ago

0.0.7

2 months ago

0.0.6

2 months ago

0.0.4

3 months ago

0.0.3

3 months ago

0.0.2

3 months ago

0.0.1

3 months ago