diff --git a/backgroundremover/utilities.py b/backgroundremover/utilities.py index 52be205..e14159a 100644 --- a/backgroundremover/utilities.py +++ b/backgroundremover/utilities.py @@ -89,7 +89,7 @@ def matte_key(output, file_path, file_path ] framerate_output = sp.check_output(cmd, universal_newlines=True) - total_frames = int(framerate_output) + total_frames = int(framerate_output.replace(',', '').strip()) if frame_limit != -1: total_frames = min(frame_limit, total_frames)