From 79d280d40f26eec3d91fd9584ba91a0616c27cc1 Mon Sep 17 00:00:00 2001 From: Kautenja Date: Sat, 3 Apr 2021 17:16:12 -0500 Subject: [PATCH] look for JPG --- frames_to_video.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frames_to_video.py b/frames_to_video.py index 1e911a6..a9a49ac 100644 --- a/frames_to_video.py +++ b/frames_to_video.py @@ -31,7 +31,7 @@ def pairs(iterable): interpolation_frames = int(argv[3]) # get the frames from the given directory in sorted order -frames = [filename for filename in listdir(directory) if '.png' in filename] +frames = [filename for filename in listdir(directory) if '.jpg' in filename] # use the integer filename value to account for the lack of 0 padding frames = sorted(frames, key=lambda x: int(re.sub(r'[^0-9]+', "", x))) # open the frames as images