geekSearz

Custom Search

Friday, March 13, 2009

VLC player as streaming server/client

Till yesterday, i didn't know that VLC player can be used as a streaming server. Its really easy to use vlc as streaming server. You don't need to install any extra software other than VLC player. You can also control the player from client's browser.

For easy understanding, will explain with an example.
Say, System A with ip 10.129.11.111 is server
System B with ip 10.129.12.135 is client


Settings at Server side(System A):
  • Open vlc player
  • Click on 'File -> Open File'
  • Browse and select a video/audeo file in 'Open' location bar
  • Select the 'Stream/Save' option in Advanced options and Click on 'Settings' just beside the 'Stream/Save' check box
  • Select 'Play locally' if you want file to be played on server also
  • Select 'UDP' and type the address of the client in address location bar, here it is 10.129.12.135
  • Click 'OK'. Thats it.
Now Server is ready to stream.

  • To get the control of player from client(B)'s browser, On server(A), Click on 'Settings -> Add Interface -->Web Interface'


Settings at Client side(System B):
  • Open VLC player
  • Click on 'File -> Open Network Stream'
  • Everything is already set, just click on 'OK'
Thatsit, You can see the file playing.

To control from client's browser. Open browser, type "http://serverIP:8080" (in our example, http://10.129.11.111:8080 ) in the address bar. Then you will get the Controls on your browser.