stack

Home > @infiniteobjects/ffmpeg > asPromise

asPromise() function

Promisify an ffmpeg command

Signature:

export declare function asPromise(command: FfmpegCommand, bailAfter?: number): Promise<void>;

Parameters

Parameter Type Description
command FfmpegCommand The ffmpeg command to execute
bailAfter number (Optional) The maximum allow time for the command to execute, leave blank for unlimited

Returns:

Promise<void>