The previous week I was researching how to stream video with VLC to webpage.
So, in order to do that I need launch VLC with de following command (on Linux) in order to capture the screen, transcode it and finally send to localhost port 8181.
vlc screen:// --screen-left=67 --screen-top=53 --screen-width=800 --screen-height=600 --screen-fps=30 --sout '#transcode{vcodec=theo,vb=800,scale=0.25,width=800,height=600,acodec=none}:http{mux=ogg,dst=:8181/}' --ttl=3
In the other hand, I need to built a webpage in order to visualize video stream. To do that I used video tag of html5. It can visualize video adding <video>. Inside <video> I should indicate video source, instead of indicate a source file I indicated http://localhost:8181/ as source.
Now, if I open http://localhost:8181/ in my browser I can see my screen in the webpage.
If I want to visualize a video from video capture card instead of screen:// I should use dshow:// in the vlc command.