When it comes to streaming audio and video over the Internet, there are two approaches you can use: you can deliver files with the same old HTTP server that delivers your Web pages and graphics, or you can use a streaming technology that provides real-time streaming for more-reliable and more-flexible results.
Until recently, QuickTime was an HTTP-only medium. But with version 4, QuickTime joins RealNetworks’ RealSystem G2 and Microsoft’s Windows Media Technologies (formerly Netshow) in providing support for true, real-time streaming.
QuickTime 4 streaming has a lot going for it. You can use most of the same tools and techniques you’ve been using to create HTTP-streaming QuickTime movies. And talk about flexibility: streaming QuickTime movies play back in any program that supports conventional, nonstreaming QuickTime flicks. Therefore, you can embed streaming QuickTime movies in a Macromedia Director project, a Microsoft PowerPoint presentation, or even a Microsoft Word document.
Although QuickTime isn’t the best product for all users (it can be much harder to use than RealSystem G2, and it lacks features that broadcasters and other professionals require; see the “QuickTime 4 Pro” review, elsewhere in this issue), it still has some advantages. It’s inexpensive, making it well suited to educational institutions and budget-minded businesses. And because QuickTime streaming is part of the QuickTime architecture, you can do some slick things that you can’t do with the competing products.
With this in mind, let’s take a look at the QuickTime-streaming production process. Along the way, I’ll pass along some production tips for both on-demand and live-event streaming.
I’m OS X, and I’ll Be Your Server
You can create QuickTime 4 streaming movies on just about any Mac, but to serve the movies, you need a Power Mac G3 running Apple’s $495 Mac OS X Server software. Mac OS X Server includes a program, QuickTime Streaming Server, that dishes out streaming QuickTime movies.
This Mac OS X Server foundation is both an asset and a liability. On the plus side, Mac OS X Server is built on a rock-solid Unix foundation, which makes it more resistant to crashes and gives it greater multitasking abilities than the Mac OS currently providesboth critical components for true streaming.
But Mac OS X Server isn’t nearly as easy to use as Mac OS 8.X. You don’t have to know anything about Unix to be able to serve QuickTime streaming content and manage your server, but you may have to wade into Mac OS X Server to get streaming working in the beginning.
Of Streams and Bits
It’s common practice to provide several versions of a movie or audio clip, each compressed for a particular connection speed. Since version 3, QuickTime has supported
movies, which enable you to accommodate various connection speeds without having to litter a Web page with multiple links (see “”Optimize Web Video for QuickTime 3″,” Create, August 1998).
These concepts apply to QuickTime streaming movies, too. But there’s one additional step: after compressing the final movie, you must create a small
that sets up the conversation between QuickTime Streaming Server and a user’s computer (see “Create On-Demand Streaming Movies”). If you’ve worked with RealNetworks’ technology, you’re familiar with this conceptin the Real world, this file is called a
Let’s Go Live
That’s right: you need two computers to do a live Webcast with QuickTime 4. One computer, running Broadcaster under Mac OS 8.X, does the real-time compression, while the other, running QuickTime Streaming Server, serves the streams. You’ll almost certainly want to run Broadcaster on a G3-equipped Macin my tests, I successfully used a gray-haired Power Mac 7600 to live-encode a low-fidelity (voice-only) stream, but the computer was too slow to encode a stream of music.
What if you want to deliver multiple live streams for various connection speeds? You’ll need multiple G3 Macs, each running a copy of Broadcaster that encodes for a different speed. Unlike RealNetworks’ RealProducer G2 family of encoders, Broadcaster can’t encode multiple streams simultaneously.
This multiple-Mac scenario sounds expensive, and indeed, it can be. But depending on your situation, it can still be less expensive than buying RealSystem G2 server software. For instance, the 100-stream RealSystem G2 server software costs $5,995. You can buy a few G3 Macs for that priceand be able to serve up to ten times the number of streams. For heavy-traffic live streaming, then, QuickTime’s multiple-Mac requirement isn’t a significant drawback. (For lighter-traffic scenarios, though, the scale tips in RealSystem G2’s direction.)
When you look closely at QuickTime 4 streaming, it’s clear that Apple is behind the competition in key areas. But that doesn’t mean that QuickTime is out of the runningfar from it. It has some unique assets that other streaming technologies lack. I’ve already mentioned one: the ability to embed streaming QuickTime movies in any program that supports conventional QuickTime movies.
So although QuickTime streaming may not outstream the competition in every area, it still has a lot going for it and is the right choice for some applications. It’s definitely a technology worth watchingand listening to.
A contributor to Macworld since 1984, JIM HEID (
) writes, lectures, and consults on Web multimedia technologies.
Create On-Demand Streaming Movies
Preparing movies for on-demand (as opposed to
) streaming is a multistep process. First, you compress the movie to accommodate your target bandwidth. This step is identical to preparing a movie for HTTP streaming or even CD-ROM playback. In this phase, you also
the movie, a process that adds streaming data used by QuickTime Streaming Server. You store the hinted movie in the default directory of QuickTime Streaming Server.
Finally, you create a pointer file, which sets up the dialogue between QuickTime Streaming Server and a user’s QuickTime Player or browser plug-in. You stash this pointer file on your HTTP server and link to or embed the file in your Web page.
Here’s how to perform each step, using Apple’s QuickTime Player (if you’ll do a lot of streaming, do yourself a favor and get Terran Interactive’s Media Cleaner Pro 4, which streamlines many of these chores).
Sizing and Compressing
For movies containing a video track, one of your first steps involves deciding on a final movie size and frame rate. For streaming to 28.8-Kbps modems, a typical size is a tiny 128 by 96 pixels or a slightly better 160 by 120, with a lowly frame rate of 2 or 3 frames per second (fps). That won’t exactly yield a dramatic movie experience, but hey, these are modems we’re talking to. If your movie contains very little motion, you might try a 192-by-144 frame size and 4 to 6 fps. If you are talking to 56-Kbps modems, you might try a 176-by-144 or 192-by-144 frame size, with 4 to 6 fps. And for ISDN and better connections, you can bump the frame rate up to about 10 fps.
When specifying compression settings for both video and audio tracks, you must choose data rates carefully, so as not to exceed your target bandwidth. For example, to deliver a streaming movie to users with 28.8-Kbps modems, you will want to keep a movie’s data rate to about 22 Kbpsthis provides you some breathing room to allow for noisy connections. Consider a data rate of 12 Kbps to 14 Kbps for the video track and about 8 Kbps for the audio track.
You can use the Options button in the Export dialog box to specify data rates and frame rates by hand, but there’s an even easier way. Apple has endowed QuickTime Player with a variety of presets for the most-common streaming scenarios. (These presets also add the hinting required for streaming.) The video settings use either the Sorenson Video or H.263 compressors, whereas the audio settings use the QDesign Music compressor for music or the Qualcomm PureVoice compressor for spoken audio.
Not everyone agrees with all of the settings choices that Apple madefor example, compression guru Jim Baker prefers the Sorenson Video compressor to the H.263 compressor Apple chose for several of the modem-oriented presets. Every compression scenario is unique, however, and Apple’s presets are a good starting point for your own compression adventures.
To export a movie for QuickTime streaming, just open the movie in QuickTime Player and then choose Export from the File menu.
Create the Pointer File
Now you’re ready to create the pointer file. This requires that you access the hinted movie through QuickTime Streaming Server, so be sure the server software is running. If you’re running Mac OS 8.5 under Mac OS X Server, you can perform this step on the same computer that’s running the server software. Or you can use any computer running QuickTime 4including a Windows machineas long as that computer has Internet or network access to the machine running QuickTime Streaming Server.
Choose Open URL from QuickTime Player’s File menu.
Type the URL of your hinted movie (such as
) and press return. QuickTime Player will connect to QuickTime Streaming Server and begin streaming the movie. Let the movie play for a few seconds if you like, and then click on QuickTime Player’s stop button.
Choose Save As from the File menu. In the Save As dialog box, click on the Make Movie Self Contained button, name the movie, and click on Save. In doing so, you’ll make a small (about 1K) movie that points to the hinted movie.
Copy this pointer file to your HTTP server (not to the machine running QuickTime Streaming Server), and then link to or embed the pointer file in your Web page.
Create Multiple-Data-Rate Movies
As mentioned in the main text, you can use a QuickTime reference movie to access separate versions of a movie for various connection speeds. After compressing and hinting each movie, copy them to the Mac running QuickTime Streaming Server. Next, create a pointer file for each movie, storing each pointer file in the same folder.
Finally, using Apple’s free MakeRefMovie utility, assign each of the pointer files to its appropriate connection speed. Save the reference movie in the same folder as the pointer files, copy the whole shebang to your HTTP server, and link to or embed the reference movie in your Web page.
Note: When you purchase something after clicking links in our articles, we may earn a small commission. Read ouraffiliate link policyfor more details.