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

flipnote-video

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

flipnote-video

A Node.js library to convert Flipnotes to video

  • 1.0.2
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

flipnote-video

A Node.js library to convert Flipnotes to video

Prerequisites

  • Node.js environment
  • FFmpeg - at least version 3.4 or above. You may want to check the node-fluent-ffmpeg readme for more information.

Usage as a Command Line Tool

Get started

Use npm to install flipnote-video globally:

npm i -g flipnote-video --save

Examples

Convert Flipnote to MP4
flipnote-video -i flipnote.ppm -o -c:v libx264 -c:a aac -pix_fmt yuv420p video.mp4
Show Flipnote metadata
flipnote-video -i flipnote.ppm --meta

Usage as a Library

Get started

Use npm to add flipnote-video into your project:

npm i flipnote-video --save

Code Examples

Convert Flipnote to MP4
const fs = require('fs');
const { parseFlipnote, FlipnoteConverter } = require('flipnote-video');

async function convert(inpath, outpath) {
  // read input file
  const file = fs.readFileSync(inpath);
  // parse file as flipnote
  const flipnote = await parseFlipnote(file.buffer);
  // FlipnoteConverter extends node-fluent-ffmpeg's command object
  // https://github.com/fluent-ffmpeg/node-fluent-ffmpeg
  const converter = new FlipnoteConverter(flipnote);

  // Web-friendly MP4 codec settings
  converter.outputOptions([
    '-c:v libx264',
    '-c:a aac',
    '-pix_fmt yuv420p',
  ]);
  converter.output(outpath);
  converter.run();
}

convert('./flipnote.ppm', './video.mp4');

FAQs

Package last updated on 19 Dec 2019

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