Attempt syntax error fix

This commit is contained in:
Theelgirl 2021-01-15 21:28:20 -05:00 committed by GitHub
parent 4a7744c463
commit 0ebec491b5
1 changed files with 2 additions and 3 deletions

View File

@ -115,10 +115,9 @@ def get_bits_from_video(video_filepath):
print('Reading video...')
image_sequence = []
os.system('ffmpeg -i ' + video_filepath + ' -c:v libx264rgb -filter:v fps=fps=' + FRAMERATE + ' ' + TEMPVIDEO)
os.system('ffmpeg -i ' + TEMPVIDEO + ' ./fvid_frames/decoded_frames_%d.png');
os.system('ffmpeg -i ' + TEMPVIDEO + ' ./fvid_frames/decoded_frames_%d.png')
os.remove(TEMPVIDEO)
# for filename in glob.glob(f"{FRAMES_DIR}decoded_frames*.png"):
for filename in sorted(glob.glob(f"{FRAMES_DIR}decoded_frames*.png"), key=os.path.getmtime) :
for filename in sorted(glob.glob(f"{FRAMES_DIR}decoded_frames*.png"), key=os.path.getmtime):
image_sequence.append(Image.open(filename))
bits = ""