Code for reading video from devices and writing it to disk.