Class: FfmpegRespawn

FfmpegRespawn(options) → {FfmpegRespawn}

new FfmpegRespawn(options) → {FfmpegRespawn}

Parameters:
Name Type Description
options Object
Properties
Name Type Attributes Default Description
params Array.<String> Parameters passed to ffmpeg process.
pipes Array.<Writable> | Array.<function()> <optional>
Array of writable pipes and/or functions to receive data output from ffmpeg stdio[n].
path String <optional>
ffmpeg Specify path to ffmpeg if it is not in PATH.
logLevel String <optional>
quiet Valid options: quiet, -8, panic, 0, fatal, 8, error, 16, warning, 24, info, 32, verbose, 40, debug, 48, trace, 56.
killAfterStall Number <optional>
10 Valid range: 10 - 60. Number of seconds to wait to kill ffmpeg process if not receiving progress.
reSpawnDelay Number <optional>
2 Valid range: 2 - 60. Number of seconds to wait to re-spawn ffmpeg process after it exits.
reSpawnLimit Number <optional>
1 Valid range: 0 - Infinity. Number of attempts to re-spawn ffmpeg after exiting without progress. Fail event will be emitted after reaching limit.
debug Boolean <optional>
false If true, will output some debugging data to console.
Source:
Returns:
Type
FfmpegRespawn

Members

(readonly) ffmpeg

Source:

(readonly) params

Source:

(readonly) progress

Source:

(readonly) running

Source:

(readonly) stdio

Source:

Methods

destroy()

Stops process and makes instance unusable
Source:

start() → {FfmpegRespawn}

Source:
Returns:
Type
FfmpegRespawn

stop() → {FfmpegRespawn}

Source:
Returns:
Type
FfmpegRespawn