ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] pulseaudio: запись звука
@ 2009-11-11 10:49 Eugene Prokopiev
  0 siblings, 0 replies; only message in thread
From: Eugene Prokopiev @ 2009-11-11 10:49 UTC (permalink / raw)
  To: community

Здравствуйте!

Есть машина (branch/5.1), на которой звук чудесно записывается и
воспроизводится посредством arecord/aplay. На ней же запущен:

# ps aux | grep pulse
pulse    2199  3.8  1.6  85212  4192 ?        S<Lsl 21:53   1:39
pulseaudio -n --system -D -L module-native-protocol-tcp
auth-ip-acl=192.168.46.1 -L module-alsa-sink

Он позволяет воспроизводить звук с другой машины с помощью
paplay/aplay, а вот записать я никак не могу:

$ parecord --format=alaw 0.wav
$ ffprobe 0.wav
FFprobe version SVN-r92, Copyright (c) 2007-2009 Stefano Sabatini
  libavutil     50. 3. 0 / 50. 3. 0
  libavcodec    52.32. 0 / 52.32. 0
  libavformat   52.36. 0 / 52.36. 0
  built on Oct 15 2009 14:00:40, gcc: 4.4.1 20090725 (ALT Linux 4.4.1-alt3)
0.wav: Unknown format

$ arecord 1.wav
Recording WAVE '1.wav' : Unsigned 8 bit, Rate 8000 Hz, Mono
^CAborted by signal Прерывание...
$ ffprobe 1.wav
FFprobe version SVN-r92, Copyright (c) 2007-2009 Stefano Sabatini
  libavutil     50. 3. 0 / 50. 3. 0
  libavcodec    52.32. 0 / 52.32. 0
  libavformat   52.36. 0 / 52.36. 0
  built on Oct 15 2009 14:00:40, gcc: 4.4.1 20090725 (ALT Linux 4.4.1-alt3)
Input #0, wav, from '1.wav':
  Duration: 00:00:00.88, bitrate: 64 kb/s
    Stream #0.0: Audio: pcm_u8, 8000 Hz, 1 channels, s16, 64 kb/s

Во втором случае получается более осмысленный результат, однако в
файле тишина. На клиенте настройки такие:

$ amixer
Simple mixer control 'Master',0
  Capabilities: pvolume pswitch pswitch-joined
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 65536
  Mono:
  Front Left: Playback 65536 [100%] [on]
  Front Right: Playback 65536 [100%] [on]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch cswitch-joined
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 65536
  Front Left: Capture 65536 [100%] [on]
  Front Right: Capture 65536 [100%] [on]

$ cat /etc/asound.conf
pcm.pulse {
    type pulse
}
ctl.pulse {
    type pulse
}
pcm.!default {
    type pulse
}
ctl.!default {
    type pulse
}


Может я что-то делаю неправильно?

-- 
С уважением,
Прокопьев Евгений


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-11-11 10:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-11 10:49 [Comm] pulseaudio: запись звука Eugene Prokopiev

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git