Icecast Streaming Media Server Forum Index Icecast Streaming Media Server
Icecast is a Xiph Foundation Project
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Cuts broadcasting with Icecast, fine with shoutcast. HELP !

 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Dev Branches
View previous topic :: View next topic  
Author Message
Anonymous
Guest





PostPosted: Mon Jun 05, 2006 10:03 pm    Post subject: Cuts broadcasting with Icecast, fine with shoutcast. HELP ! Reply with quote

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
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Tue Jun 06, 2006 12:49 am    Post subject: Reply with quote

I don't know the Exstreamer 100 but you can check for a few things. You say it cuts out, can be be more specific, eg does it play for a while then stop, does it not play at all, does it remain connected to the server if/when playback stops etc

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Anonymous
Guest





PostPosted: Tue Jun 06, 2006 7:04 am    Post subject: Reply with quote

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 Smile

Regards,

Thomas
Back to top
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Tue Jun 06, 2006 1:41 pm    Post subject: Reply with quote

You misunderstand, icecast is not mp3 aware as such, any mp3 stream data (as per the mime-type) is handled by a passthrough mechanism that does not alter the mp3 stream (actually there is the inline mp3 metadata but your player has to request that, so should filter that part out).

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Anonymous
Guest





PostPosted: Tue Jun 06, 2006 5:06 pm    Post subject: Reply with quote

Okay, so what does Icecast exactly ?

Just broadcasting to connected clients the stream coming from the source?

If so, does the number and the size of packets sent by the source matter to the clients ?

Maybe i should send smaller packets, with less pause between them, rather than send a 10 kb packets with nearly 200 ms of pause ?

Is there something to do this way ?

Do you confirm Icecast does nothing with the mp3 data (for example keeping mp3 blocks to send them separatly at another rythm to clients) ?
Back to top
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Tue Jun 06, 2006 9:17 pm    Post subject: Reply with quote

icecast does not do any mp3 parsing, in fact the same code works on aac and nsv. What comes in, goes out, any difference is just in the inline metadata (if requested by the player). Some players have been know to have problems without a burst, maybe the ICY response header is wanted instead of HTTP.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Dev Branches All times are GMT
Page 1 of 1

 
Jump to:  
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