>it supposed to, check the log file for details but there is no reason >for it not to work with 2 instances. > >Note as well, that you should have 2 instances each of which has the >icecast connection details and an encode section. >I don't quite understand. You always talk about two instances. Do you really mean two instances of ices2 called seperately? Do I have to make to config files, too? In this case, what about the possibility of two <encode> sections in the config file? This is what I currently have in my config file: <?xml version="1.0"?> <ices> <background>0</background> <logpath>/data/audio/logging</logpath> <logfile>ices.log</logfile> <loglevel>3</loglevel> <consolelog>0</consolelog> <stream> <metadata> <name>Example stream name</name> <genre>Example genre</genre> <description>Yarf - the otherkin radio (low bitrate)</description> </metadata> <input> <module>playlist</module> <param name="type">basic</param> <param name="file">playlist.txt</param> <param name="random">0</param> <param name="once">0</param> </input> <instance> <hostname>localhost</hostname> <port>8000</port> <password>#classified#</password> <mount>/low.ogg</mount> <reconnectdelay>1</reconnectdelay> <reconnectattempts>-1</reconnectattempts> <maxqueuelength>80</maxqueuelength> <encode> <samplerate>22050</samplerate> <channels>1</channels> <quality>-1</quality> </encode> </instance> <instance> <hostname>localhost</hostname> <port>8000</port> <password>#classified#</password> <mount>/medium.ogg</mount> <reconnectdelay>1</reconnectdelay> <reconnectattempts>-1</reconnectattempts> <maxqueuelength>80</maxqueuelength> <encode> <samplerate>44100</samplerate> <channels>1</channels> <quality>-1</quality> </encode> </instance> </stream> </ices> And this is what I got in the logfile: [2003-11-22 01:30:25] INFO ices-core/main ices started... [2003-11-22 01:30:25] INFO stream/ices_instance_stream Connected to server: localhost:8000/low.ogg [2003-11-22 01:30:25] EROR stream/ices_instance_stream Failed initial connect to localhost:8000 (Login failed: Success) [2003-11-22 01:30:25] INFO signals/signal_usr1_handler Metadata update requested [2003-11-22 01:30:25] INFO playlist-basic/playlist_basic_get_next_filename Loading playlist from file "playlist.txt" [2003-11-22 01:30:25] INFO playlist-builtin/playlist_read Currently playing from stdin [2003-11-22 01:30:26] INFO encode/encode_initialise Encoder initialising in VBR mode: 1 channel(s), 22050 Hz, quality -1.000000 [2003-11-22 01:30:26] INFO audio/resample_initialise Initialised resampler for 1 channels, from 44100 Hz to 22050 Hz [2003-11-22 01:30:26] INFO audio/downmix_initialise Enabling stereo->mono downmixing Maybe I just have the config file wrong. Could you tell me how to fix it? (Is there anywhere a DTD for this xml?) Lukas <p><p>--- >8 ---- List archives: xiph.org/archives icecast project homepage: 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.
>> [2003-11-22 01:30:25] INFO ices-core/main ices started... >> [2003-11-22 01:30:25] INFO stream/ices_instance_stream Connected to server: localhost:8000/low.ogg >> [2003-11-22 01:30:25] EROR stream/ices_instance_stream Failed initial connect to localhost:8000 (Login failed: Success) > >Thats saying that the connection to icecast couldn't even be made >(ignore the success message), you'll have to check against the icecast >log but it could be password mismatch or max source limit.What a dumb error. I set the maximum number of sources to 2 and tried to give it three. After updating the configuration file it worked. Do you have an idea if there is a good way to compensate for dropped streams? If my original source stream drops there is an error and ices will stop (and configuring looping wont help here). One way is to loop the invoking of ices so it will try over and over, but then the stream is interrupted towards icecast. Is there a way to configure curl to try again and make it seem as if the stream never dropped? Also, can you explain how icecast 2 stream relays are set up and work? I've also heared there's a way to configure icecast to stream some standard file if it gets no stream to broadcast. Is this correct? If so, how to do that? You have been tranmendous help already, thank you very much! <p>Lukas <p>--- >8 ---- List archives: xiph.org/archives icecast project homepage: 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.
On Sat, 2003-11-22 at 00:43, Lukas Österreicher wrote:> >it supposed to, check the log file for details but there is no reason > >for it not to work with 2 instances. > > > >Note as well, that you should have 2 instances each of which has the > >icecast connection details and an encode section. > > > > I don't quite understand. You always talk about two instances. Do you really mean > two instances of ices2 called seperately? Do I have to make to config files, too?no, I meant 2 <instance> sections, like you have below> In this case, what about the possibility of two <encode> sections in the config file? > > This is what I currently have in my config file: > > <instance> > <hostname>localhost</hostname> > <port>8000</port> > <password>#classified#</password> > <mount>/low.ogg</mount> > > <reconnectdelay>1</reconnectdelay> > <reconnectattempts>-1</reconnectattempts> > > <maxqueuelength>80</maxqueuelength> > > <encode> > <samplerate>22050</samplerate> > <channels>1</channels> > <quality>-1</quality> > </encode> > </instance> > > <instance> > <hostname>localhost</hostname> > <port>8000</port> > <password>#classified#</password> > <mount>/medium.ogg</mount> > > <reconnectdelay>1</reconnectdelay> > <reconnectattempts>-1</reconnectattempts> > > <maxqueuelength>80</maxqueuelength> > > <encode> > <samplerate>44100</samplerate> > <channels>1</channels> > <quality>-1</quality> > </encode> > </instance>The problem here is what's provided as input, if it's 44100hz/2 channel then you need use <resample> and <downmix> in the first instance and just <downmix> for the second, match the input with the output. One assumption with cvs ices2 currently is that the input stays the same, my modified set does allow for changes, they just haven't been merged as it's not that common.> And this is what I got in the logfile: > > [2003-11-22 01:30:25] INFO ices-core/main ices started... > [2003-11-22 01:30:25] INFO stream/ices_instance_stream Connected to server: localhost:8000/low.ogg > [2003-11-22 01:30:25] EROR stream/ices_instance_stream Failed initial connect to localhost:8000 (Login failed: Success)Thats saying that the connection to icecast couldn't even be made (ignore the success message), you'll have to check against the icecast log but it could be password mismatch or max source limit.> [2003-11-22 01:30:25] INFO signals/signal_usr1_handler Metadata update requested > [2003-11-22 01:30:25] INFO playlist-basic/playlist_basic_get_next_filename Loading playlist from file "playlist.txt" > [2003-11-22 01:30:25] INFO playlist-builtin/playlist_read Currently playing from stdinit's seen the - in the playlist.> [2003-11-22 01:30:26] INFO encode/encode_initialise Encoder initialising in VBR mode: 1 channel(s), 22050 Hz, quality -1.000000 > [2003-11-22 01:30:26] INFO audio/resample_initialise Initialised resampler for 1 channels, from 44100 Hz to 22050 Hz > [2003-11-22 01:30:26] INFO audio/downmix_initialise Enabling stereo->mono downmixingthese would indicate that <resample> and <downmix> tags have been added.> Maybe I just have the config file wrong. > Could you tell me how to fix it?I can check this config against my setup to confirm but on initial glance your config is trying to send out 2 streams at different samplerates from a single source without resampling. Check also why the icecast connection failed. karl. <p>--- >8 ---- List archives: xiph.org/archives icecast project homepage: 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.