Home > @infiniteobjects/ffmpeg > asPromise
Promisify an ffmpeg command
Signature:
export declare function asPromise(command: FfmpegCommand, bailAfter?: number): Promise<void>;
| 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>