Ian Howard
2004-Aug-06 14:23 UTC
[icecast] problems setting the sample rate with icecast2 and darkice
At present my stream is at 11.025 kHz and I want it to be at 44.1 kHz. Input is coming from line-in on my sound blaster card under linux (RH 9) using the sb driver. I presume that it is icecast that sets the sample rate on the dsp in the card, though when I change the settings in icecast.xml and darkice.cfg as show below the stream becomes choppy; or rather the sampling doesn't seem to change in icecast but only in darkice. i.e. icecast still feeds a 11kHz stream to darkice that is trying to stream at 44kHz. Any ideas on this? exerpts from my config are below. Thanks! Ian <p>--snip-- darkice.cfg: # this section describes the audio input that will be streamed [input] device = /dev/dsp # OSS DSP soundcard device for the audio input sampleRate = 44100 # sample rate in Hz. try 11025, 22050 or 44100 bitsPerSample = 16 # bits per sample. try 16 channel = 2 # channels. 1 = mono, 2 = stereo icecast.xml: <encode> <samplerate>44100</samplerate> <channels>2</channels> <quality>10</quality> <!-- <minimum-bitrate>32000</minimum-bitrate> <maximum-bitrate>128000</maximum-bitrate> --> </encode> ... <module>oss</module> <param name="device">/dev/dsp</param> <param name="rate">44100</param> <param name="channels">2</param> <param name="metadata">1</param> <param name="metadatafilename">metadata_info</param> <p> -- Ian Howard ihoward@uwaterloo.ca +1 519 888 4567 x5227 GPG ID: D4D3 8028 8750 604D C9B7 6BF8 03CC 75E6 75F4 0388 <p><p>--- >8 ---- List archives: http://www.xiph.org/archives/ icecast project homepage: http://www.icecast.org/ To unsubscribe from this list, send a message to 'icecast-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
Akos Maroy
2004-Aug-06 14:23 UTC
[icecast] problems setting the sample rate with icecast2 and darkice
Ian Howard wrote:> At present my stream is at 11.025 kHz and I want it to be at 44.1 kHz. > > Input is coming from line-in on my sound blaster card under linux (RH 9) using > the sb driver. > > I presume that it is icecast that sets the sample rate on the dsp in the card,no, it is darkice. icecast doesn't touch the sound card at all.> though when I change the settings in icecast.xml and darkice.cfg as show below > the stream becomes choppy; or rather the sampling doesn't seem to change in > icecast but only in darkice. i.e. icecast still feeds a 11kHz stream to darkice > that is trying to stream at 44kHz.hm, I'm not familiar with these settings in icecast. darkice samples and encodes at 44.1kHz when you tell it to. maybe you should ask this question on the icecast mailing list.... <p>Akos --- >8 ---- List archives: http://www.xiph.org/archives/ icecast project homepage: http://www.icecast.org/ To unsubscribe from this list, send a message to 'icecast-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
Geoff Shang
2004-Aug-06 14:23 UTC
[icecast] problems setting the sample rate with icecast2 and darkice
Hi: I'm a bit confused. The excerpt you showed second was from an ices config file, not an icecast one. As has already been stated, icecast is just a server and doesn't touch the soundcard. Perhaps if you told us what you are trying to do then we could help more. BTW: The bit we really need to see from your darkice config is the icecast2 section where the encoding is done. This might shed some more light on your problem. Geoff. <p> -- Geoff Shang <gshang@uq.net.au> ICQ number 43634701 Make sure your E-mail can be read by everyone! http://www.betips.net/etc/evilmail.html Please avoid sending me Word or PowerPoint attachments. See http://www.fsf.org/philosophy/no-word-attachments.html --- >8 ---- List archives: http://www.xiph.org/archives/ icecast project homepage: http://www.icecast.org/ To unsubscribe from this list, send a message to 'icecast-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.