#!/usr/bin/env python3 from pathlib import Path import cv2 as cv import numpy as np output_path = Path("output/generated-motion.mp4") width, height = 640, 360 fps = 24.0 frame_count = 72 fourcc = cv.VideoWriter_fourcc(*"mp4v")