stack

Home > @infiniteobjects/ffmpeg > hasInOutBlackFrames

hasInOutBlackFrames() function

Check if a video file has black frames at the start or end

Signature:

export declare function hasInOutBlackFrames(filePath: string, checkDuration?: number): Promise<boolean>;

Parameters

Parameter Type Description
filePath string Path to the video file
checkDuration number (Optional) Duration to check for black frames at the start and end (in seconds)

Returns:

Promise<boolean>

Remarks

This function is significantly faster than countBlackFrames as it only checks the start and end of the video.