[icecast] Multiple Ogg Streams

Karl Heyes karl at xiph.org
Fri Nov 21 18:38:32 PST 2003



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 stdin

it'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 downmixing

these 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:  http://www.xiph.org/archives/
icecast project homepage: http://www.icecast.org/
To unsubscribe from this list, send a message to 'icecast-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Icecast mailing list