stream - vlcj::无法在 64 位操作系统中加载库 'libvlc'

标签 stream vlc libvlc vlcj

我使用的是 64 位操作系统 Windows 7,我有 32 位 VLC 版本 1.1.8。

我已经添加了这些库jna.jar platform.jar vlcj-1.1.5.1.jar
我无法使用 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);
}

}

我收到错误 Exception in thread "main" java.lang.UnsatisfiedLinkError: Unable to load library 'libvlc': The specified module could not be found.
请帮忙。有没有办法让这段代码在 64 位操作系统中工作???

最佳答案

你试过用 32 位 JVM 运行它吗?

关于stream - vlcj::无法在 64 位操作系统中加载库 'libvlc',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8608117/

相关文章:

c# - MemoryStream - 合并 PDF 时无法访问关闭的流

c# - 在 .NET 中捕获消息

stream - ffmpeg,vlc - 无法找到输入流

delphi - Delphi PasLibVLC-无需安装VLC播放器即可使用

java - 通过 UDP 发送音频

server - 如何在Rust中从TCPStream提取获取消息?

flutter - 每个应用启动时Flutter Stream只能运行一次

annotations - 使用 VLC 注释视频

linux - 如何使用 VLC 自动播放和循环播放?

vlc - 使用 libvlc 从命令行仅向左/右一个扬声器播放音频