FFMpeg with auto installation and a fluent api.
npm install pegg
const pegg = require("pegg");
(async () => {
pegg.ffmpeg("/path/to/file.avi"); // See https://www.npmjs.com/package/fluent-ffmpeg
})();
Type: fluent-ffmpeg object
The Fluent FFMpeg object to use.
Convert a Fluent FFMpeg object to use a Promise.
Type: fluent-ffmpeg object
The object to convert.
Execute the ffmpeg
binary with raw commandline input.
Type: ...string
The commandline arguments to use.
The paths to the binaries that pegg uses.
- All functions are no longer behind a promise.
getBinaryPaths()
is nowpaths
.- Removed prepare. A functional equalivent is automatically run on install.
- Pegg now downloads the binaries to the appdata folder under the
pegg-nodejs
subfolder to prevent the need to redownload the binaries due to clearing the temp directory.
- Removed
when
. Pegg will now automatically ensure readiness when calling any other functions. paths
has been replaced withgetBinaryPaths
.exec
now only works forffmpeg
and assumes each function argument as part of the command.ffmpeg
now returns a promise which will resolve to the fluent ffmpeg object.- Bluebird promises have been swapped out for native promises via async/await and similar methods.
- Debug information is no longer logged.