How to stream real time movie to a web page

I want to do this stream live video to internet but face some challenges.

  1.  The image processing algorithm can be done in C++ using opencv. But, how to forward / stream a live video? What command, or how to stream real time movie to a web page?
    
  2.  I understand that there is a work around by processing in the web page itself such as using WebRTC or html5 as described in (http://www.kirupa.com/html5/accessing_your_webcam_in_html5.htm, http://www.html5rocks.com/en/tutorials/getusermedia/intro/). This way is rather slow especially if a heavy image processing needs to handle live movie in real time; therefore, I would prefer the way described in the shown figure.