def record(self, numframes):
		""" Record a video, saving it to self.video array for processing later """

		# Eensure we have set our width and height before we record, otherwise our numpy call will fail
		if self.get(CAP_PROP_FRAME_WIDTH) == 0 or self.get(CAP_PROP_FRAME_HEIGHT) == 0:
			self.probe()

		# Ensure num_frames_read is reset to 0
		self.num_frames_read = 0

		# Record a predetermined amount of frames from the camera
		stream, ret = (
			ffmpeg
			.input(self.device_path, format=self.device_format)
			.output("pipe:", format="rawvideo", pix_fmt="rgb24", vframes=numframes)
			.run(capture_stdout=True, quiet=True)
		)
		self.video = (
			numpy
			.frombuffer(stream, numpy.uint8)
			.reshape([-1, self.width, self.height, 3])
		)
 Record a video, saving it to self.video array for processing later 
howdy/src/recorders/ffmpeg_reader.py