VLC_PLUGIN_PATH error

This forum is about all development around libVLC.
dbauschl
New Cone
New Cone
Posts: 3
Joined: 22 Feb 2012 18:58

VLC_PLUGIN_PATH error

Postby dbauschl » 22 Feb 2012 19:01

I am using vlcj 1.2.2 and the new official VLC 2.0 build on a Windows 32 machine. However, now when I try to set my plugin path (using System.setProperty("VLC_PLUGIN_PATH", some path) it cannot find the plugins. I have tried several variations of this and it only seems to work when the plugins folder is in the same directory as libvlc, which leads me to believe that this may be an issue where libvlc isn't properly using the VLC_PLUGIN_PATH Is anyone else having these issues or am I doing something improperly? Thanks.

dbauschl
New Cone
New Cone
Posts: 3
Joined: 22 Feb 2012 18:58

Re: VLC_PLUGIN_PATH error

Postby dbauschl » 28 Feb 2012 19:41

So I've discovered that VLC_PLUGIN_PATH must be an environment variable, not a Java System property. However this makes VLC extremely unportable when using java because you cannot alter any client's environment variables within java code (I don't know how easy this is for a .NET app either). Are there no more alternatives now that --plugin-path is gone?

Rémi Denis-Courmont
Developer
Developer
Posts: 15266
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: VLC_PLUGIN_PATH error

Postby Rémi Denis-Courmont » 29 Feb 2012 19:50

Environment variables are the only portable way to define process-wide parameters. So the answer is no.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

dbauschl
New Cone
New Cone
Posts: 3
Joined: 22 Feb 2012 18:58

Re: VLC_PLUGIN_PATH error

Postby dbauschl » 02 Mar 2012 16:23

Prior to this update --plugin-path could be used though, that didn't make use of environment variables I don't believe. Is there a particular reason why this was disabled?

Rémi Denis-Courmont
Developer
Developer
Posts: 15266
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: VLC_PLUGIN_PATH error

Postby Rémi Denis-Courmont » 02 Mar 2012 17:17

It made no sense to pass "--plugin-path" to libvlc_new() considering that the plugin path, by design, is shared across all instances in the process.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

jobeagle
Blank Cone
Blank Cone
Posts: 11
Joined: 04 Sep 2009 08:52

Re: VLC_PLUGIN_PATH error

Postby jobeagle » 07 Mar 2012 12:17

Hello dbauschl,
i had the same problem and the setting of VLC_PLUGIN_PATH didn't work either. Rémi Denis-Courmont gives me the advice that my MRL was wrong. I used f.e. "J:\videos\test.avi" it doesn't work and if i use "file:///j:\videos\test.avi" it works and plays the video...

michig54
New Cone
New Cone
Posts: 8
Joined: 01 May 2012 17:10

Re: VLC_PLUGIN_PATH error

Postby michig54 » 01 May 2012 17:21

Setting the VLC_PLUGIN_PATH environment variable doesn't seem to be working. libvlc_new always returns null unless I put the plugins directory in the directory with the executable, no matter how I try to set the Environment variable. I am using 2.0.1, I tried 2.1 and the same thing happened, I got the No Plugins Found! error.

mangokm40
Cone that earned his stripes
Cone that earned his stripes
Posts: 130
Joined: 20 May 2010 20:00

Re: VLC_PLUGIN_PATH error

Postby mangokm40 » 02 May 2012 15:41

Setting the VLC_PLUGIN_PATH environment variable doesn't seem to be working. libvlc_new always returns null unless I put the plugins directory in the directory with the executable, no matter how I try to set the Environment variable. I am using 2.0.1, I tried 2.1 and the same thing happened, I got the No Plugins Found! error.
The phrase "no matter how I try to set the Environment variable" is not as useful as actually showing what you've tried. As you saw a couple of posts above yours, there's an example of a working environment variable.

michig54
New Cone
New Cone
Posts: 8
Joined: 01 May 2012 17:10

Re: VLC_PLUGIN_PATH error

Postby michig54 » 02 May 2012 16:44

The previous comments don't prove that there was a working environment variable, but that their fix was using a correct mrl.
I've tried, with several path locations, with several different path attempts:

Code: Select all

putenv("VLC_PLUGIN_PATH=C:\\Program Files\\VideoLAN\\VLC\\plugins");
I've also tried using C# right before making the managed call to libvlc_new using, with several different path attempts:

Code: Select all

System.Environment.SetEnvironmentVariable ("VLC_PLUGIN_PATH", "C:\\Program Files\\VideoLAN\\VLC\\plugins");
Ive also, actually set the Environment Variable on my computer. Still to no avail.

mangokm40
Cone that earned his stripes
Cone that earned his stripes
Posts: 130
Joined: 20 May 2010 20:00

Re: VLC_PLUGIN_PATH error

Postby mangokm40 » 02 May 2012 17:17

Got it! My apologies. Good luck.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 13 guests