Draw on canvas and merge it with video and save it together

I have an app which allow to draw on canvas with free hand paint.
And there is video playing behind the paint.
Is there any way to save the video with the paint data as video file?