Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jumplink/ffplaycontrol
nodejs wrapper for ffplay
https://github.com/jumplink/ffplaycontrol
Last synced: 28 days ago
JSON representation
nodejs wrapper for ffplay
- Host: GitHub
- URL: https://github.com/jumplink/ffplaycontrol
- Owner: JumpLink
- Created: 2014-06-21T22:23:39.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-06-26T20:38:46.000Z (over 10 years ago)
- Last Synced: 2024-10-19T14:59:57.992Z (3 months ago)
- Language: JavaScript
- Size: 160 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
ffplaycontrol
==========Nodejs module to control [ffplay](https://www.ffmpeg.org/ffplay.html), like [omxcontrol](https://github.com/dplesca/omxcontrol) for omxplayer.
Requirements
------------* ffplay (included in [ffmpeg](http://www.ffmpeg.org/))
* 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);
});