vlcj:: 无法在 64 位操作系统中加载库“libvlc" [英] vlcj:: Unable to load library 'libvlc' in 64bit OS
本文介绍了vlcj:: 无法在 64 位操作系统中加载库“libvlc"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用的是 64 位操作系统 Windows 7,我有 32 位 VLC 版本 1.1.8.
I am using 64 bit OS Windows 7 and i have 32 bit VLC versioned 1.1.8.
我添加了这些库<代码>jna.jar平台.jarvlcj-1.1.5.1.jar
我无法使用 jVlc 进行流式传输
I am not able to stream using jVlc
public class HelloVLC {
/**
* @param args
* @throws IOException
*/
public static void main(String[] args) throws IOException {
// TODO Auto-generated method stub
System.out.println( WindowsRuntimeUtil.getVlcInstallDir());
NativeLibrary.addSearchPath("libvlc", "C:\\Program Files (x86)\\VideoLAN\\VLC");
String media = "dshow://";
String[] options = {" :dshow-vdev=Integrated Webcam :dshow-adev= :dshow-caching=200", ":sout = #transcode{vcodec=theo,vb=800,scale=0.25,acodec=vorb,ab=128,channels=2,samplerate=44100}:display :no-sout-rtp-sap :no-sout-standard-sap :ttl=1 :sout-keep"};
System.out.println("Streaming '" + media + "' to '" + options + "'");
MediaPlayerFactory mediaPlayerFactory = new MediaPlayerFactory();
final HeadlessMediaPlayer mediaPlayer = mediaPlayerFactory.newMediaPlayer();
mediaPlayer.playMedia(media, options);
}
}
我收到错误线程main"中的异常java.lang.UnsatisfiedLinkError:无法加载库'libvlc':找不到指定的模块.
请帮忙.有什么办法可以让这段代码在 64 位操作系统中工作????
Kindly help. Is there any way to get this code work in 64 bit OS????
推荐答案
您是否尝试过在 32 位 JVM 上运行它?
have you tried running it with a 32-bit JVM?
这篇关于vlcj:: 无法在 64 位操作系统中加载库“libvlc"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文