Home > @infiniteobjects/ffmpeg > hasInOutBlackFrames
Check if a video file has black frames at the start or end
Signature:
export declare function hasInOutBlackFrames(filePath: string, checkDuration?: number): Promise<boolean>;
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>
This function is significantly faster than countBlackFrames
as it only checks the start and end of the video.