Simple Video recorder ported from: https://github.com/vanevery/Custom-Video-Capture-with-Preview