Page 1 of 1

No sound on VLC when used as sopcast-player plugin

Posted: 06 Feb 2014 20:04
by tutaqq
Hello,

I have a problem getting sound with sopcast-player. Video is always OK, but there is no sound.
OS is OpenSuse Tumbleweed, with VLC 2.1.2 installed from pacman repository
Error output:

[0xad9004d8] pulse audio output error: PulseAudio server connection failure: Connection refused
[0xad9004d8] alsa audio output error: cannot open ALSA device "default": No such file or directory
[0xad9004d8] main audio output error: Audio output failed
[0xad9004d8] main audio output error: The audio device "default" could not be used:
No such file or directory.
[0xad9004d8] main audio output error: module not functional
[0xb250d780] main decoder error: failed to create audio output

When VLC is used as a standalone player, I have no problem to set default audio device (HDMI or SPDIF in my case). Also, if VLC is used as external player from sopcast, there is no problem too.

I do not want to use pulse audio since it interferes with my xbmc installation.

Is there any solution to this problem?

Re: No sound on VLC when used as sopcast-player plugin

Posted: 06 Feb 2014 20:21
by Rémi Denis-Courmont
You need to configure the output device. VLC cannot guess if you have no default.

Re: No sound on VLC when used as sopcast-player plugin

Posted: 06 Feb 2014 22:24
by tutaqq
I have it configured under Tools->Preferences Audio (Simple)
Output module: Alsa Audio Output
Device: HD-Audio Generic, HDMI 0 HDMI Audio Output

It is picked up correctly when VLC is started standalone, but not when started as a plugin.

Am I missing something?

Re: No sound on VLC when used as sopcast-player plugin

Posted: 06 Feb 2014 22:32
by Rémi Denis-Courmont
LibVLC ignores the VLC configuration for a variety of reasons (that would cause all kinds of problems).

You should really fix your system configuration to include a working default device. Otherwise, you need to use the libvlc_audio_output_...() functions to select one explicitly.

Re: No sound on VLC when used as sopcast-player plugin

Posted: 06 Feb 2014 22:54
by tutaqq
Do you mean in /etc/asound.conf or $HOME/.asoundrc ? I will try that

Re: No sound on VLC when used as sopcast-player plugin

Posted: 07 Feb 2014 00:37
by tutaqq
OK, it works now! Thank you

Re: No sound on VLC when used as sopcast-player plugin

Posted: 18 Jul 2014 11:57
by Mr.Anon
hi there, (sorry for my bad english)

I think I have the same problem

on ubuntu, VLC and sopcast-player, when I launch VLC from sopcast-player video works fine but the audio volume is 0% even if I change 100% nothing is heard.

how you've solved tutaqq? You can post your asoundrc content?

thanks, greetings

Re: No sound on VLC when used as sopcast-player plugin

Posted: 24 Sep 2014 23:08
by hrvooje
Hi!
Could you tell me how did you solve you problem? I have the same situation on my PC with Linux Mint, Sopcast and VLC. Remi could you be more specific how to do that?

Re: No sound on VLC when used as sopcast-player plugin

Posted: 25 Sep 2014 19:59
by tutaqq
you must set default sound device in /etc/asound.conf (systemwide) or $HOME/.asoundrc for each user.

see this

http://www.alsa-project.org/main/index.php/Asoundrc

I am not using pulse audio, my asound.conf, default is HDMI.

::::::::::::::
/etc/asound.conf
::::::::::::::
pcm.!default {
type hw
card 0
device 3
}

ctl.!default {
type hw
card 0
device 3
}

Re: No sound on VLC when used as sopcast-player plugin

Posted: 26 Oct 2014 23:04
by hrvooje
I have put in .asoundrc

pcm.!default {
type hw
card 0
device 0
}

ctl.!default {
type hw
card 0
device 0
}

... and now I have sound in VLC from sopcast. Thank you!