I am working on video stabilisation algorithm.i want to save the output video after stabilisation but I ended up with both the two frames before and after stabilisation\' becaus