Build an MP3 Music Server

A media server is good for office morale. By offering CD-quality sound and a wide range of other uses, your MP3 server can be the answer to workplace "ear pollution" brought about by canned music, endlessly repeating CDs, and piped-in radio stations. Also, having access to organized media content not only makes that content easier to maintain, but can also transform your client's workplace into an impressive, media-rich environment. Good use of media can also reduce both training costs and support/sales efforts. Best of all, a media server can serve-up the music your clients want, the way they want to hear it.

In this Recipe, I'll show you how to build a PC designed to serve up MP3 files. I'll also use it to illustrate the basics of media serving. Because I appreciate the benefits of reuse, I'll also tell you how to repurpose a white-box PC as a media server. Along the way, I will introduce you to some amazing software and strategies to plan your media server and organize your content. I'll also offer insights into how some creative companies are using their media servers to create a media-rich, hip work environment.

How It Works

The availability of rich media content, increased network bandwidth, and efficient Web-based applications make it possible -- even easy -- to offer media content almost anywhere. Audio and video files are now streaming into homes and offices, traveling across the Internet and on local LANs, finding their destinations to deliver sights and sounds of amazing quality.

id
unit-1659132512259
type
Sponsored post

The way we think about media is changing. The premier example: MP3, short for MPEG Layer 3. Thanks to MP3, much music is now stored as data. Advances in compression methods, popularly called "ripping," have drastically reduced the size of an audio file, while maintaining close-to-original-CD quality. In fact, MP3 is so successful, the commercial availability of MP3 music files (and the marketing machines that deliver them) is quickly replacing other traditional forms of music buying and listening.

MP3 files are convenient. They can be downloaded from a central site, sent as e-mail attachments, stored in portable players, or played on a PC by applications called, appropriately enough, MP3 players. Popular MP3 player applications include Windows Media Player and WinAmp .

A final component: Web technology, which is more convenient and faster than downloading. Web tech provides a means to stream high-quality MP3 files (and other media file types) from media servers to their destinations.

Five Fundamental Facts About Media Serving

Before I show you how to build an MP2 Media Server, we need to establish the basic concepts of media serving. Here are five concepts you should know before you start building your media server:

  • Song Length
  • CDA File Size
  • MP3 at 128 Kbps
  • MP3 at 192 Kbps
  • 2 min., 24 sec.
  • 24 MB
  • 2.2 MB
  • 3.3 MB
  • 3 min., 51 sec.
  • 39 MB
  • 3.5 MB
  • 5.3 MB
  • 4 min., 16 sec.
  • 43 MB
  • 3.9 MB
  • 5.9 MB

A media server can serve up many types of media files, not just MP3 audio files. I've listed the more popular ones below, along with their filename extensions and brief descriptions:

File Extension
MIME Type
Description
.aiff
audio/basic
Developed by Apple for Macintosh computers. Also used by SGI machines.
.au
audio/basic
Audio format developed by Sun and Next for Unix workstations.
.avi
video/avi
The Audio Visual Interface, from Microsoft, is a high-quality, lossless format used during editing.
.gif
image/gif
CompuServe Graphics Interchange Format graphic.
.jpg
image/jpg
Joint Photographic Experts Group.
.midi
audio/midi
Musical Instrument Digital Interface sound file.
.mov
video/quicktime
Quicktime movie player from Apple.
.mp3
audio or video/mpeg
MP3 is a "secure" (compressed and encrypted) format to prevent duplication.
.mpg
audio or video/mpeg
Motion Pictures Experts Group.
.swf
application/x-shockwave-flash
Macromedia Shockwave Flash Vector technology movies.
.wav
audio/wav
Microsoft sound.
.wma
N/A
Microsoft Media Audio - contains audio only.
.wmv
N/A
Microsoft Media Video - contains both video and audio.

Server Hardware

For this recipe, I'll follow the same good server-building practices you've seen in other TechBuilder articles. I'll also keep an eye toward saving money with careful parts selection.

For any build project, the primary consideration is the purpose for which the box will be used. This server has the job of acting as a secondary media server to support streaming MP3 music files around an office, with, perhaps, some Web-serving duties, too. For a larger operation, consider more memory, disks with as much cache as possible, and RAID arrays to support faster disk access. But for our purposes, we simply want to hear some good tunes, have them available anywhere we are working, and be able to get to them with relative ease.

The parts list below contains my choices for hardware and, in some cases, alternatives. In each case, I've briefly explained my reasoning and the component's approximate cost:

Component
Description
Comments
List Price
Case

Antek

SLK1650

Good cooling, 8 bays, solid case with good access.
$60
Power Supply
PowerSmart 350 watts
Included with SLK1650 case; single fan, reliable.
0
CPU

Intel

Pentium 4 2.4GHz.

Good value and speed to run add'l applications. Less useful if only serving.

Download

latest BIOS.

$155
Motherboard

Intel

865GBF/PERL

On-board LAN, great graphics and audio, support for RAID, FireWire.
$80
Memory

Kingston

KVR400X64C3A/256

256MB 400MHz DDR PC3200 DIMM (minimum - consider 512MB version for about $80)
$40
Graphics
On motherboard
Efficient, integrated graphics
0
Audio
Included on motherboard
great sound with line/mic. inputs and line level output for public address or music on hold
0
CD Burner

Lite-On

LTR-52327S

Basic CD-R/W Read:52X, Write:52X, ReWrite:32X. Consider LDW-411S DVD for video ($139).
$32
Hard Drive

Western Digital

WD2500JD

SATA, 7200 RPM, 250 GB, 8 MB cache, 150 MB/sec data-transfer.
$199
Display
Viewsonic Q51
15-inch, 1024 x 768.
$110
Mouse

Logitech

optical

Wheel, 3-button mouse.
$9
Keyboard

Belkin

F8E885

Quiet, reliable, basic keyboard.
$14
TOTAL
$699

Want to use an existing PC as your media server? It's a good idea if you or your client has a PC that fits the bill. Here are some issues to consider:

The Right Software

You'll need just two major components of server software: the OS and the serving application itself. The Linux vs. Windows server debate is still very much one of culture. If you're comfortable with Xandros, Fedora, or Mandrake, then Linux is a fine choice. If not, then Microsoft Windows2000/2003 Professional, configured with NTFS, offers all the professional server features you'll need. Windows XP is an affordable choice for simple server operations, too. The important point is to choose an OS you will be comfortable supporting.

Next is media server software. For this recipe, I've selected a server-software product called Andromeda. I like both its ease of use and its unique ability to organize media (and other) files for easy access. Also, Andromeda works with both Linux-based and Microsoft OSes. Through an existing Web server, Andromeda creates Web pages based on directories of media files. The price you pay for Andromeda will be based on whether you will use it for personal, community, or business applications.

There are plenty of other server products, many of which offer more advanced serving and broadcasting of media files. The following list offers a selection along with a brief description of each:

MP3 Server Software
OS Platform
Description
Andromeda
Windows, Linux
Simple installation, builds pages of content, skinnable, PHP or ASP.
SHOUTcast
Windows, Linux
Free, radio-style broacast, plug-in for Winamp.
MP3SoundStream
Windows
Simple installation. Uses LAME compression. No plug-ins required.
GlobecomJukebox
Linux
Browser based. Uses SQL database. Normalizes track volume. Integrated ripper. Perl and PHP.

Putting It All Together

With all your server builds, you'll want to follow good assembly and configuration practices. There are several excellent articles in the TechBuilder collection to help you, including Building a World-Beating Web Server . Good server-building practices translate into a solid media server that is always available and easy to maintain.

Once set-up, a file called andromedaPrefs.txt can be added to change how Andromeda works and how content is displayed. Different "skins" are also available free from the Andromeda site to change its look and feel.

With its one, all-inclusive PHP script, Andromeda is easy to install and configure. Its strong points are the ability to organize your MP3 content and display them for easy access. It also does a nice job of building Web pages of whatever media content you dump into your directories. And it's easily adaptable for a more sophisticated look. Have a look at electro-harmonix, a commercial site built solely with Andromeda.

Double Duty

Can your new server perform other services? While it's true that any processes not essential for server operations can negatively impact server performance, the answer ultimately depends on your client's environment. A lightly loaded media server can also be used as an occasional or light-duty workstation, or as a print server. A well-stocked media server can also be configured to work with a company's Web server to serve up sales presentations, educational materials, and training content. While providing a central source of music programming for waiting rooms and common areas, the server can even be the source of music for on-hold telephone calls.

One company we know has created its own "mock" commercials and has recorded their popular office manager introducing songs like a professional disc jockey. When customers call the company, they hear this, mixed together with programmed music content. A familiar voice at "My Company Radio" introduces them to new products and services. It's a unique way to get and keep customers.

Liven-up your surroundings! A soundcard in either the server or a client PC can be used to supply high-fidelity music programming for waiting rooms and other common areas. An audio cable is needed to connect the jack on the sound card (marked "line out") to the input of an amplifier. The amp, in turn, gets connected to speakers installed on the wall or ceiling.

Now that you have your own media server, why not have play lists for each day tailored your moods: maybe, start the day off with something light and save that high-energy music for making it through the long afternoons? Holidays, naturally, would have their own play lists. Why not create a special "TGIF" song-block just for Friday? With a new MP3 and media server, your clients are in control.

ANDY MCDONOUGH is a professional musician, composer, voice actor, engineer, and educator happily freelancing in New Jersey. He enjoys listening to his collection of jazz MP3s.