RE: op= streaming problems
"Disnard, Jon" <[email protected]> Thu, 13 Jun 2002 10:55:31 -0400
| Newsgroups | gmane.comp.apache.mod-mp3 |
|---|---|
| Message-ID | <[email protected]> |
2. With the AddHandler added to http.conf, the file still is treated like a regular audio file, the player does begin to play it, but not streamed, it's downloading in the background as it plays. ~~~~~~ Actually, yeah... That's right.... Mod_mp3 see's it has a large tcp window size, and takes it...sends blocks of data down the pipe since you can handle it... What happens is mod_mp3 sends the file in the correct way (mime-type, shoutcast style protocol, etc..) but doesn't limit the bandwidth due to the fact that simply isn't practical. That would have to involve some sort of bitrate shaper thingy in mod_mp3, and since mod_mp3 is unaware of the encoded bitrate of the file, it simply spews it all and dies as quickly as possible. Now I will say that there is a way to use the LAME encoder in the middle, but even then you will still get the mpeg data at the rate LAME can spew it out, and I assume that is still faster than the logical bitrate of the file (typically). It really does make sense if you think about it long enough. -Jon Disnard http://www.audiodevil.org -----Original Message----- From: Troy Leaver [mailto:[email protected]] Sent: Wednesday, June 12, 2002 07:39 To: [email protected] Subject: Re: [Mod_mp3] op= streaming problems Brian. Thanks for the quick response! In answer to your questions. 1. Yes, it works one way, but not the other. I'll send you a private e-mail with the URL so you can see it for yourself. 2. With the AddHandler added to http.conf, the file still is treated like a regular audio file, the player does begin to play it, but not streamed, it's downloading in the background as it plays. 3. Don't worry about this one. The more I thought about it, I think Ensim actually wraps the processes with some kind of bandwidth monitoring whatsit, so I'm pretty confident that the output from mod_mp3 will be treated just like regular Apache http output. --- Brian Aker <[email protected]> wrote: > On Wed, 2002-06-12 at 15:56, Troy Leaver wrote: > > 1. When accessing http://severname:8000, my > single > > mp3 file streams great. However, when using the > > http://servername:8000/?op=play&song=[MD5 of > filename] > > syntax, the browser downloads the mp3 first and > then > > plays it. What causes this? I really need to be > able > > to link to individual mp3 files from my web site. > Not sure what is up with this. So it works on way > but not the other? > > > 2. The FAQ mentions an AddHandler mp3-file *.mp3 > > entry to enable streaming of files intermixed with > > other files. Does this mean that I should just be > > able to place an mp3 anywhere on my site, link to > it > > with standard syntax > (http://servername/filename.mp3) > That is the theory. It will stream just the one file > (so no continues > stream between songs) but it does work just fine. > > > > 3. I'm using the Ensim control panel on my > server. > > Ensim records the bandwidth consumption of Apache, > > SMTP, POP/IMAP, etc. I'm hoping that since this > is an > I would have to know how it work before I could tell > you if it would > work or not. > -Brian > -- > _______________________________________________________ > Brian "Krow" Aker, [email protected] > Slashdot Senior Developer > Seattle, Washington > http://tangent.org/~brian/ > http://askbrian.org/ > _______________________________________________________ > You can't grep a dead tree. > > _______________________________________________ > Mod_mp3 mailing list > [email protected] > http://lists.tangent.org/mailman/listinfo/mod_mp3 ===== W. Troy Leaver Systems Development Consultant Solution Specialists, Inc. 888.668.9193 __________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com _______________________________________________ Mod_mp3 mailing list [email protected] http://lists.tangent.org/mailman/listinfo/mod_mp3