How do I render video with rotoscope mask?
The Viewer and  Composite nodes are different outputs, The Composite node is the one that is rendered out and saved to a file. The viewer is just to preview the result. Connect the composite so that it follows the same node path as the viewer, otherwise the images get processed following different transformations.