How to stream video with VLC and HTML5

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.

Bittorrent Sync and how to address mapping on D-Link DSR-500N Router

Right now, I am configuting a Bittorrent Sync network in order to decide if my company should use this service or not.

Bittorrent Sync is similar to Dropbox in the sense that the information will be replicated on each approved computer, the difference is that information doesn't upload to the cloud, it only will be stored in each computer that knows a Secret Key.

I have installed the client in my work computer (Windows) and in a industrial computer that works thanks to Linux. The installation of windows client is very simple, download the installer and run it. The installation of linux client is a bit more complicated but not much. Donwload the tar.gz file for your arch (i386 in my case) then extract files (tar xvzf btsync_i386.tar.gz) and finally run btsync (./btsync).

The windows client has a desktop gui in order to manage your shared folder with the windows system but linux client haven't got it. Linux client has a web gui that you can access it by enter the following URL in your browser:


Inside my network everybody can access it by enter the following URL in its browser:


The problem is that I am behind a DSR-500N router (Only I am behind that router, the rest of worker are connect directly with the company network) so I need map the router IP with the Linux client IP. In order to do that I do the following steps:

Step 1: Click on the Advanced tab and select Firewall Settings > Firewall Rules.

Step 2: Click Add.

Step 3: Create Rule:

From Zone: Insecure (WAN)
To Zone: Secure (LAN)
Service: HTTP
Action: Always Allow

Internal IP address: IP of local machine hosting service
Enable Port Forwarding: unchecked
Translate Port Numbers: Leave Unchecked
External IP address: Dedicated WAN

Step 4: Click Save Settings

And now the rest of worker can access to the web gui of Linux client.