| View previous topic :: View next topic |
| Author |
Message |
Anonymous Guest
|
Posted: Mon Jun 05, 2006 10:39 pm Post subject: Cuts with icecast, fine with shoutcast, HELP !! |
|
|
Hi,
I'm developping a server to broadcast streams to Exstreamers 100 (hardware box connecting to Shoutcast/Icecast servers).
Our software acts like a source client for a Shoutcast or Icecast
server (we handle both protocols).
The problem i have is when i broadcast using Shoutcast, it works fine
on a winamp client, and fine on a Exstreamer 100, but when i broadcast
using Icecast, it still works fine on a winamp client, but it keeps
cutting on the Exstreamer 100.
The bitrate is 128, and it's not a bandwith problem (i tried to use 20 winamps simultaneously, and
it works).
I also tried to put the buffer on the Exstreamer up to 65535, but same problem.
What i can't understand is why it works fine with winamp, and not on the Exstreamer 100, since it's exactly the same configuration (Icecast, pc, bandwith, etc ...) ?
Do you have any clue ? I didn't find any change i could do in the
config file of Icecast, nor in the Exstreamer 100 config.
As the icecast stream works fine on winamp but not on Exstreamer, and
as the shoutcast stream works fine on both, could there be a problem
in the exstreamer handling an icecast stream ?
I would prefer to use Icecast, as it runs like a service, and can
handle several sources on the same ip/port.
I looked several times in my sourcecode, without finding anything.
Some technical precisions about my encoding program :
- I read 16 bits 44.1khz stereo PCM wave in a file by 44100 bytes block
- I compress the block using Windows ACM (i tried with LameEnc and original l3codec)
- I send the converted block to Icecast server
- I wait to keep realtime
- And so on...
I tried waiting less, to see if there was a problem waiting too much, but i get the same problem (i checked libcast's samples, and i do the same they do for pausing).
For ACM, i even use acmFormatEnum() to get the real WAVEFORMATEX (with the 12 extension bytes filled with good values), so i think it's okay.
I really need your help, i don't know what to do ...
Regards,
Thomas
France |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Tue Jun 06, 2006 7:07 am Post subject: |
|
|
Hi.
In fact, it played for 7 seconds, stopped for 7 seconds, and so on ...
I was using 44100 bytes long wave packets, that i compressed in MP3. The compressed block was about 10 kb long
I tried to reduce the original packet to 17640 bytes, so that the compressed packet is about 4 kb long, and there are really less cuts (it plays for 1 or 2 minutes, cuts for 5 seconds, plays for 10 seconds, cuts for 5 seconds, plays for 1 or 2 minutes, and so on).
So i don't send the mp3 data the way icecast wants it.
Could anyone tell me how i'm supposed to do this ? What is the best size of a block ? How must i wait between blocs ?
I am supposed to send MP3 a special way ?
Please help
Regards,
Thomas |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2002 phpBB Group subRebel style by ktauber
|