script for video capture