E.g. by rendering the VideoView node hierarchy frame-by-frame to an image buffer (see here) and then into a video encoder.
VideoView