RealSystem G2 gives you the power to create compelling, complex multimedia presentations streamed over a network. It includes RealServer G2, the most advanced streaming media server available, along with RealPlayer G2 and RealPlayer Plus G2, the world's most popular desktop applications for playing streaming media clips. This chapter explains the basics of how you use RealSystem G2 to put together stunning multimedia presentations.
![]() |
Tip |
---|
To experience the many possibilities of streaming media, download RealPlayer G2 from http://www.real.com, and visit http://realguide.real.com and http://www.real.com/showcase. |
A RealSystem presentation can consist of one clip, such as a single RealAudio clip, or multiple clips played in sequence or in parallel. RealSystem streams these presentations over a network. If you have ever downloaded a video or audio clip to your Web browser, you know that it can take several minutes to receive a clip that plays for a few seconds. In contrast, a clip streamed by RealServer G2 begins to play back almost immediately.
RealSystem G2 gives you many possibilities for combining media clips into presentations. There are two basic types of file formats you can stream with RealSystem G2:
Editing programs typically let you save or export files to a standard, "open" format. Video editing programs usually let you export files as AVI or QuickTime, for example. RealSystem can stream several standard formats, but these formats may not be optimized for network streaming.
Formats such as RealAudio and RealVideo are highly compressed for network streaming. These formats give the best results. You can convert a file from a standard format to a streaming format with an encoding tool. Some editing programs can also export files directly to streaming formats.
Chapter 4 discusses the audio formats you can stream:
Chapter 5 describes the video formats you can stream:
RealFlash, which pairs Macromedia Flash animation with a RealAudio soundtrack, lets you stream animated presentations. See Chapter 6 for details.
RealSystem presentations can include still images in these formats:
RealPlayer G2 can display RGB baseline JPEGs. Progressive and grayscale JPEGs are not supported.
Both interlaced and noninterlaced GIFs will work, but noninterlaced GIFs are recommended.
You can also assemble JPEG and GIF images in a RealPix presentation to create eye-catching slideshows with special effects such as dissolves and zooms. If you have RealPlayer G2 installed, you can view a RealPix sample.
![]() |
Additional Information |
---|
Download RealPix Authoring Guide from http://service.real.com/help/library/encoders.html. |
RealText streams text at specific times within a presentation. You can use RealText to add subtitles to a video, for example, or lay out text from a live source to create a real-time stock ticker. If you have RealPlayer G2 installed, click here to see a static example of a RealText stock ticker.
![]() |
Additional Information |
---|
Get RealText Authoring Guide, available at http://service.real.com/help/library/encoders.html. |
RealSystem's plug-in technology lets it stream nearly any type of clip or live event. Check http://www.real.com/devzone for the availability of plug-ins that let RealSystem stream additional video and audio formats, as well as exciting new types of media.
Most RealPlayer users upgrade when a new version of RealPlayer becomes available. If you need to create presentations playable by older versions of RealPlayer, though, take into account RealPlayer and clip type compatibility. The table below indicates which RealPlayer versions, such as RealPlayer G2 or RealPlayer 5.0, can play which types of clips. RealPlayer 4.0, for example, plays only RealAudio and RealVideo.
Note that this table covers general clip compatibility, not codec compatibility. Later versions of RealPlayer typically introduce new RealAudio and RealVideo codecs. Earlier versions of RealPlayer cannot play the new RealAudio G2 codecs, for example. So when planning for backwards compatibility, make sure you encode RealAudio or RealVideo clips with a codec available in your targeted versions of RealPlayer.
![]() |
Additional Information |
---|
See also "Compatibility with Previous Releases". For more on codecs, see "Choosing RealAudio Codecs" and "Choosing RealVideo Codecs". |
After choosing your streaming media formats, gather content and use your preferred editing tools to prepare your source files. Sound editing software, for example, lets you optimize an audio clip's dynamic range. With video editing software you can set the video's window size. RealSystem does not require you to use specific editing tools. Just ensure that your editing tools can save files in streaming formats, or in open formats you can easily convert to streaming formats.
If your editing program does not export files to the streaming format you want, you can use an encoding tool to convert the file. RealNetworks provides free, basic tools, and sells enhanced tools for converting popular sound and video formats to RealAudio and RealVideo. In addition, plug-ins for popular programs such as Adobe Premiere and Microsoft PowerPoint let you save presentations directly as RealVideo.
![]() |
Additional Information |
---|
Check http://www.real.com/products/tools/ for the tool that's right for you. |
RealSystem G2 provides virtually unlimited possibilities for streaming media. It does not lock you into a small set of streaming formats or a specific set of tools. In addition to new types of streaming media, RealNetworks' partners and other parties are continually producing new tools that help you put together sophisticated presentations.
![]() |
Tip |
---|
Visit http://www.realstore.com to find out about the many tools available to help you create streaming media. Also check http://www.real.com/devzone frequently for information about new media types and tools. |
As you create streaming media clips, you need to consider how to keep the clips synchronized to a single presentation timeline. You also need to create presentations for specific bandwidths. These are two important, interrelated steps for producing streaming multimedia presentations.
Because a static Web page has no timeline, images and text download without a preset order. You may notice when browsing a Web page that one image may download partially, then another image begins to appear, then the first image completes, and so on. A Web page does not have an internal timeline, so exactly when a certain image gets to the browser doesn't matter. What matters is that the entire page downloads as soon as possible.
When you stream multimedia, though, clips have timelines and must flow smoothly once they've started to play back. Imagine how jarring it would be for the visual track of a video to play silently for a minute, then pause as its audio track catches up to it a minute later. When you stream multimedia, therefore, it's important that your presentation keeps clips synchronized.
There are three aspects of timelines you may work with:
Audio, video, and animation have internal timelines. In a two-minute video, for instance, each frame corresponds to a specific point in a two-minute timeline. Each second of audio meshes with each second of the visual image throughout the clip's overall timeline. Your video, audio, or animation editing program is your main tool for manipulating the clip's timeline, which is woven into the fabric of the clip.
With RealPix or RealText, you define timing tags that set when each image or text block appears. You thereby control exactly how long each image or text chunk stays on the screen. When combining clips, it's typically easier to produce audio, video, or animation first. Then set the RealPix and RealText timelines to coordinate with those clips.
![]() |
Additional Information |
---|
Get the RealPix and RealText authoring guides from http://service.real.com/help/library/encoders.html. |
A SMIL file assembles your presentation and can include its own timing elements. Timing a presentation with SMIL can be as simple as starting one clip as soon as another one stops. But you can also use explicit timing commands to delay playback for ten seconds, for example, or start a clip playing at 30 seconds into its internal timeline. SMIL's timing commands are optional, but they give you an extra level of flexibility you may need when putting multimedia clips together.
![]() |
Additional Information |
---|
"Writing a SMIL File" provides an overview of SMIL. For specifics on SMIL timing, see "Specifying Timing". |
Any presentation streamed over a network has a bandwidth budget because each person viewing streaming clips has a network connection with a top speed, such as 28.8 Kilobits per second. Even when your clips are perfectly synchronized, the presentation may stall if at some point it requires more bandwidth than the viewer has available. This happens because RealServer needs to transmit at a certain point in the timeline more data than can get through the network connection to RealPlayer.
When you develop a streaming media presentation, you need to consider the bandwidth constraints your audience will have. This is crucial for creating presentations that start to play back quickly and flow smoothly. Web users don't like to wait more than a few seconds for something to happen after they click a link. And if your clips stop and restart frequently, viewers are not likely to stay watching. Fortunately, RealSystem offers sophisticated features that let you create a single presentation that looks good over a slow connection and great over a fast one.
![]() |
Additional Information |
---|
Chapter 3 provides the details for considering bandwidth in streaming presentations. |
With your clips in their streaming formats, you put your presentation together with SMIL. Pronounced "smile," SMIL stands for "Synchronized Multimedia Integration Language." A SMIL file is not necessary to stream just one clip. But when you have multiple clips, SMIL's simple mark-up language specifies how and when the clips play.
Here are some of the many advantages of using SMIL:
Because RealSystem can stream many media formats, you do not need to merge clips into a single streaming file. To alter your presentation, for example, you simply edit the SMIL file rather than merge the clips again into a different container file.
Because a SMIL file lists a separate URL for each clip, you can put together presentations using clips in any locations. You can use a video clip from one server, for example, and a text clip from another.
A SMIL file can list different language options for clips. To create a video with soundtracks in different languages, for example, you produce one video clip with no soundtrack, then create audio clips in each language. Your Web page needs just one link to the SMIL file. When a visitor clicks that link, the visitor's RealPlayer chooses a soundtrack based on its language preference.
A SMIL file can also list presentation choices for different bandwidths. RealPlayer then chooses which clips to receive based on its available bandwidth. You can thereby support multiple connection speeds through a single hypertext link, rather than separate links for modem users, ISDN users, T1 users, and so on.
![]() |
Note |
---|
RealSystem G2's SureStream technology also lets you support multiple bandwidth connections within a single clip. For more information, see "Supporting Multiple Bandwidth Connections". |
Because a SMIL file is a simple text file, you can generate it automatically for each visitor. You can therefore create different presentation parts, then assemble a customized SMIL file based on preferences recorded in the visitor's browser.
The SMIL file lets you easily control the presentation timeline. You can start an audio clip playing at 2.5 seconds into its internal timeline, for example, without changing the encoded clip.
When your presentation includes multiple clips, such as a RealVideo clip playing simultaneously with a RealPix slideshow, you use SMIL to define the layout.
You can use SMIL along with RealServer's Advertising Application to insert ads into your presentation. RealServer can deliver image banner ads, as well as rich media ads in formats such as RealVideo and RealFlash.
![]() |
Additional Information |
---|
Chapter 7 describes the SMIL file syntax. Chapter 9 explains ad insertion. |
When your presentation is complete, you move the streaming media clips and SMIL file to RealServer G2 or a Web server for delivery. You can play back your presentation in RealPlayer or directly in your Web page. The latter option, which uses RealPlayer's Netscape plug-in or ActiveX Control, requires mark-up tags in your Web page that specify how the presentation displays.
![]() |
Additional Information |
---|
Chapter 10 explains how to link your Web page to a RealSystem presentation hosted on a server. For information on embedding a presentation in your Web page, see Chapter 8. |
RealServer G2 is the preferred host for RealSystem presentations. Designed specifically to stream multimedia over networks, RealServer keeps multiple clips synchronized and uses many advanced features to ensure that clips stream smoothly under adverse network conditions. Although you can use a standard Web server to host some streaming presentations, you will not get the results you'll experience when using RealServer.
![]() |
Tip |
---|
If you don't have RealServer G2 available, check out the hosting services of Real Broadcast Network (RBN) at http://www.real.com/rbn. RBN provides full services for encoding, hosting, and broadcasting events to small or large audiences. |
A Web server uses the HTTP protocol, as you can see in Web page URLs that begin with http://
. The HTTP protocol downloads files without regard to timelines, making clips with timelines more likely to stall. Although RealPlayer can play back clips as they download, the HTTP protocol does not give RealPlayer the ability to adjust the download to compensate for changing network conditions.
In contrast, URLs for media clips streamed by RealServer begin with rtsp://
, because RealServer uses Real-Time Streaming Protocol (RTSP), which is designed specifically to stream clips that have timelines. RTSP lets RealPlayer G2 and RealServer G2 exchange information about a presentation in progress and adjust the streaming data to keep the clips playing smoothly.
When two clips play side-by-side, for example, RealPlayer uses RTSP to communicate with RealServer about each clip's progress, indicating how much data it needs to keep the presentation synchronized. RealServer can then adjust the data flow, reducing low priority data if necessary to ensure that crucial data gets through. Communication like this is not possible when a Web server sends clips to RealPlayer.
You don't need to know the specifics of RTSP to create great presentations. You just need to ensure that RealServer G2 is available to stream your clips. If only a Web server is available, you can still create multimedia presentations, but you won't be able to use all RealSystem features. In either case, make sure you have a good understanding of RealSystem G2 production as described in this manual before you start creating your clips. This helps ensure that your presentation harmonizes with the server that hosts it.
![]() |
Additional Information |
---|
For information on RealSystem features that do not work with Web server hosting, read "Limitations on Web Server Playback". |
Because some browsers may not be configured to launch RealPlayer when they receive a SMIL file or a media clip, you need to ensure that RealPlayer launches when a visitor to your Web page clicks the link to your presentation. When RealServer G2 hosts your presentation, you simply include a Ramgen parameter in the Web page URL to launch RealPlayer.
![]() |
Additional Information |
---|
For more on Ramgen, see "Streaming Clips from RealServer G2". |
When a Web server hosts your presentation, you launch RealPlayer by linking your Web page to a Ram file instead of a SMIL file or a media clip. When the browser receives the Ram file, it launches RealPlayer and gives it the Ram file, which contains the URLs to your media clips or SMIL file. RealPlayer uses this information to request the presentation from the Web server. Because the Ram file is a small text file, this interaction takes little time.
![]() |
Additional Information |
---|
For more on Web server playback, see "Playing Clips from a Web Server". |
Because earlier versions of RealServer do not handle SMIL files and many of the RealSystem G2 clip types, make sure you have RealServer G2 available to host your presentation. When you host a presentation on RealServer G2, the RealServer administrator will give you the basic URL parameters, such as the server address and its RTSP and HTTP port parameters. The RealServer administrator can also set up many content delivery and security features, such as:
![]() |
Additional Information |
---|
RealServer Administration Guide, available at http://service.real.com/help/library/servers.html, explains RealServer features. |
When you create RealSystem G2 content, RealNetworks encourages you to add RealSystem G2 logos to your Web page. You can provide a RealPlayer G2 download link button, for example, so that users can get RealPlayer G2 from RealNetworks' site and view your content. You can read RealNetworks' trademark policy and get RealSystem G2 and RealPlayer G2 logos from http://www.real.com/company/guide/index.html.
Although the main function of RealSystem is to stream media clips over a network, you can also create presentations that play back from a user's local machine. An example is a multimedia-enhanced book, like this online manual, written with HTML and containing links to RealSystem clips. Users then download all the book files to their local machines and play back the media clips in RealPlayer.
In this case, you produce clips as described in this manual, except that you don't have to target specific network bandwidths. When you put the presentation together, you simply use URLs that point to clips on the user's machine instead of on RealServer or a Web server.
![]() |
Additional Information |
---|
For more on local URLs, see "Linking to Local Clips". |
With RealPlayer G2 installed, you simply click the presentation link in your Web page to view the media clips. RealPlayer buffers the clips for a few seconds, then begins to play the presentation back in its own window or your browser. RealPlayer downloads are available from RealNetworks at http://www.real.com.
Unlike a Web browser, RealPlayer does not store clips in a disk cache or allow users to copy or download still images. This helps you keep copyrighted material secure when you stream clips from RealServer. Optionally, RealNetworks tools let you encode video and audio clips so that viewers can record the streamed clips to their local machines.
RealPlayer can play virtually any streaming clip because of its plug-in technology. RealPlayer plug-ins function like Web browser plug-ins. When RealPlayer receives a streaming RealVideo clip, for example, it uses its RealVideo plug-in to play the clip on your computer screen. If RealPlayer doesn't have a plug-in needed to play a certain streaming clip, it downloads that plug-in from the Internet.
Plug-in downloading lets you confidently develop presentations using the latest streaming file types available for RealSystem. If visitors to your Web page don't have a plug-in needed to play your presentation, RealPlayer quickly downloads the plug-in and can play the presentation without having to restart. Because RealPlayer is the world's most popular application for playing streaming media, you can be sure that your RealSystem G2 presentation can reach the widest audience possible.
![]() |
Additional Information |
---|
For information about developing RealPlayer plug-ins or building RealPlayer capabilities into an application, visit http://www.real.com/devzone/realdevelopers/. |