Skip to content

JumpLink/ffplaycontrol

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 

Repository files navigation

ffplaycontrol

Nodejs module to control ffplay, like omxcontrol for omxplayer.

Requirements

  • ffplay (included in ffmpeg)
  • nodejs (apt-get install nodejs)

Install

npm install ffplaycontrol

Usage

Basic usage

ffplay = require('ffplaycontrol');

ffplay.start(filename);

ffplay.pause();

ffplay.quit();

ffplay() can be passed a mapping function to map the filename to something else. Calling the provided start method is required to actually start the video. Your logic can be async and even choose not to start things:

ffplay = require('ffplaycontrol');
ffplay(function(fn,start) {
    //do something special
    start(fn);
});

About

nodejs wrapper for ffplay

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors