Wednesday, April 15, 2015

Connecting to Desktop VLC

In this guide you will learn how to connect VLC Direct Pro Free with VLC Player (installed in Windows, Linux or Mac). Once connected, you will be able to stream all kind of media content (videos, music and photos) between PC/Mac and Android devices.

Before you start, you must have installed VLC Player in your PC or Mac. You can find it <HERE>

If you have installed VLC 2.0.1 or VLC 2.0.4, please uninstall it and install VLC 2.1.3 because 2.0.1 and 2.0.4 versions crash when streaming to Android.
Other versions that work fine: 1.1.112.0.0 ,2.0.32.0.52.0.62.0.72.0.82.1.02.1.12.1.2, 2.2.0, 2.2.1

Once you have installed VLC in your PC or Mac, you must configure VLC to connect with VLC Direct Pro Free

No matter whether you have VLC installed in a PC, Linux or Mac OSX, the player needs to be started with some specific parameters in order to be able to connect with VLC Direct Pro Free and stream media to and from Android.

If you have VLC installed in Windows, we recommend you to use VLCDIRECT.BAT script which automatically configures VLC to connect with VLC Direct Pro Free. You can find it <HERE>

 

Running VLC from Command Line

If you are a Linux or Mac OSX user, or if you simply want to have full control of the VLC startup process, you can use the command line approach.

The parameters to be used will depend on the version of VLC you have installed.

To run the commands required to start VLC with parameters you must open a terminal. In windows you can do that in Windows->Search->cmd<enter>





Running VLC 1.1.x series from command line

VLC will start the web interface listening in port 8080, if the port is used, it will try with 8081 and so on until it finds an available port.

Be carefull because VLC won't tell you in which port is actually listening. VLC Direct Pro Free will try to find it in port 8080, but if VLC listens in other you must change it in VLC Direct Pro Free->menu->settings->Manual Configuration->Web Interface Port

You can check on which port is VLC listening from your web browser:

http://127.0.0.1:8080/requests/status.xml
http://127.0.0.1:8081/requests/status.xml
http://127.0.0.1:8082/requests/status.xml

the one which returns an xml response is the port to be used.
Another way to know the port is with the VLC messages log:



The good thing about VLC 1.x series is that the program only requires one parameter:
--extraintf=http

Here's the command line to execute for all operating systems supported:



Windows (32bits):
"C:\Program Files\VideoLan\VLC\vlc.exe" --extraintf=http
Windows (64bits):
"C:\Program Files (x86)\VideoLan\VLC\vlc.exe" --extraintf=http

Linux: 
vlc --extraintf=http
Mac OSX:
/Applications/VLC.app/Contents/MacOS/VLC --extraintf=http
Parameters Description
  • --extraintf=http: Automaticaly enables the web interface



Configure and run VLC 2.0.x from command line

CONFIGURATION
By default, the web interface in VLC 2.0.x series are only accessible from localhost. To allow VLC Direct Pro Free connect to the VLC web interface, you need to configure VLC to listen for remote connections (i.e connections from LAN or Internet).

If you see the messages log of VLC you will see something like this when you enable the web interface:



Note the lines that start with "restricted... ". This means VLC is only listening only for connections coming from localhost.

By default, the configuration file that must be edited is named .hosts or .host, and it is located in the following paths depending on the operating system:

Windows (32bits): C:\Program Files\VideoLan\VLC\lua\http\.hosts
Windows (64bits): C:\Program Files (x86)\VideoLan\VLC\lua\http\.hosts
Linux: /usr/share/vlc/lua/http/.host
Mac: /Applications/VLC.app/Contents/MacOS/share/http/.hosts

Note that you might need administrator (or root) privileges to find, modify and save the file.

Once you find the file, open it with your favourite text editor, and make it look exactly like the text below. Please note the ashes (#) in the begining of the lines.


# ------------------------------------------------------------ START OF THE FILE -----------------------------------------------
#
# Access-list for VLC HTTP interface
# $Id$
#

# localhost
#::1
127.0.0.1

# link-local addresses
#fe80::/64

# private addresses
#fc00::/7
#fec0::/10

# The world (uncommenting these 2 lines is not quite safe)
#::/0
# ------------------------------------------------------------ END OF THE FILE -----------------------------------------------

Then save the file, restart VLC, enable its web interface and run the Automatic Connection Wizard in VLC Direct Pro Free.

After this change, you should see in the VLC messages Box this lines:



Note that this time appears more "restricted... " lines. This means VLC is also listening for connections from any privated network: 192.168.0.0, 172.16.0.0, and 10.0.0.0.

VLC Direct Pro Free should find VLC now.

Important Notes:
This configuration presumes you have your PC/Mac and your android device both connected to the same wifi router. That means both devices are in the same LAN, sharing the same network.




RUNNING VLC
Once you have VLC properly configured to listen to remote connections, run VLC using the following parameters:
--sout-ffmpeg-strict=-2
--rtsp-timeout=99999
--extraintf=http
--http-port=8080

The following are the command lines for each operating system


Windows (32bits):
"C:\Program Files\VideoLan\VLC\vlc.exe" --rtsp-timeout=99999 --sout-ffmpeg-strict=-2 --extraintf=http --http-port=8080

Windows (64bits):
"C:\Program Files (x86)\VideoLan\VLC\vlc.exe" --rtsp-timeout=99999 --sout-ffmpeg-strict=-2 --extraintf=http --http-port=8080 
Linux:
vlc --rtsp-timeout=99999 --sout-ffmpeg-strict=-2 --extraintf=http --http-port=8080


Mac:
/Applications/VLC.app/Contents/MacOS/VLC --rtsp-timeout=99999 --sout-ffmpeg-strict=-2 --extraintf=http --http-port=8080
Parameters Description
  • --extraintf=http:  Automaticaly enables the web interface
  • --rtsp-timeout=99999: Solves a problem that appears since VLC version 2.0.0, which stops streaming from PC/Mac to Android after a few seconds (60 seconds in v2.0.0 to v2.0.7 and 15 seconds in v2.0.8+)
  • --http-port=8080: Defines that Web Interface will listen on port 8080. This port must be setup in VLC Direct Pro Free->menu->settings->Manual Configuration->VLC Web Interface Port
  • --sout-ffmpeg-strict=-2:  Helps VLC find the correct audio codecs for streaming. Without this parameter, streaming from PC/Mac to android will probably show a codec error window in VLC or the videos will have no sound.
Running VLC 2.1.0 and newer from command line


There are a lot of changes between VLC 2.0.x and VLC 2.1.x versions. Good news is that since VLC 2.1, there's no need to edit files to make VLC reachable from VLC Direct Pro Free. But now it requires a HTTP Password to access it. This password can be setup inside vlc (use vlcdirect as password):




Note: The default HTTP Password used by VLC Direct Pro Free is "vlcdirect", so in the following parameters the http-password is always configured as "vlcdirect" so you don't have to change anything in VLC Direct Pro Free.

If you want to use another password, please remember that both passwords must match, so change it in both places: In VLC (with the parameter or in the GUI) and in VLC Direct Pro Free->menu->settings->HTTP Password.

Another way to setup VLC parameters is from command line. To start VLC properly configured use the following parameters:

--rtsp-timeout=99999
--http-password=vlcdirect
--sout-avcodec-strict=-2
--extraintf=http
--http-port=8080


The following are the corresponding command lines for each operating system:


Windows (32bits):
"C:\Program Files\VideoLan\VLC\vlc.exe" --rtsp-timeout=99999 --http-password=vlcdirect --sout-avcodec-strict=-2 --extraintf=http --http-port=8080
Windows (64bits):
"C:\Program Files (x86)\VideoLan\VLC\vlc.exe" --rtsp-timeout=99999 --http-password=vlcdirect --sout-avcodec-strict=-2 --extraintf=http --http-port=8080
Linux:
vlc --rtsp-timeout=99999 --http-password=vlcdirect --sout-avcodec-strict=-2 --extraintf=http --http-port=8080
Mac:
/Applications/VLC.app/Contents/MacOS/VLC --rtsp-timeout=99999 --http-password=vlcdirect --sout-avcodec-strict=-2 --extraintf=http --http-port=8080

Parameters Description
  • --extraintf=http: Automaticaly enables the web interface
  • --rtsp-timeout=99999: Solves a problem that appears since VLC version 2.0.0, which stops streaming from PC/Mac to Android after a few seconds (60 seconds in v2.0.0 to v2.0.7 and 15 seconds in v2.0.8+)
  • --http-password=vlcdirect: Since 2.1.0, VLC uses a password to authenticate connections to its web interface. This password must be setup also in VLC Direct Pro Free->menu->settings->VLC HTTP Password
  • --sout-avcodec-strict=-2: Helps VLC find the correct audio codecs for streaming. Without this parameter, streaming from PC/Mac to android will probably have no sound.
  • --http-port=8080: Defines that Web Interface will listen on port 8080. This port must be setup in VLC Direct Pro Free->menu->settings->Manual Configuration->VLC Web Interface Port

68 comments:

  1. I can't stablish the connection between my android device and the vlc interface, when i go to the command line it appears an error as follows

    xxxx@xxxx ~ $ vlc --rtsp-timeout=99999 --sout-ffmpeg-strict=-2 --extraintf http --http-port=8080
    VLC media player 2.0.8 Twoflower (revision 2.0.8a-0-g68cf50b)
    [0x9282d8] [http] lua interface: Lua HTTP interface
    [0x9282d8] [http] main interface error: socket bind error (Permission denied)
    [0x9282d8] [http] main interface error: socket bind error (Permission denied)
    [0x9282d8] [http] main interface error: cannot create socket(s) for HTTP host
    [0x9282d8] [http] lua interface error: Error loading script /usr/lib/vlc/lua/intf/http.luac: lua/intf/http.lua:333: Failed to create HTTP host
    [0x861108] main libvlc: Ejecutar vlc con la interfaz predeterminada. Use «cvlc» para usar vlc sin interfaz.
    "sni-qt/4567" WARN 12:59:54.846 void StatusNotifierItemFactory::connectToSnw() Invalid interface to SNW_SERVICE

    ReplyDelete
    Replies
    1. window 7 home premium product key free , windows 10 product key surface pro 3 , windows 10 serial keys , windows 7 product codes , windows 7 key , windows 7 professional key sale , windows 10 product key hp stream , windows 10 pro key , tjLKLI

      office 2016 pro plus key

      buy windows 10 pro key

      windows 8.1 professional key sale

      Delete

    2. windows 7 home premium sp1 key , windows 10 pro product key sale , windows 7 ultimate sp1 keygen , windows 8.1 professional key , windows 10 serial key enterprise , windows 10 activation script , windows 7 professional product key 64 bit , windows 10 activation check , l5OrXG

      windows server 2012 r2 buy

      office 2013 key sale

      cheap rosetta stone french

      Delete

    3. product key do windows 7 ultimate , windows 7 keys sale , windows 10 serial keys product key , upgrade key for windows 7 starter , windows 10 product key microsoft store , windows 8.1 pro key buy , windows 7 anytime upgrade home basic to ultimate , window 7 professional product key , lswSTY

      buy office 2016 product key

      windows server 2012 r2 free

      rosetta stone french key sale

      windows 10 product serial number offer

      Delete
  2. You might have another process listening on port 8080. Try changing the parameter to 8081. If it works, then you have to use 8081 in VLC Direct Pro Free->menu->settings->manual configuration->web interface port

    ReplyDelete
    Replies
    1. windows 7 professional sp1 license key , microsoft project professional 2010 key wont work , free download mcafee antivirus 12 plus for windows 7 in english with key , microsoft office project standard 2007 product key free download , windows 7 sp1 ultimate key , office 2016 activation code , genuine product key for windows 8 professional , free visio premium 2010 product key , sehJ4V
      office 2016 registry purchase
      cheap office 2013 key
      microsoft visio professional 2016 order
      cheap windows 10 product key sale
      buy cheap windows 7 product key

      Delete
  3. Password won't even work. Both have matching passwords, but still says it's the wrong password.

    ReplyDelete
  4. This comment has been removed by the author.

    ReplyDelete
  5. This comment has been removed by the author.

    ReplyDelete
  6. I'm getting video but no audio when streaming!?

    ReplyDelete
  7. Hi. On Android I am getting message VLC found but the HTTP password is wrong. Passwords for both app and linux set to vlcdirect. Have tried this via config file and via command line on ports 8080 and 8081. Here is command line I am using on Ubuntu 14.04 with vlc 2.1.4 Android 4.1.2 by the way on Samsung GT-80120.
    vlc --rtsp-timeout=99999 --http-password=vlcdirect --sout-avcodec-strict=-2 --extraintf http --http-port=8081

    vlc2.1.4 doesn't seem to have a setting for http port in the GUI

    Strangely when I run vlc without any of the above options on 8080 I can see the web interface on the android tablet using Chrome with no password requested since original set even though I have changed it on linux box.

    Any further ideas?

    ReplyDelete
    Replies
    1. Hi Jaes, try reinstalling VLC Direct Streaming Pro Free. That usually solves the problem.

      Delete
  8. This comment has been removed by the author.

    ReplyDelete
  9. This comment has been removed by the author.

    ReplyDelete
  10. no audio/no sound fix
    It's under Tools>Preferences, then I click All under Show settings, click on Video codecs under Input / Codecs, then FFmpeg . So it's: Tools>Preferences>Video codecs>FFmpeg . Under FFmpeg I scroll down to under Encoding and I go to Strict standard compliance and I set it to -2

    ReplyDelete
    Replies
    1. Thank you. Very helpful and it worked. Thanks again!

      Delete
  11. This comment has been removed by the author.

    ReplyDelete
  12. someone, please help with audio not working in android mode, from PC to android

    ReplyDelete
  13. How do you get all the files in a given folder on an android phone to play one afrter the other on a windows pc ?

    Robert

    ReplyDelete
  14. If you need cheap windows 7 ultimate product key,you can go to www.vinhugo.com to got. My key bought here. It's working great and cost me a little money.

    ReplyDelete
  15. My streaming works great, but will only play one song at a time, without continuation into next song on album or playlist. Is there something I am missing? If it doesn't play consecutively, it seems kind of useless.

    ReplyDelete
  16. Top Industrial Training in Indore on SEO, PHP and .Net Technologies.
    Want to beacome a successful Web Developer? Srisasoft offers best Industrial Training in Indore with top quality Web Developers. Start you carrer with a passion to create a better life in SEO, PHP, CMS and .Net technologies in Indore. 6 months Industrial Training for BE, B.Tech, MCA and M.Tech students. So Get... SET... for a bright future NOW!

    ReplyDelete
  17. if you need genuine office you can try this link, my office got here and works well,strongly recommend you, it is brilliant www.aakeys.com

    ReplyDelete
  18. Windows 10 Key Sale Store (http://www.windows10keysale.com)

    Go to Windows 10 Key Sale Store (http://www.windows10keysale.com) . I must thank them! My Windows 10 Key Sale Store just activated and worked well, they do provide the warmest customer service i ever met.
    because of employees like Windows 10 Key Sale Store (http://www.windows10keysale.com) , i will refer everyone to this site.

    Windows 10 Key Sale Store (http://www.windows10keysale.com)

    ReplyDelete

  19. if you need genuine office you can try this link, my office got here and works well,strongly recommend you, it is brilliant www.acyberkey.com

    ReplyDelete
  20. Office 2010 Product Key (http://www.Office2016Keys.com) >

    I must express my thanks and appreciation to the online product key vendor Office 2010 Product Key (http://www.Office2016Keys.com) > . The guys of the technical department answer my questions and provide the instructions soooooooo professional and patient. The genuine product key I bought is sooooooooocheap and the after-sell service is soooooooo high Professional. The best product key vendor I know so far.

    Office 2010 Product Key (http://www.Office2016Keys.com) >

    ReplyDelete
  21. Hi,

    This looks promising although I have not found yet the time to check it. I am trying to find a way to stream video from VLC running on media PC to a wireless android projector, on my home network. Do you know if there is a way to stream the video over wifi but play the audio locally? I need this as my sound system is connected to the media pc and not to the projector.
    Thank you again for your time to develop this software, I'll update you as soon as I test it.
    Thanks

    ReplyDelete
  22. http://goo.gl/xjU3jn

    As far as I know, you can buy it from the authorized vendor online http://goo.gl/xjU3jn . You can count on them 100% as this site is the partner vendor of Microsoft. This is the biggest competitive point.

    http://goo.gl/xjU3jn

    ReplyDelete
  23. Yes you can alos visit http://andropps.com/download-vlc-free-apk/ for more

    ReplyDelete
  24. The customer had no choice in telecommunications alternatives and for quite many years had to put up with exorcist costs as well as the most serious customer alternatives you can think of. Somewhere along the way somebody saw light and Telkom was deregulated on 1 Feb 2005 which started out up the market for other telecommunications companies.

    Vox Mobile Price In Pakistan

    ReplyDelete
  25. Office2016Keys.com

    Go the online store Office2016Keys.com . You even don't need to spend a lot of time but only need to place the order and finish the payment in several minutes. The product key will be sent to you via email in short time. Very efficient!

    Office2016Keys.com

    ReplyDelete
  26. buenas tardes tengo un problema con la configuracion vlc. cuando le doy buscar vlc automaticamente. me dice que, tengo VLC encontrado pero es necesario establecer una clave. y luego me dice que para definir una clave http en vlc, ejecutalo con el siguiente parametro: --http--
    password=vlcdirect.
    y la verdad no se a donde ingreso para ejecutar ese parametro y password, si alguien me puede colaborar por favor

    ReplyDelete
    Replies
    1. Que tal, yo no se donde Activar los "permisos para recibir las conexiones remotas" sin embargo puedo ayudarte en tu caso. Abre el vlc en la pc, verte a herramientas/preferencias, alli en el cuadro que se abrió vas a la parte inferior izquierda (mostrar ajustes) y seleccionas Todo. Buscas y expandes "salida de emisión", expandes "salida de acceso", click en HTTP y allí donde dice contraseña es que vas a colocar "vlcdirect" sin las comillas, espero haberte ayudado, si resuelves ayudarme tu a mi en mi caso arriba expuesto escríbeme al correo verascol@gmail.Com

      Delete
    2. Que tal, yo no se donde Activar los "permisos para recibir las conexiones remotas" sin embargo puedo ayudarte en tu caso. Abre el vlc en la pc, verte a herramientas/preferencias, alli en el cuadro que se abrió vas a la parte inferior izquierda (mostrar ajustes) y seleccionas Todo. Buscas y expandes "salida de emisión", expandes "salida de acceso", click en HTTP y allí donde dice contraseña es que vas a colocar "vlcdirect" sin las comillas, espero haberte ayudado, si resuelves ayudarme tu a mi en mi caso arriba expuesto escríbeme al correo verascol@gmail.Com

      Delete
  27. Blogging is incredible and every blogger playing a great role to introduce new things in blogging. I always like to fly on different blogs and read the strategies of different blogger to understand the blogging in more depth. Being a bloggers I really appreciate your works and no doubt your blog is awesome.
    Love from Asad Niazi

    ReplyDelete
  28. I've installed windows 7 on my laptop after buying license from ODosta Store, I want to activate it to get free upgrade from windows 7 professional to windows 10 home.
    I'm now confused, How to activate and upgrade to windows 10.
    Please mention within details.

    ReplyDelete
  29. Good post....thanks for sharing.. very useful for me i will bookmark this for my future needs. Thanks.
    New Branded Laptops and Desktops In Delhi

    ReplyDelete
  30. This is needful information...greatly appreciated...keep sharing more!!! visit more info Windows live mail support also Call +1-800-231-4635 (Toll Free).

    ReplyDelete
  31. I am trying to use this to stream from an app called showbox on my android.. I have vlc v 2.2.2 android version 5.0.. I have downloaded vlc direct free for the android..

    Can anyone help me out here

    ReplyDelete
  32. Can I stream videos from my linux mint 17.1 pc via wifi router to my sony 3200 with VLC gui... Command line stuff is really a challenge for me.

    ReplyDelete
  33. I've installed windows 7 on my laptop after buying license from ODosta Store, I want to activate it to get free upgrade from windows 7 professional to windows 10 home.
    I'm now confused, How to activate and upgrade to windows 10.
    Please mention within details.

    ReplyDelete
  34. the easiest way to get the key is to buy it from ms online store, right? but it is a little expensive
    my friend recommended strongly http://www.MicrosoftStoreinc.com to me, and i visited the site. it looks good. however, i don't buy anything yet as i don't need it at present. in the future, i may buy one there.
    maybe you can try, and let me know whether it works. XDDDD

    ReplyDelete
  35. Blogging is incredible and every blogger playing a great role to introduce new things in blogging. I always like to fly on different blogs and read the strategies of different blogger to understand the blogging in more depth. Being a bloggers I really appreciate your works and no doubt your blog is awesome. But you need to focus on SEO Service of your blog and well Blogging For SEO is more important to ranked your blog high in google

    Love from Sonia Rizvi

    ReplyDelete
  36. This blog awesome and i learn a lot about programming from here.The best thing about this blog is that you doing from beginning to experts level.

    Love from

    ReplyDelete
  37. I've installed windows 7 on my laptop after buying license from ODosta Store, I want to activate it to get free upgrade from windows 7 professional to windows 10 home.
    I'm now confused, How to activate and upgrade to windows 10.
    Please mention within details

    ReplyDelete


  38. I've installed windows 7 on my laptop after buying license from cheaproduct, I want to activate it to get free upgrade from windows 7 professional to windows 10 home.
    I'm now confused, How to activate and upgrade to windows 10.
    Please mention within details.

    ReplyDelete
  39. Positive site, where did u come up with the information on this posting?I have read a few of the articles on your website now, and I really like your style. Thanks a million and please keep up the effective work. laptop finder

    ReplyDelete
  40. No matter whether you have VLC installed in a PC, Linux or Mac OSX, the player needs to be started with some specific parameters in order to be able to connect with VLC Direct Pro Free and stream media to and from Android.
    Judi Poker
    Nonton Bokep
    Cerita Dewasa
    Nonton Movie

    ReplyDelete
  41. I love it 7🌠for me extremely easy to use interface and can do anything 👌👏🌠😀💋

    ReplyDelete
  42. I love it 7🌠for me extremely easy to use interface and can do anything 👌👏🌠😀💋

    ReplyDelete
  43. Wonderful blog! I never ever read such kind of information that imparted me great knowledge.

    best android tv box

    ReplyDelete
  44. We are here to help. Laptop & Computer repair services are now available at Repair All Pc LLC contact 1888-313-7359. We are authorised to provide you with everything you need.

    ReplyDelete
  45. http://www.indirson.com/vlc-media-player-mac

    ReplyDelete