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.


  1. my streaming is not working ….. when i open test.html file is show play , pause , stop , full ,,, when click on play this error is appear

    File not found

    Firefox can’t find the file at /C:/Documents and Settings/sarfraz/Desktop/”javascript:;”.

    Check the file name for capitalization or other typing errors.
    Check to see if the file was moved, renamed or deleted.

    Plz tell me the full procedure

    Comment by sarfraz — September 5, 2011 @ 11:06 AM

    • First thing first, Are you able to view the streaming in VLC media player (Client side) ?
      If not, then check your VLC streaming server settings first.

      Comment by Pinochio / zaib — September 5, 2011 @ 12:07 PM

  2. Same situation is here i can see streaming on client side on vlc but not on http.

    Comment by salman — October 1, 2011 @ 12:25 PM

  3. I have updated the article, Please read it again and you will be able to Play streaming via FIREFOX web browser. Actually HTML code doesn’t show properly on this blog, so I have to upload the codes at pastebin also. So for code copying, please see the pastebin link.

    Comment by Pinochio~:) — October 1, 2011 @ 2:06 PM

  4. yes it is very helpful.Thanks

    Sir kindly tell me where we have to configure cli ???

    Comment by salman — October 2, 2011 @ 1:16 AM

  5. Use the following command. You can also create its shortcut and place it in STARTUP group so it will run automatically every time windows restart.

    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=

    Just replace the C:\vdo.dat with your required file or list. and also change the IP address to match your ip.

    Comment by Pinochio~:) — October 3, 2011 @ 11:22 AM

  6. Sir when i stream from tv tunner card then on the client side there is black screen shows.Kindly tell me the whats the setting i do for stream a channel from tv tunner card.Thanks

    Comment by salman — October 5, 2011 @ 3:37 PM

    • Do some test to troubleshoot the problem.
      Try stream a local media file and test it at client end. If local stream is wokring, then we can move on to next step , otherwise you must see your VLC and local setup first.

      What TV Tunner card you are using ? The simple method is to first open the channel viewer application which comes with the tv tunner card, then tune the channel, now when you are sure that your tv tunner card have been tunned and you are able to view the channels with its application, close its viewer. Now open the VLC and try to stream it and test in 2nd VLC media player.

      Comment by Pinochio~:) — October 5, 2011 @ 6:46 PM

  7. dear Zaib bahi
    how to change channels from client side ?

    Comment by TIG — November 29, 2011 @ 4:35 PM

    • You can’t allow every one to change the channel.
      However VLC have web panel , look at vlc guide , lot of documentation is available at vlc site.

      Comment by Pinochio~:) — November 30, 2011 @ 10:45 AM

  8. thanks for reply let me check

    Comment by thebad — November 30, 2011 @ 4:40 PM

  9. dear zaib bahi one thing in this image all channels are listing then how its possible if user watch to view another channel expect we are broadcasting in my case i want to 10 channels on local network on web page i need ten TV tuner cards to broad cast them same time that is my question
    i check vlc website also i found diffrent third party remote control vlc software but i want them on web page is that possible ?

    Comment by thebad — November 30, 2011 @ 4:49 PM

    • Dear, The image you pointed is an conceptual diagram to give an idea.
      For example, you have 10 system with channel broadcasting setup, You can setup similar page on your master web server, and link them with the backend channel servers. for example
      etc etc . . .

      Normally You will be needing One TV Tunner card Per Channel.
      If a system is powerful enough, you can Add more then one tv tunner card and use another instance of VLC to broadcast another channel via same system on unused port (Other then first one).

      At a friend’s network , I setup 10 Pc (all normal pentium 4 with very low hardware spec. hardware) broadcasting different channel per server and I linked them with the WEB PAGE similar to the image you mentioned. All users can view channel in browser as well as via VLC Media player too.
      There are so many different thigns you can implement on your network, All depend on your mind creativity and research n development. Do some R&D and you will find your way.

      You can also setup VOD (Video on Demand) via VLC.

      IF you wanna go reall advance, Look at IPTV base project. Unfortunately I don’t have enough financial or physical resources, otherwise I would have written an complete howto guide about it.

      A friend of mine have worked a lot about IPTV base project, you can contact him at [FAISAL = 0345.5264.147]

      Syed Jahanzaib

      Comment by Pinochio~:) — November 30, 2011 @ 8:28 PM

  10. thanks bro

    Comment by thebad — December 1, 2011 @ 11:42 AM

  11. where i put this cli script kindly tell me?

    Comment by azair — December 14, 2011 @ 11:13 AM

    • CLI is required only if you want to start streaming via command / batch file / shortcut.

      Open CMD and navigate to follownig folder then exectue the script.
      C:\Program Files\VideoLAN\VLC>

      Comment by Pinochio~:) — December 14, 2011 @ 12:02 PM

  12. Hi Syed,
    Its really amazing. Thanks for such a beautiful thing.
    One more addition if you can make then it would be great for me.
    I want to play a list of songs continuously. So for this purpose I have made a playlist (local files only) of vlc and streamed that playlist.
    At server side I can see that songs are playing continuously, but at client side vlc is not playing next song automatically. And for playing next song which is already streamed by server I need to click play button of vlc at client side.
    So what to do for making client side also play continuously as server is streaming continuously?

    Comment by Ravi — January 3, 2012 @ 11:39 AM

  13. Hi there,

    I am trying to use the following code but wasn’t able to make it work😦

    @echo off

    vlc -vvv dshow:// :dshow-vdev=”WinFast PalmTop DTV2000 H Capture” :dshow-adev=”WinFast PalmTop DTV200 H Audio”
    :sout=#transcode{vcodec=DIV3,vb=3000,fps=30,scale=1,acodec=mp3,ab=256,channels=2,samplerate=44100}:http{mux=asf,dst=:8080/} :no-sout-rtp-sap :no-sout-standard-sap :ttl=1 :sout-keep

    Would really appreciate your help🙂

    Thanks !!

    Comment by Aaron — March 17, 2012 @ 5:24 PM

  14. assalamalakum bhai agar hum PCI DVR use karin to 16 channel to wo vlc palayer pay client k pass diffrerent channel ek waqat may play ho satay ha PCI DVR be web base pay acess hota ha

    Comment by zaman — March 31, 2012 @ 8:48 PM

  15. bhai koi aur solution hain es tarha to ek he pc say ek channel play ho sakay ga
    ptcl ki iptv share ho sakti hain mikrotik RB pay ???

    Comment by zaman — May 8, 2012 @ 11:13 AM

    • Not possible..

      Comment by Syed Jahanzaib / Pinochio~:) — May 8, 2012 @ 3:09 PM

    • Yes you can stream PTCL IPTV Channels through RB on your local Internet Cable but very tricky

      Comment by Kashif Qamar — October 11, 2012 @ 4:01 PM

      • how tell me ?

        Comment by MJ — December 24, 2012 @ 12:35 AM

      • how?

        Comment by MJ — December 24, 2012 @ 12:35 AM

  16. bhai yeh link check karo es may hay

    Comment by zaman — May 8, 2012 @ 10:55 PM

  17. Lovely Piece, with what uve described, being thinking of how to use VLC for in school bus education program and entertainment, when students are being taken to school and after session return around town….any idea how i can use vlc for this…..this is my tot: All buses are equipped with LCD TV’s connected to Windows PC’s which run vlc client,
    The moment this setup is switched on, on board pc, boots in buses -> Dials a predefined number gsm or cdma modem -> Connects to vlc Server -> Downloads the play list which has details like which video or ad to play at what time -> Video Starts.

    any possibility?????

    Comment by enoch — June 11, 2012 @ 11:48 AM

  18. bhai aap teamviewer pay mere pc may iptv ka setup kar do gay

    Comment by zaman gul — August 31, 2012 @ 9:42 PM

  19. Salam ALaikum Jahanzaib Bhai

    i need to setup a iptv cable with internet cable. i already running a broadband cable on pppoe dialer based clients setup and i also need to setup a iptv for my clients on the same internet network i also made my server on mikrotik and mikrotik also supports multicast but i dont’t know how can i forward ports with internet to run iptv can u please took some time and make a complete guide for this one more great thing. please.

    Comment by Waqas Hussain — September 8, 2012 @ 9:07 AM

  20. bhai muje tv card share karna ha magar nei ho raha manay bohat try ki aap team viewer pay kar do gay

    Comment by Syed Jahanzaib / Pinochio~:) — September 14, 2012 @ 9:43 PM

  21. can i get your phone number syed jahanzaib sahab???? or you can sms me at 0333-3308436 i need your help regarding this setup thankyou.

    Comment by wajih ahmed — September 18, 2012 @ 1:14 AM

  22. I want to embed TV channels on my website, Please help me.
    Ali Mohammad

    Comment by Ali Mohammad — October 28, 2012 @ 1:58 PM

  23. help me how can i play iptv with vlc?

    Comment by MJ — December 24, 2012 @ 12:28 AM

  24. im very glad, this guy is a genius. what do you recomend on setting up IPTV. i need to do this project to broadcast satelite tv or cable tv. please provide me info and i’ll compensate you.
    thank you

    Comment by alex — February 18, 2013 @ 5:18 AM

    • I have no idea on IPTV project as its not my field, I only did couple of installation at various networks to stream live tv channel on LAN using tv tunner card.

      Comment by Syed Jahanzaib / Pinochio~:) — February 18, 2013 @ 12:39 PM

      • Hi
        thank you for quick response.did you use 1 ip tv tunner card for 1 channel. or 1 tv tunner for 20 channels? how will people change channels.

        Comment by alex — February 28, 2013 @ 10:36 AM

  25. Hello Syed,

    I saw the information the IP TV streaming and it was very very interesting with a great how to but I would like to know what I need to do differently if I want to stream a live IP camera through VLC and rebroadcast it to anyone on our website to see the live video. I have tried a few suggestions from multiple sites but the problem has always been with the IP camera file to send/ connect to VLC with IP address and password smoothly. I would appreciate any assistance you can give to accomplish this and I thank you in advance.



    Comment by Kirk Chaplin — May 27, 2013 @ 9:39 PM

  26. Dear Jehanzaib,
    I like your blog. I want to share a TV channel on my network using VLC. For this I first check VLC to play the channel on my local computer. The Dany TV cards are U-1000 and U-2000 are installed correctly and working properly using the DANY’s software for the device.

    When I use VLC to play the channel for testing ( before setting up the streaming) , the dshow:// method just shows the video from the TV card, and no sound. I select all the audio devices shown in the list but unsuccessful. I check this setup on the following two systems with specifications,

    Windows 7 64bit & Windows XP SP2

    Dany TV card U-1000 & U-2000

    VLC 2.0.8

    Please suggest me some solution. Also let me know the exact version of OS , the TV Device and version of VLC in your case which was successful in producing both audio and video from the usb TV device using VLC. Also If you know some software which works like VLC and that you consider an alternative for using VLC for this situation.



    Comment by abdul — August 22, 2013 @ 10:00 PM

  27. Zaib bhai, can I use a single core 2 quad system with 4 tv tuner cards installed on pci slots and able to broadcast 4 channels at single time? If yes than how?

    Comment by Serfraz — November 24, 2013 @ 10:04 AM

  28. I need help to setup an IPTV headend, someone please help me out and contact me

    Comment by Mahboob Alam — January 5, 2014 @ 12:38 AM

  29. hi sir muj ko sirf itna bta dain k jub main vlc ki broadcasting ko firefox ya google chrome k web browser per dhekta hoon to es k volume per cross ka nishan rhyta hai is ko on krne ki jitni bhi try karo ye cross nahi khatam hota aur volume mute hi rheta hai per streaming chal rahi hoti hai.

    Comment by malik javed — February 10, 2014 @ 11:54 AM

  30. hi dear admin i need ur help to make my shareing server i am a internet cable provider 03133999727 call me or mesege me i will calling plz help me bro

    Comment by Anees — April 28, 2015 @ 3:03 PM

  31. dear Sir required link is not working will you please help in this regard thanks

    Comment by Nadeem — September 24, 2015 @ 2:28 PM

  32. please i setup mikrotik on pc
    i install tv card in the pc >>>> how can i get the steram out on html page

    Comment by Amgad — February 6, 2016 @ 4:57 AM

  33. i setup mikrotik 5.2 on my pc whic has a tv card tuner
    i want to transmit the stream output of the card in achannel in my network

    Comment by Amgad — February 6, 2016 @ 5:47 AM

  34. is it possible to broadcast multiple channels using single TV tuner card? on different IPs or ports maybe? so that we can create multiple HTML page like GeoTV.html Tensports.html and ember different ip of those streaming sources.??

    Comment by Shayan — March 4, 2016 @ 6:40 PM

  35. how i can embed tv channel in website

    Comment by 85575048 — August 20, 2016 @ 11:16 AM

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at

%d bloggers like this: