Monday, March 31, 2014

VLCDIRECT.BAT Script (Windows Only)


If you have Microsoft Windows (XP, Vista, 7, 8, or any other), the easiest way to connect VLC Direct Pro Free with VLC is to run VLC using VLCDIRECT.BAT script.

This script was created by the Official VLC Direct Pro Free development team and it has one specific task: Start your desktop VLC with the proper parameters in order to allow VLC Direct Pro Free connections. It also uses parameters to improve the streaming performance and stability.


To start using this script just follow the following steps:

1 Please download the script from <HERE> and save it in your Windows desktop. The script is named VLCDIRECT.BAT. You can save it anywhere in your PC; it doesn't matter where you save it. The script has the intelligence to find out which VLC version you have installed and where the application folder is.



2 Then run the script. If you have VLC 2.1 or newer just double click on it and run it normally. If you have an older VLC version (2.0.8 or older), you need to run the script as administrator, at least the first time you run it. In this case right click over the file and "Run it as Administrator":



3 If you are using VLC 2.0.8 or older, Windows might ask you for permission to run the script and make changes to the computer. Allow it. This is necesary because the script modifies VLC configuration to make it visible from VLC Direct Pro Free.


4 If you have Windows Firewall activated in your PC, you might see a dialog asking you permission to let VLC access the network. It is important to allow this. If you don't, VLC won't be able to work as server and VLC Direct Pro Free will never connect.



5 Now you should see the VLC window open in your desktop. At this point the PC part of this process is done. VLC is properly configured to receive connections from VLC Direct Pro Free and to stream media content to and from Android.



6 Now get your Android device, open VLC Direct Pro Free and start the "Automatic Connection Wizard". You can find it in the main screen or in the settings section.



7 Once the Automatic VLC Finder dialog appears, click on "Start". Keep in mind that both the android device and the


The network scan will begin. It should take a few seconds... maybe a minute to scan the network.

Inportant notes regarding the network scan: The automatic connection wizard presumes your network is a C type network (192.168.0.0  IP block). If your network is a 10.0.0.0 or 172.16.0.0 network, then VLC Direct will have some problems finding your PC because the number of ip addresses to scan is too big. In this case you can use the manual approach and insert your PC ip address in VLC Direct Pro Free->menu->settings->Manual Configuration
Also is important to remember that the scanner looks for VLC web interface in port 8080. If you change the web interface port in VLC, you have to change it in VLC Direct Pro Free->menu->settinds->manual configuration->Web Interface Port.



8 That's it! You have connected VLC Direct Pro Free with VLC! If you have any problem, you can watch this short VIDEO that shows the whole configuration process or send us an email)





  Note that you should use VLCDIRECT.BAT script everytime you want start VLC to connect to VLC Direct Pro Free. No need to run it as administrator anymore.

60 comments:

  1. All ok, si funciona, delen click derecho, luego en ejecutar como administrador, excelente aplicacion,,, :-)

    ReplyDelete
  2. wow something that actually works.. first go..

    ReplyDelete
  3. for the HTTP: password use vlcdirect and it will work!

    ReplyDelete
  4. once i manually entered ip address it went fine, auto wouldn't do it

    ReplyDelete
  5. funktioniert, nutze ein sony xperia s und win 7 64 bit

    grüsse

    ReplyDelete
  6. This would not work for me at first.I got a "2 was unexpected at this time" error. I downloaded the VLC Media Player from Videolan.org. After i installed that i opened the .bat again and it ran, completed and connected with no problem

    ReplyDelete
  7. It works perfectly fine for me....

    ReplyDelete
  8. if you see this error
    2 was unexpected at this time.

    You REALLY HAVE TO redownload and install vlc from here
    http://www.videolan.org

    it worked for me as well

    ReplyDelete
  9. Hi all,

    Below steps worked on my Win8.1 PC -

    1. Uninstall, download and install a fresh copy of VLC from videolan.org
    2. Run the .bat script, VLC opens up on desktop automatically
    3. View>add interface>web
    4. Tools>preference>show settings>all>interface>click on web>in the dialog box, type --http-password=vlcdirect
    5. Save and restart VLC

    On remote app, auto discovery works just fine. Hope this helps.

    Regards,
    Gc

    ReplyDelete
    Replies
    1. Prior to item 5 should also mark the 'Remote control interface' in the same dialogue where the 'web', and the VLC Direct Pro in the upper left corner should be 'Target Android' and everything will work. If not manually enter the IP address

      Delete
  10. How can i make VLC Direct load the Media Library list instead of the Playlist? I want that the fourth button in the VLC Direct app to open the Media Library list in which i have saved the list with all the videos i have instead of the default empty Playlist it opens only.I can use VLC Direct as a remote but just to play videos from folders in my PC which is a good thing but i also want to be able to work with the Media Library list where i have saved the list of all my favourite videos.

    ReplyDelete
  11. if you have syntax error using the script, delete in line 10 "Wow6432Node\" from the Key_Name.

    ReplyDelete
    Replies
    1. Exactly. This is the current "fix" to have it setup and run 64-bit VLC properly. It's a minor glitch, easily fixed. Just do as Huns advises to have it work with 64-bit VLC.

      Delete
  12. didn't work, waste of precious time sadly

    ReplyDelete
  13. I'm using a portable version of vlc and the script is doing nothing right now. How do I modify the script to locate the installed directory?

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

    ReplyDelete
  15. Managed to have connection.
    During video playback, it stops (blank screen) then starts and stops frequently... buffering?
    How to avoid or minimise this?
    Playback image stops after 10sec...how to continuous display image?

    Many thanks.

    ReplyDelete
  16. Script works, but for the wrong reasons. It is reversing 32-bit and 64-bit registry key, but it works because it defaults to 32-bit VLC which is what almost everyone is using, regardless of OS or chip-arch. There aren't many 32-bit chips around anymore, but if there were, the script will fail because it tries to use the 64-bit registry key only in that case, i.e. it tries to find 64-bit VLC when prcessor_architecture is "x86". I suspect that the provider is a hell of a programmer/developer, but he is likely more of a Linux and/or Mac guy. I mean absolutely no disrespect - this is not some newbie error, it is just a reasonable assumption for a non-windows developer who's doing a totally nice thing. processor_architecture env. var does not indicate OS level, it is nearly deprecated since 32-bit chips running windows are... near to extinct.

    Again - it works for most everyone because it defaults to 32-bit, and only looks for 64-bit VLC if the processor_architecture is "x86". All of us using intel i3/i5/i7, regardless of whether we run 32-bit or 64-bit windows, are running a 64-bit processor -- for which the environment variable %processor_architecture% is always going to be "AMD64" - on both 32-bit and 64-bit windows. I run 64-bit windows and have both 32 and 64-bit VLC installed. I discovered this because my 32-bit VLC is not port-enabled .. so I couldn't connect from my Nexus 7. I checked and found that the 32-bit VLC (2.13) was running. I tweaked the script to use 64-bit VLC (by removing "wow6432node\" from the key, which is what the "x86" check does, as previously mentioned) and ... VOILA!... my hosts and command-line args were all setup for my 64-bit VLC installation. I definitely would have PM'd Jason but could not find any way to do it (perhaps that is a newb failure on my part, lol). The true work the script contains works beautifully and saves one from dealing with two protocols/hosts and cryptic command-line args - very handily. And with some nifty tricks from a batch file.

    Again, I want to stress that this isn't a newb script error, and it's virtually innocuous since it just sets up and runs 32-bit VLC for all of us, pretty much. AND - the COOL stuff that the script does - like using .bat (batch) scripts to grab registry values and persist "ok" states in the filesystem.. it stretches what batch can do is the point. Most windows users won't go near these tricks - far outweighs an assumption about windows' arbitrary conventions around directory and registry naming. Awesome script, regardless.
    Beats the heck out of doing the hosts and setting up command line args manually, definitely, and it is GREATLY appreciated. I hope I wasn't totally lacking tact here - if I were Jason I would want to be told. VLCDirect does rock, btw. ;-)

    ReplyDelete
    Replies
    1. This comment has been removed by the author.

      Delete
    2. The architecture var is probably useful, where servers are using Itanium or whatever the latest 64-bit chips are, running high-perf virtual machines that run chip-level optimizations and etc.. Also - one could be a veritable WinGURU and not run in to that env-var or registry convention. I withdraw my unwarranted assumption entirely. ;-)

      Delete
  17. Will this work with an acer tablet?

    ReplyDelete
  18. The batch file worked perfectly for me and everything was setup in a couple minutes.

    I have 2 major problems:
    1- When streaming a video file from my Android phone to PC, the video freezes every few seconds and the sound cuts out.

    2- When streaming from PC to Android, I just get a black screen and nothing plays.

    PC= Windows 8.1, Core i7, 16GB RAM
    Phone= Samsung Galaxy Note 3

    Both devices are connected to the same router over WiFi. I have only tried 1080p files. I will try something "easier" to see what happens.

    In general, VLC remains to be really clunky. That is why I use PotPlayer as my default media player.

    ReplyDelete
  19. Did some more trials on this. I found out that streaming 480p files from Android to PC works flawlessly. Anything bigger causes stuttering. I guess that is a WiFi bandwidth issue. Unfortunately, I know nothing about VLC and so cannot fine tune its streaming settings to get around this.

    Streaming from PC to Android still results in a black screen regardless of file bit rate.

    All the best,

    ReplyDelete
  20. This program work perfectly for me. Setup in a few minutes and all was a go.

    ReplyDelete
  21. I've a 64 bits win 8.1 and this bat file doesn't work with vlc 64 bits version, I had to uninstall it and install vlc 32 bits then it work perfectly, can somebody fix this bat file to use with vlc 64 bits? Thanks.

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

    ReplyDelete
    Replies
    1. This comment has been removed by the author.

      Delete
  23. Remove Wow6432Node from the batch if running the new x64 VLC versions. If running x86 VLC versions even on x64 OS then leave it be.

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

    ReplyDelete
  25. Works perfectly as documented, but couldn't get a real-time camera view to work.
    Existing documents, music and movies work.

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

    ReplyDelete
  27. If you're using Win10, you're probably using the 64-bit version of VLC. In this case you need to remove Wow6432Node from the registry key quite at the top of the script otherwise you get a syntax error.

    ReplyDelete
    Replies
    1. SOrry I'm way late in reading this...How do I locate the registry key?

      Delete
  28. 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
  29. Thanks for sharing the great information. It is well written!!

    best tv box
    best android tv box

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

    ReplyDelete
  31. Very informative content to activate my product, Anyway Windows, office, server, visual express, idm etc. products may activate using oem product key, which can be buy from: ODosta Store
    As I recently bought Windows 10 Product key to upgrade my Windows 8.1 PC, Which worked perfectly. That's why I want to recommend this site with other guys, Which is offering so cheap license keys. You can also get windows and other product keys here.

    ReplyDelete
  32. I am on win10, how can I browse to other drives, I only see folders on drive c:?

    ReplyDelete
  33. You can get windows 10 keygen download From here

    ReplyDelete
  34. when I run the script the screen just flashes.. won't work for me....

    ReplyDelete
  35. this is irritating me...I am on my tablet, trying to use vlc direct free... when I run auto connection I get this
    "check that vlc is is running on your pc/mac and that web interface is enabled and that it has permission for remote connections"

    It is running using the vlcbat file above...I deleted the Wow6432Node in the edit field... why is this not working....

    ReplyDelete
    Replies
    1. to add I installed vlc version 2.2.4 weathermax

      Delete
  36. I love this blog because in free time i use this i make lot of fun through this free download linden during .
    Its a best blog , i l crack patch very much recomendedsoftware.com but issue is that
    net surfing is very getintopc.uk pain ful work because the reason is that but love is life
    full version deny time getintopc.us consumption is download free hard work so waste love

    ReplyDelete