No sound on VLC when used as sopcast-player plugin

*nix specific usage questions
tutaqq
New Cone
New Cone
Posts: 5
Joined: 06 Feb 2014 19:42

No sound on VLC when used as sopcast-player plugin

Postby tutaqq » 06 Feb 2014 20:04

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?

Rémi Denis-Courmont
Developer
Developer
Posts: 15266
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

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

Postby Rémi Denis-Courmont » 06 Feb 2014 20:21

You need to configure the output device. VLC cannot guess if you have no default.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

tutaqq
New Cone
New Cone
Posts: 5
Joined: 06 Feb 2014 19:42

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

Postby tutaqq » 06 Feb 2014 22:24

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?

Rémi Denis-Courmont
Developer
Developer
Posts: 15266
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

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

Postby Rémi Denis-Courmont » 06 Feb 2014 22:32

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.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

tutaqq
New Cone
New Cone
Posts: 5
Joined: 06 Feb 2014 19:42

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

Postby tutaqq » 06 Feb 2014 22:54

Do you mean in /etc/asound.conf or $HOME/.asoundrc ? I will try that

tutaqq
New Cone
New Cone
Posts: 5
Joined: 06 Feb 2014 19:42

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

Postby tutaqq » 07 Feb 2014 00:37

OK, it works now! Thank you

Mr.Anon
New Cone
New Cone
Posts: 1
Joined: 18 Jul 2014 11:06

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

Postby Mr.Anon » 18 Jul 2014 11:57

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

hrvooje
New Cone
New Cone
Posts: 2
Joined: 24 Sep 2014 23:02

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

Postby hrvooje » 24 Sep 2014 23:08

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?

tutaqq
New Cone
New Cone
Posts: 5
Joined: 06 Feb 2014 19:42

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

Postby tutaqq » 25 Sep 2014 19:59

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
}

hrvooje
New Cone
New Cone
Posts: 2
Joined: 24 Sep 2014 23:02

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

Postby hrvooje » 26 Oct 2014 23:04

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!


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 34 guests