RE: Choppy playback
"Disnard, Jon" <[email protected]> Thu, 6 Jun 2002 12:09:37 -0400
| Newsgroups | gmane.comp.apache.mod-mp3 |
|---|---|
| Message-ID | <[email protected]> |
Hello, Since you have bandwidth issues, it is time to turn on compression. Actually, it is time to use LAME to compress your mp3 files even more than they are now, before transit across your broadband network. Look at it this way: You have 100 kilo bits per second of upload capability. You have to consider the protocol overhead or minus 10% or 15%. You have a 128 Kbit quality MP3 you want to stream. The calculation looks something like this: ((100,000 - 10%) / 128000) = 0.703125 This means you get 0.7 of your connection dedicated for music (aka 70% music, 30% pops & static). To fix this you have to lower the bitrate of your mp3 stream, and try the calculation above again until you get a whole number. This means you need to use the mod_mp3 MP3Encoder directive to lower your mp3 bitrate while they are on their way out the door: MP3Encoder "/usr/local/bin/lame -q 2 -b 48 --silent % -" This solution imposes a penalty on your system resources as long as your streaming music with LAME. This is not something you want to use on a multi-user setup like Ampache, or Mummi. As long as your doing this for your own personal, and don't have to share the system, it shouldn't be a problem. =) If you want access to really good info about the directives used in mod_mp3, I invite you to take a look in the src/directives.h file for more info. That is where I got the above example from. =) -Jon Disnard http://www.audiodevil.org ~~~~~~~~ Now that I've finally gotten mod_mp3 to stream files, I'm running into a problem that I suspect is not correctable. I'm getting choppy playback. I'm assuming that this is a bandwidth problem and there's nothing I can do about it. Anyway, I'm on a cable connection, but I believe my provider (comcast.net) is capping upload speeds (dslreports' speed test shows me at 1200/100 kbps download/upload). Is there anything that can be done (other than changing providers)? Thanks, Tim _______________________________________________ Mod_mp3 mailing list [email protected] http://lists.tangent.org/mailman/listinfo/mod_mp3