I am trying to extract a video using a take record.

I am trying to extract a video using a take record.
After creating a button on the widget and calling the start recording function, I need to extract the render movie from the sequence. Is there a function that captures the render movie?