Syed Jahanzaib Personal Blog to Share Knowledge !

July 25, 2011

Howto stream Live TV Channel / Local File over the Network using VLC GUI n CLI and view it via browser/player!

Filed under: Microsoft Related — Syed Jahanzaib / Pinochio~:) @ 7:57 AM

Channel List Page hosted on Local Web

Channel List Page hosted on Local Web

Following is a quick guide on Howto broadcast local media File OR LIVE TV Channel using TV Tunner Card over the network using VLC media player, and this streaming can be viewed at client pc either via VLC media player or Firefox Web Browser.


For Server Mode:
1) Any Windows Operating System like XP / 2003 / Win7
2) TV Tunner Card (For TV Channel) (I used DANNY’s TV card)
3) Local Media Files like Videos MV / FLV /DAT file(s)

For Clients Mode:
1) VLC Media Player OR
2) Firefox Web Browser (First install FIREFOX then install VLC in FULL mode)



First install VLC Media plyer. [I used 0.98a version in this example].
Open VLC Media Player,
Goto Media > Streaming ,
Now select your desired file and click on Stream button.
See the attached picture.

Now a new window will open and it will give you many option to choose.

# First in OUTPUT options, select HTTP, in address bar type your system Local ip , in my case its and in port, type any available port, I used 1234.

# Now in Profile section, we will use ready made profile name “Windows (wmv/asf).

That’s it. Now hit the STREAM button, and it will start streaming the file over the network.
See the image below.


You can also stream any file using CLI method which is quick (once you get familiar with the idea how streaming works in GUI), its also useful to make batch scripts if you want start Streaming automatically when the system restarts.

CLI for Local File:

C:\Program Files\VideoLAN\VLC>vlc.exe -vvv c:\vdo.dat :sout=#transcode{vcodec=WMV2,vb=800,scale=1,acodec=wma,ab=128,channels=2}:duplicate{dst=std{access=http,mux=asf,dst=


vlc -vvv dshow:// :dshow-vdev="713x BDA Analog Capture" :dshow-adev="" :sout=#transcode{vcodec=WMV2,vb=800,scale=1,acodec=wma2,ab=128,channels=2,samplerate=44100}:duplicate{dst=http{mux=asf,dst=:1234/},dst=display} :no-sout-rtp-sap :no-sout-standard-sap :ttl=1 :sout-keep

To Add Logo in Streaming:

vlc -vvv --logo-file C:\aa.jpg dshow:// :dshow-vdev="713x BDA Analog Capture" :dshow-adev="" :sout=#transcode{vcodec=WMV2,vb=800,scale=1,acodec=wma,ab=128,channels=2,sfilter=logo}:duplicate{dst=display,dst=std{access=http,mux=asf,dst=>

HOWTO STREAM Video via  HTTP method:

Open Notepad, and paste the following text.
(For some reasons, html code doesn’t show properly on wordpress BLOGs, So please copy the raw code from following pastebin link:

<head><title>Live TV Channel Stream Testing</title>
<meta name="description" content="Live TV Channel Stream Testing Template By">
<body bgcolor="#000000">
<h1 align="center"><font color="#FF0000">Live TV Channel Stream Testing<br>
</font><blink><font size="4" color="#FFFF00">Template By
</font><font color="#00FF00" size="2">SYED JAHANZAIB </font>
<font size="4" color="#00FF00">
<a href=""><font color="#FFFF00"></font></a></font></blink></h1>
<p align="center"><font color="#FF0000">
<embed type="application/x-vlc-plugin"
autoplay="yes" loop="no" hidden="no" width="640" height="480"
target="" />
<br />

Now SAVE this file as tv.html , Open it in FIREFOXand it will automatically start playing the streaming file.

You can also copy it to your IIS web server root folder e.g c:\inetpub\wwwroot so any of your client can view it via there browser pointing to your webserver e.g


Howto View Streaming Video from Client Side using VLC

First install VLC Media Player on client computer, then Open VLC media player,
Goto Media > Open Network and type and hit enter,it will start playing the streaming video. See the attached picture.

Howto View Streaming Video from Client Side using Firefox Web Browser:

Open Firefox Browser and type

Sample Output:

# How to change the channel Which is broadcasting . . .

There are couple of options and controls that you can provide to your users. VLC is very advance and powerful application for all sorts of multimedia needs. Just dig more n more n you will find the solution. You can even create IPTV base project  in VLC or simply create Video On Deman VOD which is very easy.

First Open the Tv Tunner viewer and tune all the channels using auto scanning. Then view any channel of your choice, now close the viewer application. Now If you start broadcasting the channel using VLC, it will by default stream the channel that you last viewed by the TV Tunner viewer application.

%d bloggers like this: