Record motion videos from a webcam stream using OpenCV and FFMPEG.