How To Create A Music Review Site
|
|
« Red Queen User Manual
|
Tutorial Table Of Contents
|
Obtain Red Queen »
ADDING ITEMS (AUDIO TRACKS / VIDEO CLIPS)Rinse And RepeatJust like Mike did in the previous section, where he configured Red Queen to allow garage bands to add themselves as "suppliers", he wants to do the same thing for the Item branch which will characterize individual audio and video files uploaded by the bands. The meaning of these variables, which are analogous to the ones from the previous section dealing with Supplier submissions, should be clear enough, but we spell them out in detail anyway:
Audio Track / Video Clip FormatsMike will be using the Item table to capture either audio tracks or video clips that each band uploads. We will see in the next section how to add columns to the Item table to store uploaded files. In particluar, columns that can be used to store audio and video files. Before we get to that stage, however, it is worth thinking a moment about what file format is best used to represent audio and video content on Mike's site, because there are limitations to the various formats. Of paramount importance is the final size of the file that has been used to record X minutes of audio or video content. For example, .WAV audio files use an uncompressed sound file format and therefore produce huge data files (around 250 MBytes for 40 minutes of mono sound). In contrast, the MP3 audio format uses a highly compressed representation of the audio content (around 6 MBytes for 40 minutes of mono sound). Clearly you want to avoid making .WAV audio files available for download. Another compression format that compares favorably to MP3 is VQF. Real Audio is also fairly popular, but this format tends to be 2-5 times larger than MP3 and VQF files. So the plan of attack generally involves creating a recording in a format like .WAV, processing it to remove unwanted noise, and then using an MP3 or VQF encoder to compress it down to a conveniently small size for web uploads and downloads. Compression ratios of 10:1 will result in final MP3 or VQF audio files that are almost indistinguishable from the original file in quality. If you are prepared to sacrifice quality, 100:1 compression ratios can be achieved. For a quick rundown on the subject of audio file formats and the problems involved with streaming audio files from a web site, check out Audio Primer Tutorial and Audio Guide Tutorial. Whatever file formats Mike settles upon as acceptable, Red Queen will in general display a link to the file on detail pages and allow visitors to the page to download the content by right clicking and selecting the Save As option. Left clicking will cause most modern browsers to attempt to stream the content into an application on the user's PC that allows the file to be listened to as it is downloaded, or watched if it is a video clip. But Mike can do better than that if he decides to restrict acceptable file uploads to the MP3 format for audio files, and SWF or FLV formats for video files--as we will see in the next section. Advantages Of MP3We have seen how the MP3 file format can be used to highly compress audio content, making downloads relatively painless. This has made the format very popular on the internet and has spurred developers to create software around the format. One such suite of applications is known as the Wimpy Player, which makes audio file integration into a website fairly painless. Wimpy is not without some minor problems, but it is fairly flexible, and inexpensive. Because of this, Red Queen will accommodate the webmaster who has added one or more of the Wimpy Playes to their web site and who is in the practice of restricting audio file uploads largely to the MP3 format. Why only MP3 files for Wimpy? Well, in the words of the Wimpy creators themselves:
Wimpy also supports Shockwave video formats with the .swf and .flv extensions. These are formats that can be handled by Flash-based applications like the Wimpy Players. Flash itself is available on 98 percent of PCs. This means the end user will not have to download any special software to view the audio or video files that you present on your site (provided you stick to MP3, SWF, and FLV formats). With the Wimpy MP3 Player in place, audio files can be embedded into the web page as a playable list inside an attractive Jukebox interface that provides all the controls necessary to manage the list. Likewise the Wimpy AV and WASP Players provide a means to presenting both audio and video clips. The WASP Player, in particular, is very suitable for handling video content and is recommended if you wish to add video to your Red Queen pages. More will be said about the various capabilities of the players elsewhere in this tutorial. For now, keep in mind that there are several options for presenting your content once it enters into your database. Which is the most suitable representation will depend on the number and kind of files you accept. Now that we have a plan for representing the content once it has been collected, it is time to think about how Mike might customize his Item table to allow for those file uploads. This, of course, will involve the unique elements that go into setting up a music review site. Next Section: ADDING AUDIO FIELDS Copyright © 2004 Random Mouse Software. All Rights Reserved. | |||||||||