Video writing is too slow in OpenCV

Its now merged into 4.x so no need for the patch.