Stop the actual capture if there is one. Then capture every frame for a TextureRenderTarget2D. The TextureRenderTarget2D needs to be of the same size and have the same pixel format as requested by the media output.