Old 11th April 2007, 18:20   #1
w_hopkins
Junior Member
 
Join Date: Apr 2005
Posts: 9
irritation with streams

Well, first off, this isn't a bug report. Nor is it posted in tech help because they also want all the details of a bug report, and I don't really think this is something 'broken'. Just really irritating and I was wondering if I could fix it..

I use winamp these days primarily to listen to MP3s streamed from an Apache HTTP server. Basic web streaming, because winamp will autocache (albeit poorly..though that's a different discussion) and autoplay; I have an elaborate web application that provides playlisting functions for music from a remote server.

However, the issue at hand is pause. If I pause a music stream for too long, then unpause it, no further downloading/caching occurs. The song plays until it hits the end of what was already downloaded and then it ends/goes to the next song. Since I listen to music at work, this happens a lot. Pause..walk away for a 15 minute meeting..come back and unpause..song ends short. Tear hair out. Repeat.

Anyone have a fix?

Clyde
w_hopkins is offline   Reply With Quote
Old 11th April 2007, 19:36   #2
DJ Egg
Techorator
Winamp & Shoutcast Team
 
Join Date: Jun 2000
Posts: 35,878
Try increasing the Streaming Data Buffer size in:
Prefs > Plugins > Input > MPEG Audio Decoder (in_mp3) > Config > Streaming tab

Try something huge like 5120 or 10240 (or more, if the files are bigger than that)
DJ Egg is offline   Reply With Quote
Old 12th April 2007, 16:27   #3
w_hopkins
Junior Member
 
Join Date: Apr 2005
Posts: 9
How would that affect the period of time before the music starts playing?
w_hopkins is offline   Reply With Quote
Old 12th April 2007, 18:55   #4
DJ Egg
Techorator
Winamp & Shoutcast Team
 
Join Date: Jun 2000
Posts: 35,878
Try it and find out ;-)

Sure, it will take a short while longer to buffer at the start of each play (depending on your connection type/speed), but it will be required if you want to pause a stream and resume full playback later.
DJ Egg is offline   Reply With Quote
Old 12th April 2007, 20:24   #5
w_hopkins
Junior Member
 
Join Date: Apr 2005
Posts: 9
I asked that because I had a pretty good idea what it would do -- it was a leading question.
This isn't a fix...you're basically telling me not to stream. The amount of time it takes to buffer that much, I may as well download the song here and then play it. There is very little difference in time. The advantage of buffering is immediate playback.

The issue that winamp stops buffering when you pause a stream remains unchanged, and that's something that should be (IMO, at least) fixed. I sadly never went the programming route so I have to hope there will be enough demand for this that the developers will see fit to fix it. Because I certainly can't whip up a new version of in_mp3.dll
w_hopkins is offline   Reply With Quote
Old 12th April 2007, 20:51   #6
Tag
Streaming Media Expert
 
Tag's Avatar
 
Join Date: Apr 2000
Location: Fort Collins, Colorado
Posts: 141
Send a message via AIM to Tag
Your webserver times-out if there is no activity. This is not Winamp's fault. Increase your http transaction timeout to something like 30 minutes, if you have control over your webserver that is. There is nothing to "fix" in Winamp.

We could try an http resume with a range-request if the socket gets shutdown prematurely. But this would have to be an opt-in function.

Powered by Redbull and Progressive House
Tag is offline   Reply With Quote
Old 16th April 2007, 13:59   #7
w_hopkins
Junior Member
 
Join Date: Apr 2005
Posts: 9
!!!
I hadn't even considered that...of course, the connection is closing, and the default resume would be at the beginning again (as a new conn).

Thanks so much, now I can fix it
w_hopkins is offline   Reply With Quote
Old 2nd July 2008, 17:11   #8
NTolerance
Junior Member
 
Join Date: Sep 2007
Posts: 20
Can anyone tell me exactly which parameter in Apache to change for this? I see two possible ones:

Quote:
KeepAliveTimeout Directive
Description: Amount of time the server will wait for subsequent requests on a persistent connection
Syntax: KeepAliveTimeout seconds
Default: KeepAliveTimeout 15

The number of seconds Apache will wait for a subsequent request before closing the connection. Once a request has been received, the timeout value specified by the Timeout directive applies.
and

Quote:
TimeOut Directive
Description: Amount of time the server will wait for certain events before failing a request
Syntax: TimeOut seconds
Default: TimeOut 300

The TimeOut directive currently defines the amount of time Apache will wait for three things:

1. The total amount of time it takes to receive a GET request.
2. The amount of time between receipt of TCP packets on a POST or PUT request.
3. The amount of time between ACKs on transmissions of TCP packets in responses.
NTolerance is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Winamp > Winamp Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump