Socket
Socket
Sign inDemoInstall

rife-fps

Package Overview
Dependencies
72
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    rife-fps

Video framerate interlopation with rife


Version published
Weekly downloads
17
decreased by-5.56%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

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
  • rife
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
}

Keywords

FAQs

Last updated on 14 Feb 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc