diplomat.utils.video_info.get_frame_count_robust

diplomat.utils.video_info.get_frame_count_robust(video: PathLike) int[source]

Get an accurate frame count for a video.

Parameters:

video – The video to get the frame count for.

Returns:

An accurate frame count. Accuracy is better as this method opens the video and runs through all the frames in the file.