add output directory

This commit is contained in:
bene 2023-03-02 08:56:00 +01:00
parent a2598f5912
commit 04852ce382
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ while(cap.isOpened()):
# Format the date and time as a string # Format the date and time as a string
dt_string = now.strftime("%Y-%m-%d_%H-%M-%S") dt_string = now.strftime("%Y-%m-%d_%H-%M-%S")
print(dt_string + " Schreibe mp4 Datei") print(dt_string + " Schreibe mp4 Datei")
out = cv2.VideoWriter("output-" + dt_string + ".mp4", fourcc, fps, frameSize=(width, height)) out = cv2.VideoWriter("output/output-" + dt_string + ".mp4", fourcc, fps, frameSize=(width, height))
for frame in bufferedFrames: for frame in bufferedFrames:
out.write(frame) out.write(frame)
out.release() out.release()