Search code examples
vmwarevlclibvlcvlcjdebian-based

VLCJ Output audio/video modules


Is there any abillity to change "Audio output module" and "Video output" in my java program? My linux doesn't play video files when these options are set to "automatic". So in VLC Player I have chosen "ALSA" and "OpenGL GLX (XCB)", now my files are playing. But when I use EmbeddedMediaPlayerComponent in my program, I think it chooses "automatic" mode for a/v threads. Then I'm getting a green screen (instead of my video) and an error in terminal:

[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

Strange, but audio is playing... Please, help! ;)


Solution

  • Change the MediaPlayerFactory initialisation arguments to specify the name of the audio/video output module that you want to use.

    Something like:

    String[] args = {"--vout=xcb", "--aout=alsa"});
    

    From a command-line, vlc --list will give you the available module names.