[Icecast] Help with ices2
Manuel J Contreras Maya
manuel at agenteel.com
Wed May 16 17:37:18 UTC 2012
Hello,
I am trying to connect a instance of ices2 to icecast2. It seems that the connection is done well but I do not know how to take the microphone input to send it to the server. Any help is highly appreciated.
Manuel
The information is this:
Part of my ices.xml:
<input>
<module>alsa</module>
<param name="rate">44100</param>
<param name="channels">2</param>
<param name="device">hw:0,0</param>
<!-- Read metadata (from stdin by default, or -->
<!-- filename defined below (if the latter, only on SIGUSR1) -->
<param name="metadata">1</param>
<param name="metadatafilename">test file</param>
</input>
This output info from alsa-info is in the attached file.
--
Manuel J Contreras Maya
E. manuel at agenteel.com <mailto:manuel at agenteel.com>
W. agenteel.com <http://agenteel.net>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xiph.org/pipermail/icecast/attachments/20120516/61d5320c/attachment.htm>
-------------- next part --------------
upload=true&script=true&cardinfo=
!!################################
!!ALSA Information Script v 0.4.60
!!################################
!!Script ran on: Wed May 16 17:02:07 UTC 2012
!!Linux Distribution
!!------------------
Fedora release 16 (Verne) Fedora release 16 (Verne) Fedora release 16 (Verne) Fedora release 16 (Verne)
!!DMI Information
!!---------------
Manufacturer: PCCHIPS
Product Name: P27G
Product Version: 1.0
!!Kernel Information
!!------------------
Kernel release: 3.1.6-1.fc16.i686.PAE
Operating System: GNU/Linux
Architecture: i686
Processor: i686
SMP Enabled: Yes
!!ALSA Version
!!------------
Driver version: 1.0.24
Library version: 1.0.24
Utilities version: 1.0.24.1
!!Loaded ALSA modules
!!-------------------
snd_cmipci
!!Sound Servers on this system
!!----------------------------
Pulseaudio:
Installed - Yes (/usr/bin/pulseaudio)
Running - Yes
Jack:
Installed - Yes (/usr/bin/jackd)
Running - No
!!Soundcards recognised by ALSA
!!-----------------------------
0 [CMI8738 ]: CMI8738-MC6 - C-Media CMI8738
C-Media CMI8738 (model 55) at 0xe800, irq 17
!!PCI Soundcards installed in the system
!!--------------------------------------
00:09.0 Multimedia audio controller: C-Media Electronics Inc CM8738 (rev 10)
!!Advanced information - PCI Vendor/Device/Subsystem ID's
!!--------------------------------------------------------
00:09.0 0401: 13f6:0111 (rev 10)
Subsystem: 13f6:0111
!!Loaded sound module options
!!--------------------------
!!Module: snd_cmipci
enable : Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y
fm_port : 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
id : (null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)
index : -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
joystick_port : 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
mpu_port : 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
soft_ac3 : Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y
!!ALSA Device nodes
!!-----------------
crw-rw----+ 1 root audio 116, 9 May 13 03:28 /dev/snd/controlC0
crw-rw----+ 1 root audio 116, 8 May 13 03:28 /dev/snd/hwC0D0
crw-rw----+ 1 root audio 116, 2 May 13 03:28 /dev/snd/midiC0D0
crw-rw----+ 1 root audio 116, 7 May 16 10:55 /dev/snd/pcmC0D0c
crw-rw----+ 1 root audio 116, 6 May 13 03:29 /dev/snd/pcmC0D0p
crw-rw----+ 1 root audio 116, 5 May 13 03:29 /dev/snd/pcmC0D1p
crw-rw----+ 1 root audio 116, 4 May 16 11:57 /dev/snd/pcmC0D2c
crw-rw----+ 1 root audio 116, 3 May 13 03:29 /dev/snd/pcmC0D2p
crw-rw----+ 1 root audio 116, 1 May 13 03:28 /dev/snd/seq
crw-rw----+ 1 root audio 116, 33 May 13 03:28 /dev/snd/timer
/dev/snd/by-path:
total 0
drwxr-xr-x. 2 root root 60 May 13 03:28 .
drwxr-xr-x. 3 root root 260 May 13 03:28 ..
lrwxrwxrwx. 1 root root 12 May 13 03:28 pci-0000:00:09.0 -> ../controlC0
!!ALSA configuration files
!!------------------------
!!System wide config file (/etc/asound.conf)
#
# Place your global alsa-lib configuration here...
#
@hooks [
{
func load
files [
"/etc/alsa/pulse-default.conf"
]
errors false
}
]
!!Aplay/Arecord output
!!------------
APLAY
**** List of PLAYBACK Hardware Devices ****
card 0: CMI8738 [C-Media CMI8738], device 0: CMI8738-MC6 [C-Media PCI DAC/ADC]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: CMI8738 [C-Media CMI8738], device 1: CMI8738-MC6 [C-Media PCI 2nd DAC]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: CMI8738 [C-Media CMI8738], device 2: CMI8738-MC6 [C-Media PCI IEC958]
Subdevices: 1/1
Subdevice #0: subdevice #0
ARECORD
**** List of CAPTURE Hardware Devices ****
card 0: CMI8738 [C-Media CMI8738], device 0: CMI8738-MC6 [C-Media PCI DAC/ADC]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: CMI8738 [C-Media CMI8738], device 2: CMI8738-MC6 [C-Media PCI IEC958]
Subdevices: 1/1
Subdevice #0: subdevice #0
!!Amixer output
!!-------------
!!-------Mixer controls for card 0 [CMI8738]
Card hw:0 'CMI8738'/'C-Media CMI8738 (model 55) at 0xe800, irq 17'
Mixer name : 'CMedia PCI'
Components : ''
Controls : 41
Simple ctrls : 22
Simple mixer control 'Master',0
Capabilities: pvolume penum
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 24 [77%]
Front Right: Playback 24 [77%]
Simple mixer control '3D Control - Switch',0
Capabilities: pswitch pswitch-joined penum
Playback channels: Mono
Mono: Playback [off]
Simple mixer control 'PCM',0
Capabilities: pvolume pswitch pswitch-joined cswitch penum
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: Playback 0 - 31
Front Left: Playback 24 [77%] [on] Capture [off]
Front Right: Playback 24 [77%] [on] Capture [off]
Simple mixer control 'Synth',0
Capabilities: pvolume pswitch pswitch-joined cswitch penum
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: Playback 0 - 31
Front Left: Playback 24 [77%] [on] Capture [off]
Front Right: Playback 24 [77%] [on] Capture [off]
Simple mixer control 'Line',0
Capabilities: pvolume pswitch cswitch penum
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: Playback 0 - 31
Front Left: Playback 0 [0%] [off] Capture [off]
Front Right: Playback 0 [0%] [off] Capture [off]
Simple mixer control 'Line-In Mode',0
Capabilities: enum
Items: 'Line-In' 'Rear Output' 'Bass Output'
Item0: 'Line-In'
Simple mixer control 'CD',0
Capabilities: pvolume pswitch cswitch penum
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: Playback 0 - 31
Front Left: Playback 0 [0%] [off] Capture [off]
Front Right: Playback 0 [0%] [off] Capture [off]
Simple mixer control 'Mic',0
Capabilities: pvolume pvolume-joined cvolume cvolume-joined pswitch pswitch-joined cswitch cswitch-joined penum
Playback channels: Mono
Capture channels: Mono
Limits: Playback 0 - 31 Capture 0 - 7
Mono: Playback 0 [0%] [off] Capture 0 [0%] [off]
Simple mixer control 'Mic Boost',0
Capabilities: pswitch pswitch-joined cswitch cswitch-joined penum
Playback channels: Mono
Capture channels: Mono
Mono: Playback [off] Capture [on]
Simple mixer control 'Mic-In Mode',0
Capabilities: enum
Items: 'Mic-In' 'Center/LFE Output'
Item0: 'Center/LFE Output'
Simple mixer control 'Phone',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined penum
Playback channels: Mono
Limits: Playback 0 - 7
Mono: Playback 0 [0%] [off]
Simple mixer control 'IEC958 5V',0
Capabilities: pswitch pswitch-joined penum
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'IEC958 Copyright',0
Capabilities: pswitch pswitch-joined penum
Playback channels: Mono
Mono: Playback [off]
Simple mixer control 'IEC958 In Monitor',0
Capabilities: pswitch pswitch-joined penum
Playback channels: Mono
Mono: Playback [off]
Simple mixer control 'IEC958 In Phase Inverse',0
Capabilities: pswitch pswitch-joined penum
Playback channels: Mono
Mono: Playback [off]
Simple mixer control 'IEC958 In Select',0
Capabilities: pswitch pswitch-joined penum
Playback channels: Mono
Mono: Playback [off]
Simple mixer control 'IEC958 In Valid',0
Capabilities: pswitch pswitch-joined penum
Playback channels: Mono
Mono: Playback [off]
Simple mixer control 'IEC958 Loop',0
Capabilities: pswitch pswitch-joined penum
Playback channels: Mono
Mono: Playback [off]
Simple mixer control 'IEC958 Output',0
Capabilities: pswitch pswitch-joined penum
Playback channels: Mono
Mono: Playback [off]
Simple mixer control 'Beep',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined penum
Playback channels: Mono
Limits: Playback 0 - 3
Mono: Playback 2 [67%] [on]
Simple mixer control 'Aux',0
Capabilities: pvolume pswitch cswitch penum
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: Playback 0 - 15
Front Left: Playback 0 [0%] [off] Capture [off]
Front Right: Playback 0 [0%] [off] Capture [off]
Simple mixer control 'Four Channel Mode',0
Capabilities: pswitch pswitch-joined penum
Playback channels: Mono
Mono: Playback [on]
!!Alsactl output
!!-------------
--startcollapse--
state.CMI8738 {
control.1 {
iface MIXER
name 'Master Playback Volume'
value.0 24
value.1 24
comment {
access 'read write'
type INTEGER
count 2
range '0 - 31'
}
}
control.2 {
iface MIXER
name '3D Control - Switch'
value false
comment {
access 'read write'
type BOOLEAN
count 1
}
}
control.3 {
iface MIXER
name 'PCM Playback Volume'
value.0 24
value.1 24
comment {
access 'read write'
type INTEGER
count 2
range '0 - 31'
}
}
control.4 {
iface MIXER
name 'PCM Playback Switch'
value true
comment {
access 'read write'
type BOOLEAN
count 1
}
}
control.5 {
iface MIXER
name 'PCM Capture Switch'
value.0 false
value.1 false
comment {
access 'read write'
type BOOLEAN
count 2
}
}
control.6 {
iface MIXER
name 'Synth Playback Volume'
value.0 24
value.1 24
comment {
access 'read write'
type INTEGER
count 2
range '0 - 31'
}
}
control.7 {
iface MIXER
name 'Synth Playback Switch'
value true
comment {
access 'read write'
type BOOLEAN
count 1
}
}
control.8 {
iface MIXER
name 'Synth Capture Route'
value.0 false
value.1 false
value.2 false
value.3 false
comment {
access 'read write'
type BOOLEAN
count 4
}
}
control.9 {
iface MIXER
name 'CD Playback Volume'
value.0 0
value.1 0
comment {
access 'read write'
type INTEGER
count 2
range '0 - 31'
}
}
control.10 {
iface MIXER
name 'CD Playback Switch'
value.0 false
value.1 false
comment {
access 'read write'
type BOOLEAN
count 2
}
}
control.11 {
iface MIXER
name 'CD Capture Route'
value.0 false
value.1 false
value.2 false
value.3 false
comment {
access 'read write'
type BOOLEAN
count 4
}
}
control.12 {
iface MIXER
name 'Line Playback Volume'
value.0 0
value.1 0
comment {
access 'read write'
type INTEGER
count 2
range '0 - 31'
}
}
control.13 {
iface MIXER
name 'Line Playback Switch'
value.0 false
value.1 false
comment {
access 'read write'
type BOOLEAN
count 2
}
}
control.14 {
iface MIXER
name 'Line Capture Route'
value.0 false
value.1 false
value.2 false
value.3 false
comment {
access 'read write'
type BOOLEAN
count 4
}
}
control.15 {
iface MIXER
name 'Mic Playback Volume'
value 0
comment {
access 'read write'
type INTEGER
count 1
range '0 - 31'
}
}
control.16 {
iface MIXER
name 'Mic Playback Switch'
value false
comment {
access 'read write'
type BOOLEAN
count 1
}
}
control.17 {
iface MIXER
name 'Mic Capture Switch'
value false
comment {
access 'read write'
type BOOLEAN
count 1
}
}
control.18 {
iface MIXER
name 'Beep Playback Volume'
value 2
comment {
access 'read write'
type INTEGER
count 1
range '0 - 3'
}
}
control.19 {
iface MIXER
name 'Aux Playback Volume'
value.0 0
value.1 0
comment {
access 'read write'
type INTEGER
count 2
range '0 - 15'
}
}
control.20 {
iface MIXER
name 'Aux Playback Switch'
value.0 false
value.1 false
comment {
access 'read write'
type BOOLEAN
count 2
}
}
control.21 {
iface MIXER
name 'Aux Capture Switch'
value.0 false
value.1 false
comment {
access 'read write'
type BOOLEAN
count 2
}
}
control.22 {
iface MIXER
name 'Mic Boost Playback Switch'
value false
comment {
access 'read write'
type BOOLEAN
count 1
}
}
control.23 {
iface MIXER
name 'Mic Capture Volume'
value 0
comment {
access 'read write'
type INTEGER
count 1
range '0 - 7'
}
}
control.24 {
iface MIXER
name 'Phone Playback Volume'
value 0
comment {
access 'read write'
type INTEGER
count 1
range '0 - 7'
}
}
control.25 {
iface MIXER
name 'Phone Playback Switch'
value false
comment {
access 'read write'
type BOOLEAN
count 1
}
}
control.26 {
iface MIXER
name 'Beep Playback Switch'
value true
comment {
access 'read write'
type BOOLEAN
count 1
}
}
control.27 {
iface MIXER
name 'Mic Boost Capture Switch'
value true
comment {
access 'read write'
type BOOLEAN
count 1
}
}
control.28 {
iface MIXER
name 'Four Channel Mode'
value true
comment {
access 'read write'
type BOOLEAN
count 1
}
}
control.29 {
iface MIXER
name 'Line-In Mode'
value Line-In
comment {
access 'read write'
type ENUMERATED
count 1
item.0 Line-In
item.1 'Rear Output'
item.2 'Bass Output'
}
}
control.30 {
iface MIXER
name 'IEC958 Output Switch'
value false
comment {
access 'read write'
type BOOLEAN
count 1
}
}
control.31 {
iface MIXER
name 'IEC958 In Valid'
value false
comment {
access 'read write'
type BOOLEAN
count 1
}
}
control.32 {
iface MIXER
name 'IEC958 Copyright'
value false
comment {
access 'read write'
type BOOLEAN
count 1
}
}
control.33 {
iface MIXER
name 'IEC958 5V'
value true
comment {
access 'read write'
type BOOLEAN
count 1
}
}
control.34 {
iface MIXER
name 'IEC958 Loop'
value false
comment {
access 'read write'
type BOOLEAN
count 1
}
}
control.35 {
iface MIXER
name 'IEC958 In Monitor'
value false
comment {
access 'read write'
type BOOLEAN
count 1
}
}
control.36 {
iface PCM
device 2
name 'IEC958 Playback Default'
value '0082000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
comment {
access 'read write'
type IEC958
count 1
}
}
control.37 {
iface PCM
device 2
name 'IEC958 Playback Con Mask'
value ffffffff00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
comment {
access read
type IEC958
count 1
}
}
control.38 {
iface PCM
device 2
name 'IEC958 Playback PCM Stream'
value '0082000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
comment {
access 'read write inactive'
type IEC958
count 1
}
}
control.39 {
iface MIXER
name 'IEC958 In Select'
value false
comment {
access 'read write'
type BOOLEAN
count 1
}
}
control.40 {
iface MIXER
name 'IEC958 In Phase Inverse'
value false
comment {
access 'read write'
type BOOLEAN
count 1
}
}
control.41 {
iface MIXER
name 'Mic-In Mode'
value 'Center/LFE Output'
comment {
access 'read write'
type ENUMERATED
count 1
item.0 Mic-In
item.1 'Center/LFE Output'
}
}
}
--endcollapse--
!!All Loaded Modules
!!------------------
Module
lockd
nf_conntrack_ipv4
nf_defrag_ipv4
xt_state
nf_conntrack
ppdev
snd_cmipci
gameport
snd_seq
parport_pc
parport
snd_pcm
snd_page_alloc
snd_opl3_lib
snd_timer
snd_hwdep
snd_mpu401_uart
snd_rawmidi
snd_seq_device
snd
via_rhine
i2c_viapro
soundcore
mii
serio_raw
sunrpc
microcode
uinput
pata_acpi
ata_generic
pata_via
sata_via
nouveau
ttm
drm_kms_helper
drm
i2c_algo_bit
i2c_core
mxm_wmi
wmi
video
!!ALSA/HDA dmesg
!!------------------
[255903.477684] cmipci: invalid PCM pointer: 0xffff
[256051.634033] ALSA sound/core/pcm_lib.c:1825 capture write error (DMA or IRQ trouble?)
[268336.066035] ALSA sound/core/pcm_lib.c:1825 capture write error (DMA or IRQ trouble?)
More information about the Icecast
mailing list