Karl Heyes
2004-Aug-06 14:23 UTC
[icecast] (was, streaming both ogg and mp3) now, sending out 3 streams
On Sun, 2003-11-23 at 00:35, Kerry Cox wrote:> Now I tried to add a third stream by adding the following <instance> to > the above config: > > <instance> > <hostname>xx.xxx.x.xxx</hostname> > <port>8000</port> > <password>secretpasswd</password> > <mount>/smallband.ogg</mount> > <yp>0</yp> > <reconnectdelay>2</reconnectdelay> > <reconnectattempts>5</reconnectattempts> > <maxqueuelength>80</maxqueuelength> > > <downmix>1</downmix> > > <resample> > <in-rate>22050</in-rate> > <out-rate>11000</out-rate> > </resample> > > <encode> > <nominal-bitrate>16000</nominal-bitrate> > <samplerate>11000</samplerate> > <channels>1</channels> > <quality>-1</quality> > </encode> > </instance> > > Any ideas what I am doing wrong? Thanks.<p>yeah, your resample in-rate is supposed to be 44100 not 22050 karl. <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.
Kerry Cox
2004-Aug-06 14:23 UTC
[icecast] (was, streaming both ogg and mp3) now, sending out 3 streams
<smacks self on head> Duh, I had assumed it took the sample rate from the stream directly before it and was not a standard rate. That's what you get for assuming. Makes an *ass" of *u* and *me*. I will fix that now. Thanks. KJ <p>On Sat, 2003-11-22 at 19:12, Karl Heyes wrote:> On Sun, 2003-11-23 at 00:35, Kerry Cox wrote: > > > Now I tried to add a third stream by adding the following <instance> to > > the above config: > > > > <instance> > > <hostname>xx.xxx.x.xxx</hostname> > > <port>8000</port> > > <password>secretpasswd</password> > > <mount>/smallband.ogg</mount> > > <yp>0</yp> > > <reconnectdelay>2</reconnectdelay> > > <reconnectattempts>5</reconnectattempts> > > <maxqueuelength>80</maxqueuelength> > > > > <downmix>1</downmix> > > > > <resample> > > <in-rate>22050</in-rate> > > <out-rate>11000</out-rate> > > </resample> > > > > <encode> > > <nominal-bitrate>16000</nominal-bitrate> > > <samplerate>11000</samplerate> > > <channels>1</channels> > > <quality>-1</quality> > > </encode> > > </instance> > > > > Any ideas what I am doing wrong? Thanks. > > > yeah, your resample in-rate is supposed to be 44100 not 22050 > > karl. > > > --- >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.-- Kerry Cox <kerry.cox@ksl.com> KSL / Bonneville International --- >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.
Karl Heyes
2004-Aug-06 14:23 UTC
[icecast] (was, streaming both ogg and mp3) now, sending out 3 streams
On Sun, 2003-11-23 at 03:43, Kerry Cox wrote:> <smacks self on head> > Duh, I had assumed it took the sample rate from the stream directly > before it and was not a standard rate. That's what you get for assuming. > Makes an *ass" of *u* and *me*. > I will fix that now. Thanks.Thats the sort of thing I've sorted in my mods, the samplerate is passed with the audio so some run-time info can be supplied to the backend. karl. <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.
Kerry Cox
2004-Aug-06 14:23 UTC
[icecast] (was, streaming both ogg and mp3) now, sending out 3 streams
Hmmm, I guess more is incorrect here than I thought. I changed the resample in-rate to be 44100 like it should have have been. But still no joy. Here is the error message as shown in the error.log file. I'm looking things over and am not seeing my error. It looks like the audio resample for this particular stream is good. [root@icecast conf]# ices /usr/local/icecast2/conf/ices.stream.3.xml & [2] 8214 [2003-11-22 18:44:18] INFO ices-core/main ices started... [2003-11-22 18:44:18] INFO input-oss/oss_open_module Opened audio device /dev/dsp at 2 channel(s), 41000 Hz [2003-11-22 18:44:18] INFO encode/encode_initialise Encoder initialising with bitrate management: 2 channels, 41000 Hz, minimum bitrate -1, nominal 96000, maximum -1 [root@icecast conf]# [2003-11-22 18:44:18] INFO audio/downmix_initialise Enabling stereo->mono downmixing [2003-11-22 18:44:18] INFO audio/downmix_initialise Enabling stereo->mono downmixing [2003-11-22 18:44:18] INFO audio/resample_initialise Initialised resampler for 1 channels, from 44100 Hz to 11000 Hz [2003-11-22 18:44:18] INFO encode/encode_initialise Encoder initialising with bitrate management: 1 channels, 11000 Hz, minimum bitrate -1, nominal 16000, maximum -1 [2003-11-22 18:44:18] INFO signals/signal_usr1_handler Metadata update requested [2003-11-22 18:44:18] INFO audio/resample_initialise Initialised resampler for 1 channels, from 41000 Hz to 22050 Hz [2003-11-22 18:44:18] INFO encode/encode_initialise Encoder initialising with bitrate management: 1 channels, 22050 Hz, minimum bitrate -1, nominal 32000, maximum -1 [2003-11-22 18:44:18] INFO stream/ices_instance_stream Connected to server: 66.166.6.188:8000/hischannel.smallband.ogg [2003-11-22 18:44:18] INFO stream/ices_instance_stream Connected to server: 66.166.6.188:8000/hischannel.highband.ogg [2003-11-22 18:44:18] EROR stream/ices_instance_stream Failed initial connect to 66.166.6.188:8000 (Login failed: Success) [2003-11-22 18:44:18] DBUG encode/encode_clear Clearing encoder engine [2003-11-22 18:44:19] DBUG input/input_loop An instance died, removing it [2003-11-22 18:44:19] DBUG input/input_flush_queue Input queue flush requested The "login failed: success" message is especially cryptic. It loks like the smallband option which is the smallest now works, but the mid-range or lowband option never initializes. Funky... Am I taking variables from the first set and is it ignoring the mid-range set and going directly on to the last? Just looking for any suggestions or hints. On a positive note, the dual streaming works great still. Just can't get the smaller third stream working. Thanks. KJ <p><p>On Sat, 2003-11-22 at 19:12, Karl Heyes wrote:> On Sun, 2003-11-23 at 00:35, Kerry Cox wrote: > > > Now I tried to add a third stream by adding the following <instance> to > > the above config: > > > > <instance> > > <hostname>xx.xxx.x.xxx</hostname> > > <port>8000</port> > > <password>secretpasswd</password> > > <mount>/smallband.ogg</mount> > > <yp>0</yp> > > <reconnectdelay>2</reconnectdelay> > > <reconnectattempts>5</reconnectattempts> > > <maxqueuelength>80</maxqueuelength> > > > > <downmix>1</downmix> > > > > <resample> > > <in-rate>22050</in-rate> > > <out-rate>11000</out-rate> > > </resample> > > > > <encode> > > <nominal-bitrate>16000</nominal-bitrate> > > <samplerate>11000</samplerate> > > <channels>1</channels> > > <quality>-1</quality> > > </encode> > > </instance> > > > > Any ideas what I am doing wrong? Thanks. > > > yeah, your resample in-rate is supposed to be 44100 not 22050 > > karl. > > > --- >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.-- Kerry Cox <kerry.cox@ksl.com> KSL / Bonneville International --- >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.
Karl Heyes
2004-Aug-06 14:23 UTC
[icecast] (was, streaming both ogg and mp3) now, sending out 3 streams
On Sun, 2003-11-23 at 03:51, Kerry Cox wrote:> Hmmm, I guess more is incorrect here than I thought. I changed the > resample in-rate to be 44100 like it should have have been. > But still no joy. Here is the error message as shown in the error.log > file. I'm looking things over and am not seeing my error. > It looks like the audio resample for this particular stream is good. > > [root@icecast conf]# ices /usr/local/icecast2/conf/ices.stream.3.xml & > [2] 8214 > [2003-11-22 18:44:18] INFO ices-core/main ices started... > [2003-11-22 18:44:18] INFO input-oss/oss_open_module Opened audio > device /dev/dsp at 2 channel(s), 41000 HzI didn't spot this before, your card/driver likes a samplerate of 41000hz, but 44100 is probably what you want.> [2003-11-22 18:44:18] INFO encode/encode_initialise Encoder > initialising with bitrate management: 2 channels, 41000 Hz, minimum > bitrate -1, nominal 96000, maximum -1I would suggest using the <quality> tags and not the <nominal-bitrate> tags as the latter forces managed modes, therefore higher CPU usage.> [root@icecast conf]# [2003-11-22 18:44:18] INFO > audio/downmix_initialise Enabling stereo->mono downmixing > [2003-11-22 18:44:18] INFO audio/downmix_initialise Enabling > stereo->mono downmixing > [2003-11-22 18:44:18] INFO audio/resample_initialise Initialised > resampler for 1 channels, from 44100 Hz to 11000 Hznotice a slight mismatch here, 44100 expected but audio is actually 41000> [2003-11-22 18:44:18] INFO encode/encode_initialise Encoder > initialising with bitrate management: 1 channels, 11000 Hz, minimum > bitrate -1, nominal 16000, maximum -1 > [2003-11-22 18:44:18] INFO signals/signal_usr1_handler Metadata update > requested > [2003-11-22 18:44:18] INFO audio/resample_initialise Initialised > resampler for 1 channels, from 41000 Hz to 22050 Hzthis matches the actual input rate, but I guess you'll want to change this as well.> [2003-11-22 18:44:18] INFO encode/encode_initialise Encoder > initialising with bitrate management: 1 channels, 22050 Hz, minimum > bitrate -1, nominal 32000, maximum -1 > [2003-11-22 18:44:18] INFO stream/ices_instance_stream Connected to > server: 66.166.6.188:8000/hischannel.smallband.ogg > [2003-11-22 18:44:18] INFO stream/ices_instance_stream Connected to > server: 66.166.6.188:8000/hischannel.highband.ogg > [2003-11-22 18:44:18] EROR stream/ices_instance_stream Failed initial > connect to 66.166.6.188:8000 (Login failed: Success)<p>> The "login failed: success" message is especially cryptic. again check the icecast log to see why the source is dropped.> It loks like the smallband option which is the smallest now works, but > the mid-range or lowband option never initializes. Funky...That sounds like a race to connect type problem, make sure of the max source count on icecast. karl. <p><p><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.