您的位置:首页 > 其它

VLC加载插件失败原因及解决

2014-07-15 23:38 375 查看
最近做视频播放的程序,找到了VLC开源库。在windows+vs2013+QT5.3环境下进行调试。出现了在调用libvlc_new时提示不能找到插件、加载libvlc失败的问题。

原因及解决方法如下:

1: 提示找不到插件,是因为plugins目录位置不对,应该放在和libvlc.dll相同目录下。
https://forum.videolan.org/viewtopic.php?f=32&t=119693&p=405063&hilit=libvlc_new#p405063
2: 加载libvlc失败,我这里的问题主要是libvlc_new初始化时带上了参数,直接调用libvlc_new(0, NULL)成功。估计可能的原因是参数不对。

以下是libvlc_new函数说明

* Arguments are meant to be passed from the command line to LibVLC, just like

 * VLC media player does. The list of valid arguments depends on the LibVLC

 * version, the operating system and platform, and set of available LibVLC

 * plugins. Invalid or unsupported arguments will cause the function to fail

 * (i.e. return NULL). Also, some arguments may alter the behaviour or

 * otherwise interfere with other LibVLC functions.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  VLC 插件 加载失败