previous next

Choosing SureStream or Single Rate Encoding

When you encode a clip with RealSystem Producer, the most important decision you make is whether to create a single-rate clip or use SureStream to generate a multi-rate clip. This choice is simple:

However, to use RealSystem Producer effectively, you should understand what SureStream is. This will help you later if you decide to change the RealSystem Producer encoding defaults.

What is SureStream?

Introduced with RealSystem G2, SureStream technology gives the best possible playback experience for different types of network connections. With SureStream, you can encode your source file for optimum streaming over, for example, 28.8 Kbps modems, 56 Kbps modems, and 112 Kbps dual ISDN connections, as illustrated in Figure 1. Users with 28.8 Kbps modems receive the stream at the lowest bit rate, while users with faster connections get a stream with better quality because of the extra bandwidth. RealSystem Producer Basic encodes two speeds per clip, RealSystem Producer Plus up to eight speeds.

Figure 1: SureStream Clip Encoded for Several Bandwidths

A SureStream clip can also "downshift" when a connection gets bogged down. Suppose a viewer starts out receiving a higher bit rate stream through a 56 Kbps modem. If the connection starts to sputter as the network gets crowded, RealServer automatically downshifts to a lower bit rate stream. The audio or video quality drops with the lower rate stream, but the clip keeps playing. When the interference clears, RealServer upshifts to the higher rate stream. RealPlayer doesn't need to rebuffer during this shifting.

Why SureStream won't Work with Web Servers

SureStream works only with clips streamed with RealServer. Because SureStream wraps several streams into a single clip, a server has to know how to extract just one stream from the clip. RealServer can do this, but Web servers, which don't know the details of SureStream, send down all the encoded data for a SureStream clip rather than just one stream.

Duress Streams

Although you can encode a clip for just one connection speed with SureStream, you should never do this when delivering a clip with a Web server. Even when encoded for just one speed, a SureStream clip contains "duress" streams that let it downshift during network turbulence. For example, a SureStream music clip encoded only for 28.8 Kbps has duress streams at 16 and 11 Kbps. A Web server downloads all these streams, wasting bandwidth.

Multiple Bandwidth Choices Through SMIL

When using a Web server, you can provide different bandwidth choices by encoding your source file several times for different connection speeds. You then provide multiple links on your Web page (one for each clip), or use SMIL's <switch> tag so each RealPlayer chooses the right clip automatically. SMIL isn't as flexible as SureStream, and you won't get downshifting, but using SMIL makes it easier for your viewers to get the best clip for them.

Additional Information
See the SMIL chapter in RealSystem Production Guide for instructions on using a <switch> tag.

SureStream File Size

Because each SureStream stream increases the clip's file size, an encoded clip may be larger than its source file, even though the clip is compressed. If the clip's file size is an issue, limit the SureStream streams to just the essential speeds. Table 1 gives ballpark figures for file space required for each minute of a RealAudio or RealVideo stream.

Table 1: Approximate Size for RealAudio and RealVideo Clips
Target Audience RealAudio RealVideo
28.8 Kbps modem 0.15 Megabytes/minute 0.15 Megabytes/minute
56 Kbps modem 0.24 Megabytes/minute 0.25 Megabytes/minute
64 Kbps single ISDN 0.32 Megabytes/minute 0.33 Megabytes/minute
112 Kbps dual ISDN 0.47 Megabytes/minute 0.59 Megabytes/minute
Corporate LAN 0.70 Megabytes/minute 1.1 Megabytes/minute
256 Kbps DSL/cable modem 0.70 Megabytes/minute 1.65 Megabytes/minute
384 Kbps DSL/cable modem 0.70 Megabytes/minute 2.56 Megabytes/minute
512 Kbps DSL/cable modem 0.70 Megabytes/minute 3.30 Megabytes/minute

When using SureStream to encode RealAudio or RealVideo, add the figures from Table 1 for each connection speed you encode, then multiply by the length in minutes the source file plays. Table 1 shows that if you encode a RealAudio clip for 28.8 Kbps and 56 Kbps modems, for example, the clip takes about 0.39 Megabytes of disk space per minute (0.15 + 0.24). If the audio is five minutes long, the clip will be about 1.95 Megabytes in size (0.39 x 5).

The figure you get is an approximation based on using the RealSystem Producer default settings. The actual file size varies depending on the combination of streams you've chosen, the type of audio, and whether you've changed the defaults. If you encode for just one connection speed, the file will likely be larger than you calculated because of the duress streams. When you encode RealVideo for multiple connections, the file size may be lower than you calculated because different RealVideo streams may use the same RealAudio stream for a soundtrack.


Copyright © 2001 RealNetworks
For information on RealNetworks' technical support, click here.
Comments on this document? Click here.
This file last updated on 04/10/01 at 16:17:57.
previous next