[vorbis] Servlet streamed Ogg skips
pd
develop at twonotes.com
Fri Apr 30 16:50:03 PDT 2004
Ahh, so you think that WinAmp is driven by the data arrival rate when
reading from an http link, rather than the inherent OGG data rate like it
does when reading the same data from a disk file? I had not considered
that. If I make the servlet send a filesystem path to the .ogg file (when
the server and WinAmp are on the same system) then WinAmp plays back
properly. So the ogg stream must contain internal information about the
correct playback speed. Makes sense.
So if WinAmp ignores this information when playing from an http stream
then I have to slow down the servlet. (Or is this a WinAmp bug? Note it
does not get overrun like this with MP3 streams.) But since the ogg files
use variable bitrate encoding I would have to find out from moment to
moment how fast to go. This is evidently something the streaming servers
pay attention to. Should I look at the source code for icecast to see how
to do this?
But my server can easily send an entire 2 minute selection in just a
couple seconds over a fast enough link, but WinAmp is not going THAT
fast. More like 2-3 times too fast. Perhaps intervening buffering inside
the Tomcat server or WinAmp itself slows it down a bit.
--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-request at xiph.org'
containing only the word 'unsubscribe' in the body. No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.
More information about the Vorbis
mailing list