>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: 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.
>if you are getting the ogg data from a stream then you can just state a >- in the playlist and it will read it from stdin. > >curl .. http://host:port/mountpoint.ogg | ices ices-playlist.xml > >ideally the playlist should be more flexible and allow starting of >external programs but not just yet. > >karl.Thank you! That got it working. Partly. I managed to get two streams running (thus with two encode sections) on a static playlist, but when I have the stream as input it will only have the first of the two active, the second does not work. Why? Also, I saw a different configuration with mutiple streams that worked with the run_ices command. What's up with this? What's the difference between this and the two encode sections in the configuration file? Lukas <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.
On Fri, 2003-11-21 at 23:28, Lukas Österreicher wrote:> >if you are getting the ogg data from a stream then you can just state a > >- in the playlist and it will read it from stdin. > > > >curl .. http://host:port/mountpoint.ogg | ices ices-playlist.xml > > > >ideally the playlist should be more flexible and allow starting of > >external programs but not just yet. > > > >karl. > > Thank you! That got it working. > Partly. > > I managed to get two streams running (thus with two encode sections) > on a static playlist, but when I have the stream as input it will only > have the first of the two active, the second does not work. > Why?it supposed to, check the log file for details but there is no reason for it not to work with 2 instances.> Also, I saw a different configuration with mutiple streams > that worked with the run_ices command. > What's up with this? What's the difference between this and > the two encode sections in the configuration file?run_ices I believe is an old script that is missing some things, the xml file is a much better approach. Note as well, that you should have 2 instances each of which has the icecast connection details and an encode section. 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.