Video file writer

Uses ffmpeg. A bit messy but very flexible. I failed to get the OpenCV
file writer working on my computer.