const wCap = new cv.VideoCapture(0); var fourcc = cv.VideoWriter.fourcc("MJPG"); var path = \'output.avi\'; // Define the codec and create VideoWriter object