def __init__(self, path, frame_shape):
    super().__init__(path, 'vid_*.mp4')
    fourcc = cv2.VideoWriter_fourcc(*'mp4v')
    self.writer = cv2.VideoWriter(self.resource_path, fourcc, 60, (frame_shape[1], frame_shape[0]))
def __init__(self, path, frame_shape):
    super().__init__(path, 'vid_*.mp4')
    fourcc = cv2.VideoWriter_fourcc(*'mp4v')
    self.writer = cv2.VideoWriter(self.resource_path, fourcc, 60, (frame_shape[1], frame_shape[0]))