VLCJ 输出 audio/video 个模块
VLCJ Output audio/video modules
在我的java程序中是否可以更改"Audio output module"和"Video output"?
当这些选项设置为 "automatic" 时,我的 linux 无法播放视频文件。所以在 VLC Player 中我选择了 "ALSA" 和 "OpenGL GLX (XCB)",现在我的文件正在播放。
但是当我在程序中使用 EmbeddedMediaPlayerComponent
时,我认为它为 a/v 线程选择了 "automatic" 模式。然后我得到一个绿屏(而不是我的视频)和终端错误:
[00007f691c112ac8] pulse audio output error: stream connection failure: Timeout
[00007f691c112ac8] core audio output error: module not functional
[00007f69081b6168] core decoder error: failed to create audio output
Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory
奇怪,但正在播放音频...
请帮忙! ;)
更改 MediaPlayerFactory
初始化参数以指定要使用的 audio/video 输出模块的名称。
类似于:
String[] args = {"--vout=xcb", "--aout=alsa"});
从命令行,vlc --list
将为您提供可用的模块名称。
在我的java程序中是否可以更改"Audio output module"和"Video output"?
当这些选项设置为 "automatic" 时,我的 linux 无法播放视频文件。所以在 VLC Player 中我选择了 "ALSA" 和 "OpenGL GLX (XCB)",现在我的文件正在播放。
但是当我在程序中使用 EmbeddedMediaPlayerComponent
时,我认为它为 a/v 线程选择了 "automatic" 模式。然后我得到一个绿屏(而不是我的视频)和终端错误:
[00007f691c112ac8] pulse audio output error: stream connection failure: Timeout
[00007f691c112ac8] core audio output error: module not functional
[00007f69081b6168] core decoder error: failed to create audio output
Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory
奇怪,但正在播放音频... 请帮忙! ;)
更改 MediaPlayerFactory
初始化参数以指定要使用的 audio/video 输出模块的名称。
类似于:
String[] args = {"--vout=xcb", "--aout=alsa"});
从命令行,vlc --list
将为您提供可用的模块名称。