Example for how to record video from webcam