I've been using liveice to feed an encoded stream to an icecast broadcast server. Now I want to feed two streams at the same time to the broadcast server. To acomplish that I am using a dual soundcard setup in a debian linux server. I've setup two different mountpoints in the icecast server wich will receive the stream and in turn will broadcast the streams to the listeners. This is, the user will connect to a location on the form of: http://hostname:8000/mountpoint1 or http://hostname:8000/mountpoint2 In order to feed the two streams using two different sound sources, I've used the (not documented) sound_device entry in the liveice configuration file. I've set up two different configuration files, each one especifying a sound_device and mountpoint. In my tests I can run liveice using any of the configuration files and it works perfectly, feeding the sound from the corresponding sound card into the specified mountpoint. The problem is, if I try to run two instances of liveice at the same time, each one using a configuration file, the audio messes up and starts skipping. At first it seemed the machine could not handle the encoding of two streams at the same time, but making some vmstat statistic revealed the CPU was 90% iddle, and the I/O was acceptable. I would appreciate if anyone can help me to figure out what could be wrong. I would also like to know if any one of you knows if liveice is capable of handling two instances running at the same time, since that could be an explanation to the problem. --- >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.
> In order to feed the two streams using two different sound sources, I've > used the (not documented) sound_device entry in the liveice configuration > file. > I've set up two different configuration files, each one especifying a > sound_device and mountpoint. > > In my tests I can run liveice using any of the configuration files and it > works perfectly, feeding the sound from the corresponding sound card into > the specified mountpoint. > > The problem is, if I try to run two instances of liveice at the same time, > each one using a configuration file, the audio messes up and starts > skipping. > > At first it seemed the machine could not handle the encoding of two streams > at the same time, but making some vmstat statistic revealed the CPU was 90% > iddle, and the I/O was acceptable. > > I would appreciate if anyone can help me to figure out what could be wrong. > > I would also like to know if any one of you knows if liveice is capable of > handling two instances running at the same time, since that could be an > explanation to the problem.Perhaps you can move the "sound_device" config option to an "encoder_stream_set" sub-section? Don't know, though. I imagine the resulting config would be along the lines of: ENCODER_STREAM_SET 0 SOUNDCARD SOUND_DEVICE /dev/dspW0 FULL_DUPLEX SAMPLE_RATE 22050 BITRATE 16000 MONO MOUNTPOINT 0 URL http://URL0 ENCODER_STREAM_SET 1 SOUNDCARD SOUND_DEVICE /dev/dspW1 FULL_DUPLEX SAMPLE_RATE 22050 BITRATE 16000 MONO MOUNTPOINT 1 URL http://URL1 But I have no idea if the 2-5th lines of each section are valid "sub-section" declarations.... -- ------------------------------------ Robin P. Blanchard IT Program Specialist Georgia Center for Continuing Ed. fon: 706.542.2404 fax: 706.542.6546 email: Robin_Blanchard@gactr.uga.edu ------------------------------------ --- >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 Thu, 10 Jan 2002 12:05:28 -0400, Moises Soto wrote:> The problem is, if I try to run two instances of liveice at the same time, > each one using a configuration file, the audio messes up and starts > skipping. > > At first it seemed the machine could not handle the encoding of two > streams at the same time, but making some vmstat statistic revealed the > CPU was 90% iddle, and the I/O was acceptable. > > I would also like to know if any one of you knows if liveice is capable of > handling two instances running at the same time, since that could be an > explanation to the problem.Are you running the same copy of the liveice binary twice? It creates a kludgey tempfile directory for pipes, and the two processes could be trying to use the same files. Try making a duplicate copy of your liveice directory and running each one separately. David ------- David Parker <david@neongoat.com> Neon Goat Productions http://www.neongoat.com 0xF90FFFE5 / F362 51F7 6D51 85EB AF68 75B9 D29B 1AFC F90F FFE5 ------- --- >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.