View previous topic :: View next topic |
Author |
Message |
loopx Advocate
Joined: 01 Apr 2005 Posts: 2787 Location: Belgium / Liège
|
Posted: Wed Apr 27, 2011 5:16 pm Post subject: [PulseAudio] first test/network and little problems ... |
|
|
Hi,
I just set PulseAudio on my system : what a surprise, all is working fine ... except for these two things where I need help :
- Chromium, if it's the first started, bypass PulseAudio and use ALSA directly and so, I can't use Amarok after ... (if I start Amarok first, all is fine and Chromium use PulseAudio via ALSA reconfiguration /etc/asound.conf). Here are error when Chromium is the first playing :
Code: |
Apr 27 18:55:58 loop pulseaudio[20095]: alsa-sink.c: Error opening PCM device front:0: Périphérique ou ressource occupé
Apr 27 18:55:58 loop pulseaudio[20095]: sink-input.c: Failed to create sink input: sink is suspended.
Apr 27 18:55:58 loop pulseaudio[20095]: alsa-sink.c: Error opening PCM device front:0: Périphérique ou ressource occupé
Apr 27 18:55:58 loop pulseaudio[20095]: sink-input.c: Failed to create sink input: sink is suspended.
Apr 27 18:57:23 loop pulseaudio[20095]: ratelimit.c: 218 events suppressed
|
- SMPlayer can't play 5.1 AC3 track (pass-through) to Pulse driver (audio tab) : no sound ; I have to use ALSA driver to play AC3 to my Logitech 5.1 kit (which is working fine, and auto-disable all 2.0 numeric stream before play ...)
- I can't find any PulseAudio profile for 5.1 numeric : there is just many 5.1 analog but no one for numeric (or only for stereo playback ...) ; thus, this problem can be linked the the previous point ...
Here are a list of profiles (sorry, don't know why it's in french ...) :
Code: |
profiles:
output:analog-stereo: Stéréo analogique Output (priority 6000)
output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (priority 6060)
output:analog-stereo+input:iec958-stereo: Stéréo analogique Output + Stéréo numérique (IEC958) Input (priority 6055)
output:analog-surround-40: Surround analogique 4.0 Output (priority 700)
output:analog-surround-40+input:analog-stereo: Surround analogique 4.0 Output + Stéréo analogique Input (priority 760)
output:analog-surround-40+input:iec958-stereo: Surround analogique 4.0 Output + Stéréo numérique (IEC958) Input (priority 755)
output:analog-surround-41: Surround analogique 4.1 Output (priority 800)
output:analog-surround-41+input:analog-stereo: Surround analogique 4.1 Output + Stéréo analogique Input (priority 860)
output:analog-surround-41+input:iec958-stereo: Surround analogique 4.1 Output + Stéréo numérique (IEC958) Input (priority 855)
output:analog-surround-50: Surround analogique 5.0 Output (priority 700)
output:analog-surround-50+input:analog-stereo: Surround analogique 5.0 Output + Stéréo analogique Input (priority 760)
output:analog-surround-50+input:iec958-stereo: Surround analogique 5.0 Output + Stéréo numérique (IEC958) Input (priority 755)
output:analog-surround-51: Surround analogique 5.1 Output (priority 800)
output:analog-surround-51+input:analog-stereo: Surround analogique 5.1 Output + Stéréo analogique Input (priority 860)
output:analog-surround-51+input:iec958-stereo: Surround analogique 5.1 Output + Stéréo numérique (IEC958) Input (priority 855)
output:analog-surround-71: Analog Surround 7.1 Output (priority 700)
output:analog-surround-71+input:analog-stereo: Analog Surround 7.1 Output + Stéréo analogique Input (priority 760)
output:analog-surround-71+input:iec958-stereo: Analog Surround 7.1 Output + Stéréo numérique (IEC958) Input (priority 755)
output:iec958-stereo: Digital Stereo Duplex (IEC958) (priority 5500)
output:iec958-stereo+input:analog-stereo: Stéréo numérique (IEC958) Output + Stéréo analogique Input (priority 5560)
output:iec958-stereo+input:iec958-stereo: Stéréo numérique (IEC958) Output + Stéréo numérique (IEC958) Input (priority 5555)
input:analog-stereo: Stéréo analogique Input (priority 60)
input:iec958-stereo: Stéréo numérique (IEC958) Input (priority 55)
off: Éteint (priority 0)
|
As you can see, there is only "analog" available for more than 2.0 stream ... _________________ Mon MediaWiki perso : http://pix-mania.dyndns.org
Last edited by loopx on Thu Apr 28, 2011 8:52 pm; edited 2 times in total |
|
Back to top |
|
|
loopx Advocate
Joined: 01 Apr 2005 Posts: 2787 Location: Belgium / Liège
|
Posted: Wed Apr 27, 2011 6:28 pm Post subject: |
|
|
I've found the flash problem ... Just install libflashsupport and now, got PulseAudio support with flash ... hum, in fact, it's not "true PulseAudio" but "ALSA playback to PulseAudio" (really, I don't know which driver flash was using before that...).
_________________ Mon MediaWiki perso : http://pix-mania.dyndns.org |
|
Back to top |
|
|
VoidMage Watchman
Joined: 14 Oct 2006 Posts: 6196
|
Posted: Wed Apr 27, 2011 6:38 pm Post subject: |
|
|
The second part is wrong - with alsa-plugins[pulse] there should be no need for libflashsupport - at least not with >=flash 10. |
|
Back to top |
|
|
loopx Advocate
Joined: 01 Apr 2005 Posts: 2787 Location: Belgium / Liège
|
Posted: Wed Apr 27, 2011 8:00 pm Post subject: |
|
|
VoidMage wrote: | The second part is wrong - with alsa-plugins[pulse] there should be no need for libflashsupport - at least not with >=flash 10. |
Yes, that's was saying portage ... but before, I was getting problem .. now, it's working ... :
Quote: |
>>> Recording www-plugins/libflashsupport in "world" favorites file...
* Messages for package www-plugins/libflashsupport-1.2:
* This package will overwrite one or more files that may belong to other
* packages (see list below). You can use a command such as `portageq
* owners / <filename>` to identify the installed package that owns a
* file. If portageq reports that only one package owns a file then do
* NOT file a bug report. A bug report is only useful if it identifies at
* least two or more packages that are known to install the same file(s).
* If a collision occurs and you can not explain where the file came from
* then you should simply ignore the collision since there is not enough
* information to determine if a real problem exists. Please do NOT file
* a bug report at https://bugs.gentoo.org unless you report exactly which
* two packages install the same file(s). Once again, please do NOT file
* a bug report unless you have completely understood the above message.
*
* Detected file collision(s):
*
* /usr/lib64/libflashsupport.so
*
* Searching all installed packages for file collisions...
*
* Press Ctrl-C to Stop
*
* None of the installed packages claim the file(s).
*
* Package 'www-plugins/libflashsupport-1.2' merged despite file
* collisions. If necessary, refer to your elog messages for the whole
* content of the above message.
* You do not need libflashsupport to use adobe-flash with pulseaudio
* Please consider removing this package and using
* media-plugins/alsa-plugins[pulseaudio] instead.
* The 32-bit flash plugin cannot use libflashsupport which is 64-bit only.
|
I'm running Gentoo ~amd64 and so, it works for me.
Here is alsa-plugins already installed :
Code: |
[ebuild R ] media-plugins/alsa-plugins-1.0.24 USE="ffmpeg pulseaudio -debug -jack -libsamplerate -speex" 0 kB
|
I will try to remove libflashsupport and re-emerge alsa-plugins + reboot and check if it's working or not .. come back after that ... :
Code: |
emerge --unmerge libflashsupport && emerge alsa-plugins && reboot
|
EDIT: you right after reboot, Flash was wokring (ALSA Playback) without causing any issue to other applications ... I don't understand but it's good _________________ Mon MediaWiki perso : http://pix-mania.dyndns.org |
|
Back to top |
|
|
loopx Advocate
Joined: 01 Apr 2005 Posts: 2787 Location: Belgium / Liège
|
Posted: Thu Apr 28, 2011 7:08 pm Post subject: |
|
|
UP
I'm trying to get PulseAudio working on network (from the PC to the SERVER) ... I can see (on my PC) all PulseAudio "remote sinks" with "padevchooser" ... but, when I click on another sink, there is no effect at all ... I'm looking the network traffic, and nothing is sent ... Is it "padevchooser" which won't do the trick ?
I will try by using "pacmd" ...
Here is something I've found ... running on the PC, I can get information about all servers :
Code: |
loopx@loop ~ $ avahi-browse -t -r _pulse-sink._tcp
+ eth0 IPv6 loopx@loop: Audio interne St__r__o analogique PulseAudio Sound Sink local
+ eth0 IPv4 loopx@loop: Audio interne St__r__o analogique PulseAudio Sound Sink local
+ eth0 IPv4 invite@serveur: Simultaneous output to Internal Audio Analog St PulseAudio Sound Sink local
+ eth0 IPv4 invite@serveur: Internal Audio Analog Stereo PulseAudio Sound Sink local
= eth0 IPv6 loopx@loop: Audio interne St__r__o analogique PulseAudio Sound Sink local
hostname = [loop.local]
address = [fe80::6ef1:49ff:fe5e:4f46]
port = [4713]
txt = ["form-factor=internal" "class=sound" "product-name=82801JI (ICH10 Family) HD Audio Controller" "vendor-name=Intel Corporation" "icon-name=audio-card-pci" "description=Audio interne Stéréo analogique" "subtype=hardware" "channel_map=front-left,front-right" "format=s16le" "channels=2" "rate=44100" "device=alsa_output.pci-0000_00_1b.0.analog-stereo" "cookie=0xa5842e8d" "fqdn=loop.<domain>" "uname=Linux x86_64 2.6.38-gentoo-r2 #2 SMP Sat Apr 23 23:53:31 CEST 2011" "machine-id=5c7f6d94283c253781ebac630000090c" "user-name=loopx" "server-version=pulseaudio 0.9.22"]
= eth0 IPv4 invite@serveur: Simultaneous output to Internal Audio Analog St PulseAudio Sound Sink local
hostname = [serveur.local]
address = [<ip_server>]
port = [4713]
txt = ["class=filter" "icon-name=audio-card" "description=Simultaneous output to Internal Audio Analog Stereo" "subtype=virtual" "channel_map=front-left,front-right" "format=s16le" "channels=2" "rate=44100" "device=combined" "cookie=0x6a4f32c2" "fqdn=serveur.<domain>" "uname=Linux i686 2.6.38-ARCH #1 SMP PREEMPT Sun Apr 17 14:51:34 UTC 2011" "machine-id=4ba38398412a0320d92ec3ab000007c8" "user-name=invite" "server-version=pulseaudio 0.9.22"]
= eth0 IPv4 invite@serveur: Internal Audio Analog Stereo PulseAudio Sound Sink local
hostname = [serveur.local]
address = [<ip_server>]
port = [4713]
txt = ["form-factor=internal" "class=sound" "product-name=82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Audio Controller" "vendor-name=Intel Corporation" "icon-name=audio-card-pci" "description=Internal Audio Analog Stereo" "subtype=hardware" "channel_map=front-left,front-right" "format=s16le" "channels=2" "rate=44100" "device=alsa_output.pci-0000_00_1f.5.analog-stereo" "cookie=0x6a4f32c2" "fqdn=serveur.<domain>" "uname=Linux i686 2.6.38-ARCH #1 SMP PREEMPT Sun Apr 17 14:51:34 UTC 2011" "machine-id=4ba38398412a0320d92ec3ab000007c8" "user-name=invite" "server-version=pulseaudio 0.9.22"]
= eth0 IPv4 loopx@loop: Audio interne St__r__o analogique PulseAudio Sound Sink local
hostname = [loop.local]
address = [<ip_pc>]
port = [4713]
txt = ["form-factor=internal" "class=sound" "product-name=82801JI (ICH10 Family) HD Audio Controller" "vendor-name=Intel Corporation" "icon-name=audio-card-pci" "description=Audio interne Stéréo analogique" "subtype=hardware" "channel_map=front-left,front-right" "format=s16le" "channels=2" "rate=44100" "device=alsa_output.pci-0000_00_1b.0.analog-stereo" "cookie=0xa5842e8d" "fqdn=loop.<domain>" "uname=Linux x86_64 2.6.38-gentoo-r2 #2 SMP Sat Apr 23 23:53:31 CEST 2011" "machine-id=5c7f6d94283c253781ebac630000090c" "user-name=loopx" "server-version=pulseaudio 0.9.22"]
|
EDIT: in fact, by using pacmd, I see only one sink :
Code: |
loopx@loop ~ $ pacmd list-sinks
Welcome to PulseAudio! Use "help" for usage information.
>>> 1 sink(s) available.
* index: 0
name: <alsa_output.pci-0000_00_1b.0.analog-stereo>
driver: <module-alsa-card.c>
flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY FLAT_VOLUME DYNAMIC_LATENCY
state: RUNNING
suspend cause:
priority: 9959
volume: 0: 30% 1: 30%
0: -31,38 dB 1: -31,38 dB
balance 0,00
|
which is local to my PC ... and is what I can just use ... that's not a network use
Quote: | EDIT2: from here : http://wiki.laptop.org/go/PulseAudio
You can run padevchooser to control the pulseaudio server. This tool will prompt you when a new server on the network has been discovered. You can set the Default Sink and the Default Source here. The discovered pulseaudio servers will be listed in the list of available Sinks and Sources.
Once you selected your Sink you can try to play a sound.
[...] |
... when I select another server ... nothing happend ... the sound of application started after selection go out to local speaker ... not over the network ...
EDIT3: the firewall is down on the server and pulse is listening on the network, so it "should" work ... :
Code: |
[root@serveur ~]# netstat -an | grep 4713
tcp 0 0 0.0.0.0:4713 0.0.0.0:* LISTEN
tcp 0 0 :::4713 :::* LISTEN
|
(ipv4 and ipv6 ...) _________________ Mon MediaWiki perso : http://pix-mania.dyndns.org |
|
Back to top |
|
|
loopx Advocate
Joined: 01 Apr 2005 Posts: 2787 Location: Belgium / Liège
|
Posted: Thu Apr 28, 2011 9:49 pm Post subject: |
|
|
Networking works
In fact, the "padevchooser" wasn't working at all ... I have to use command-line ... On the Web, I found these two line who permit me to send a stream from my PC to my server :
Code: |
pactl load-module module-tunnel-sink "server=<ip_server> sink=<sink_on_server_side> sink_name=toto"
pacmd set-default-sink toto
|
This is working, but ... the sound is not very good some times, will need some optimizations ....
Here are my new local sink (that I can select on my PC to send a stream to the server) :
Code: |
index: 2
name: <toto>
driver: <module-tunnel.c>
flags: NETWORK HW_MUTE_CTRL HW_VOLUME_CTRL LATENCY
state: SUSPENDED
suspend cause: IDLE
priority: 0
volume: 0: 81% 1: 81%
balance 0,00
base volume: 100%
volume steps: 65537
muted: no
current latency: 0,00 ms
max request: 0 KiB
max rewind: 0 KiB
monitor source: 3
sample spec: s16le 2ch 44100Hz
channel map: front-left,front-right
Stéréo
used by: 0
linked by: 0
fixed latency: 250,00 ms
module: 21
properties:
device.description = "Internal Audio Analog Stereo on invite@serveur"
tunnel.remote.server = "<ip_server>"
tunnel.remote.sink = "<sink_in_server_side>"
device.icon_name = "audio-card"
tunnel.remote_version = "16"
tunnel.remote.user = "invite"
tunnel.remote.fqdn = "serveur"
tunnel.remote.description = "Internal Audio Analog Stereo"
|
Note: this tunnel is no more in use right now. _________________ Mon MediaWiki perso : http://pix-mania.dyndns.org |
|
Back to top |
|
|
loopx Advocate
Joined: 01 Apr 2005 Posts: 2787 Location: Belgium / Liège
|
Posted: Fri Apr 29, 2011 3:06 pm Post subject: |
|
|
Ok, all is working as expected (with command-line) ... but, I heart some "gap", some "little break" less than one second every 5-10 minutes (when using "module-combine" .. I'm checking if I got same behavior for a simple tunnel ...
Do you know if I can fix it ??? _________________ Mon MediaWiki perso : http://pix-mania.dyndns.org |
|
Back to top |
|
|
forrestfunk81 Guru
Joined: 07 Feb 2006 Posts: 565 Location: münchen.de
|
Posted: Fri Apr 29, 2011 11:53 pm Post subject: |
|
|
Did you found a solution for this little "gaps". I have the problem too. _________________ # cd /pub/
# more beer |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|