Although I'm pretty sure that mp3.com just keeps around two sets of files, one high and one low, I believe I've encountered something recently that might do what you're wanting it to do.

My friend has a server that he keeps a dumpload of MP3s on, but he's all into friggin' huge (320kbps) bitrates, and I want 'em smaller so I can fit more onto one CD for my Rio Volt. We've been talking about making a nice MP3 serving system, and in searching for MP3-based modules, I found Apache::MP3::Resample by Lincoln Stein (author of the famous CGI module). I've included the description of the module here for your convenience.
Apache::MP3::Resample subclasses Apache::MP3::Playlist to allow the user to downsample MP3 files before streaming them. This allows users on slower connections to stream songs. When this module is installed, a menu of bitrates is presented in the upper left-hand corner of the screen. The user can choose from one of the bitrates, or select a mode that performs no resampling. The selected bitrate is maintained in a persistent cookie so that resampling is performed whenever the user returns to the site.

This module requires a command-line MP3 encoder to resample and reencode the MP3 sound data. If not otherwise specified, Apache::MP3::Resample will try to use the Open Source Lame MP3 encoder. This utility is available at http://www.sulaco.org/mp3. Version 3.87 was used during the development of this module. Your results with other versions may vary.

When you install Lame (or the encoder of your choice), be sure to place it in a directory located in Apache's PATH so that the module can find them at run time. You may need to set the PATH environment variable during Apache's launch, or by explicitly adding a SetEnv directive to the Apache configuration file.

You should be aware that the decoding/reencoding process is CPU-intensive, and server performance may degrade as the number of simultaneous users increases.
If my friend and I get this working, we'll letcha know. =)

~Brian

In reply to Re: hi fi and low fi mp3 playing by brianarn
in thread hi fi and low fi mp3 playing by Baz

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.