Author Topic: shoutcast stream interrupts  (Read 2145 times)

Skyline

  • Guest
shoutcast stream interrupts
« on: 27 Apr '04 - 17:28 »
Hi,
I have programmed a small app in c++ to listen
and record shoutcast stream now there is a small
problem, I have a 6,4kbyte internet connection
if I listen channels sending with 56kbps the stream
interupts always every several second, but if Iisten
the recorded mp3 file the record is clean without
any interuptions. First I was thinking it has to do
something with my bandwith, but than why the hell
the record works without problems.

I hope that someone made also the same experiences
in such a case.

 

KarLKoX

  • Guest
Re:shoutcast stream interrupts
« Reply #1 on: 27 Apr '04 - 21:12 »
This thing happens when you request for metadata : metada is a header where you can find the title, artist, url (etc) and the intervall between each mp3 data. So you must read the metadata when it come.
Here, you have a better explanation :)

Ian @ un4seen

  • Administrator
  • Posts: 20401
Re:shoutcast stream interrupts
« Reply #2 on: 28 Apr '04 - 11:44 »
I have programmed a small app in c++ to listen
and record shoutcast stream now there is a small
problem, I have a 6,4kbyte internet connection
if I listen channels sending with 56kbps the stream
interupts always every several second, but if Iisten
the recorded mp3 file the record is clean without
any interuptions. First I was thinking it has to do
something with my bandwith, but than why the hell
the record works without problems.

A 56Kb/s stream is 7KB/s, so your 6.4KB/s connection is not going to be able to sustain playback of that stream... the result will be repeated stalling/rebuffering.

I guess you're ripping the stream via a DOWNLOADPROC callback? Your callback will only receive the downloaded data, and the gaps in playback (due to the stalling/rebuffering) are not part of that data.