Video written through OpenCV on Raspberry Pi not running
Video written through OpenCV on Raspberry Pi not running Question: I was working on saving live feed from USB webcam through opencv on Raspberry PI 4 B+ . Here is the code import cv2 cap = cv2.VideoCapture(0) fourcc=cv2.VideoWriter_fourcc(”D’,’I’,’V’,’X”) out=cv2.VideoWriter(‘output.mp4’,fourcc,25,(640,480)) while True: ret, frame = cap.read() cv2.imshow(‘frame’, frame) out.write(frame) if cv2.waitKey(1) & 0xFF== ord(‘q’): break cap.release() …