check_for_video

lib.video.check_for_video(input_location: str) bool

Check whether the given input is a video file or a folder

Parameters:

input_location (str) – Full path to an input file

Returns:

bool

Return type:

‘True’ if input is a video ‘False’ if it is a folder.

Raises:

FaceswapError – If the given location is a file and does not have a valid video extension.