Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

t-rec

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

t-rec

Record your desktop

  • 0.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
Maintainers
1
Weekly downloads
 
Created
Source

T-Rec

FFmpeg-powered screen recording module for Node.js

Requires FFmpeg installed in the PATH

Currently supports Windows and Linux

Usage

  1. Install module using npm install t-rec

  2. Require the module

      let Recorder = require('t-rec')
    
  3. Recorder.Record(options) - function: returns Promise

    • options - Object
      • fps - Integer : The FPS at which the screen will be recorded
      • output - String : The path where the recorded video will be saved at
      • crop - Object
        • x - Integer : Horizontal offset value
        • y - Integer : Vertical offset value
        • width - Integer : Width of the video
        • height - Integer : Height of the video
  4. Example Code:

    Recorder.Record({
      fps: 30,
      output: 'output.mp4',
      crop: {
        x: 0,
        y: 0,
        width: 640,
        height: 480
      }
    }).then((done) => {
      console.log(done)
    }).catch((err) => {
      // ENOENT if FFmpeg is not installed
      console.log(err)
    })
    

Tasks

  • Windows support
  • Linux support
  • macOS support
  • Audio support
MIT © 2018 Stego

Keywords

FAQs

Package last updated on 10 Oct 2018

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc