Displaying two live video feeds on a webpage from same camera

I would like to display two live video feeds one is the original video and the other one supposed to be masked video. How can I achieve that? Right now I can display same feeds on a flask page. I need one of them to be masked.