Search code examples
c#.netdllvlc

Running LibVLC.NET Example on Windows 7


I want to try out VLC media framework bindings for .Net C#.

I download source from http://libvlcnet.codeplex.com/SourceControl/latest , unzip it, download latest VLC from http://www.videolan.org/vlc/ , install it to C:\Program Files\ . Then I open downloaded source project, build it and after all I try to launch D:\libvlcnet-20526\trunk\Tests\Tutorial\bin\Debug\Tutorial.exe and finally error is trown :

 Unhandled exception:  System dll not found exception no valid libvlc.dll could br found VLC is probably not installed!
 at LibVlc.Net.LibVlcLibrary.getorloadlibrary(String libVLCLibrary)

I go to C:\Program Files\VideoLAN\VLC and copy "libvlccore.dll", "libvlc.dll" and "plugins" folder (instruciotns in http://libvlcnet.codeplex.com/ ), then paste these files to D:\libvlcnet-20526\trunk\Tests\Tutorial\bin\Debug\ , in the same directory I create "VLC" folder and paste dll's, after doing that I copied "VLC" folder and pasted in every upper folder just to be sure that this application could see dlls (I guess you already noticed redundacy :) ). I do the same thing with the contents of that "VLC" folder and still get the same error. I think I did everything what http://libvlcnet.codeplex.com/ suggested me to do and still I failed to launch that project.

What did I wrong?


When initializing library I provided path to VLC:

 LibVLCLibrary library = LibVLCLibrary.Load("C:\\Program Files\\VideoLAN\\VLC");

I currently have 2.0.0 VLC installed and required version is 1.2 ,however official ftp doesn't have that version http://download.videolan.org/pub/videolan/vlc/ and this time I get yet another error "Procedure entry point aout_ismuted coul not be located in the dynamic link library liblccore.dll". I also tried VLC 1.1.2, but it still fails to launch.


Solution

  • An even better yet is vlc.DotNet on github and it is still updated as of April 2019:

    https://github.com/ZeBobo5/Vlc.DotNet/wiki/Using-Vlc.DotNet-in-WinForms

    I got it working from scratch in 5 minutes.