[pulseaudio-discuss] Help with RTP setup please
Jim Duda
jim at duda.tzo.com
Thu Jan 10 17:20:29 PST 2008
Wow, this pulseaudio software is really impressive!!
I'm playing with setting up an RTP stream. I cannot figure out what is
happening, what am I'm doing wrong.
I have one machine whose pulse "list" is shown below.
When I attempt to play through pulseaudio to the rtp port, I get this
error message:
mplayer -ao alsa:device=pulse 03\ Bad\ Day.m4a
MPlayer 1.0rc2-4.1.2 (C) 2000-2007 MPlayer Team
CPU: Intel Celeron A Mendocino/Pentium II Dixon (Family: 6, Model: 6,
Stepping: 5)
CPUflags: MMX: 1 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Compiled with runtime CPU detection.
Playing 03 Bad Day.m4a.
ISO: File Type Major Brand: Apple iTunes AAC-LC Audio
Quicktime/MOV file format detected.
[mov] Audio stream found, -aid 0
==========================================================================
Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio)
decoder)
==========================================================================
E: socket-client.c: socket(): Address family not supported by protocol
*** PULSEAUDIO: Unable to connect: Connection refused
[AO_ALSA] Playback open error: Connection refused
Could not open/initialize audio device -> no sound.
Audio: no sound
Video: no video
~/.asoundrc:
pcm.pulse {
type pulse
}
ctl.pulse {
type pulse
}
My kernel has support for multicast.
asterisk# ping 224.0.0.1
PING 224.0.0.1 (224.0.0.1) 56(84) bytes of data.
64 bytes from 192.168.1.50: icmp_seq=1 ttl=64 time=0.484 ms
64 bytes from 192.168.1.50: icmp_seq=2 ttl=64 time=0.417 ms
list:
3 sink(s) available.
index: 0
name: <alsa_output.hw_0>
driver: <modules/module-alsa-sink.c>
volume: <0: 74% 1: 74%>
latency: <50068 usec>
monitor_source: <0>
sample spec: <s16le 2ch 44100Hz>
channel map: <front-left,front-right>
owner module: <0>
description: <ALSA PCM on hw:0 (CS46xx)>
index: 1
name: <rtp_recv>
driver: <modules/module-null-sink.c>
volume: <0: 100% 1: 100%>
latency: <97125 usec>
monitor_source: <2>
sample spec: <s16le 2ch 44100Hz>
channel map: <front-left,front-right>
owner module: <6>
description: <RTP Multicast Source>
* index: 2
name: <rtp_send>
driver: <modules/module-null-sink.c>
volume: <0: 100%>
latency: <9249 usec>
monitor_source: <3>
sample spec: <uLaw 1ch 16000Hz>
channel map: <mono>
owner module: <8>
description: <RTP Multicast Sink>
4 source(s) available.
index: 0
name: <alsa_output.hw_0.monitor>
driver: <modules/module-alsa-sink.c>
latency: <0 usec>
sample spec: <s16le 2ch 44100Hz>
channel map: <front-left,front-right>
monitor_of: <0>
owner module: <0>
description: <Monitor Source of ALSA PCM on hw:0 (CS46xx)>
index: 1
name: <alsa_input.hw_0>
driver: <modules/module-alsa-source.c>
latency: <8707 usec>
sample spec: <s16le 2ch 44100Hz>
channel map: <front-left,front-right>
owner module: <1>
description: <ALSA PCM on hw:0 (CS46xx)>
* index: 2
name: <rtp_recv.monitor>
driver: <modules/module-null-sink.c>
latency: <0 usec>
sample spec: <s16le 2ch 44100Hz>
channel map: <front-left,front-right>
monitor_of: <1>
owner module: <6>
description: <Monitor Source of RTP Multicast Source>
index: 3
name: <rtp_send.monitor>
driver: <modules/module-null-sink.c>
latency: <0 usec>
sample spec: <uLaw 1ch 16000Hz>
channel map: <mono>
monitor_of: <2>
owner module: <8>
description: <Monitor Source of RTP Multicast Sink>
0 sink input(s) available.
1 source outputs(s) available.
index: 0
name: 'RTP Monitor Stream'
driver: <modules/rtp/module-rtp-send.c>
state: RUNNING
source: <3> 'rtp_send.monitor'
sample spec: <uLaw 1ch 16000Hz>
channel map: <mono>
resample method: src-sinc-fastest
owner module: <9>
0 client(s) logged in.
12 module(s) loaded.
index: 0
name: <module-alsa-sink>
argument: <device=hw:0>
used: 0
auto unload: no
index: 1
name: <module-alsa-source>
argument: <device=hw:0>
used: 0
auto unload: no
index: 3
name: <module-cli-protocol-tcp>
argument: <>
used: -1
auto unload: no
index: 4
name: <module-native-protocol-tcp>
argument: <auth-anonymous=1 auth-ip-acl=192.168.1.0/24>
used: -1
auto unload: no
index: 5
name: <module-http-protocol-tcp>
argument: <>
used: -1
auto unload: no
index: 6
name: <module-null-sink>
argument: <sink_name=rtp_recv description="RTP Multicast Source">
used: -1
auto unload: no
index: 7
name: <module-rtp-recv>
argument: <sink=rtp_recv>
used: -1
auto unload: no
index: 8
name: <module-null-sink>
argument: <sink_name=rtp_send format=ulaw channels=1 rate=16000
description="RTP Multicast Sink">
used: -1
auto unload: no
index: 9
name: <module-rtp-send>
argument: <source=rtp_send.monitor>
used: -1
auto unload: no
index: 10
name: <module-volume-restore>
argument: <>
used: -1
auto unload: no
index: 11
name: <module-rescue-streams>
argument: <>
used: -1
auto unload: no
index: 12
name: <module-gconf>
argument: <>
used: -1
auto unload: no
0 cache entries available.
Thanks,
Jim
More information about the pulseaudio-discuss
mailing list