https://github.com/moebits/rife-fps
Video framerate interlopation with rife in node.js
https://github.com/moebits/rife-fps
Last synced: about 1 year ago
JSON representation
Video framerate interlopation with rife in node.js
- Host: GitHub
- URL: https://github.com/moebits/rife-fps
- Owner: Moebits
- License: mit
- Created: 2024-02-13T02:39:46.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-16T20:51:41.000Z (almost 2 years ago)
- Last Synced: 2025-02-18T05:51:11.675Z (over 1 year ago)
- Language: TypeScript
- Homepage:
- Size: 22.1 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license.txt
Awesome Lists containing this project
README
### 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
```ts
npm install rife-fps
```
### Useful Links
- [**rife**](https://github.com/megvii-research/ECCV2022-RIFE)
#### Interlopating Videos
```ts
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
```ts
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
}
```