previous next

Chapter 4: Sources of Content

This chapter gives quick instructions on how to create an on-demand or a live file with RealProducer Plus. It also describes G2SLTA, the tool for broadcasting an on-demand file as if it were live.

RealServer can stream many other file types, which are not described in this chapter. Consult the RealNetworks Web site for information about additional file types.

Overview

A content creator can make a file and then place it in a location available to your RealServer, or she can encode it (using encoding software such as RealProducer Plus) and send it to your RealServer as it happens.

Once you have created or started encoding your source, you'll create a link for it, so that users can receive your content. The link will go in a Web page or a Ram file.

RealServer can serve the following file formats (check your license to see which of these your RealServer can serve):

In addition to serving your own on-demand and live files, you can also serve content distributed by another RealServer. This is called splitting. It is described in Chapter 12, "Splitting Live Presentations".

Synchronized Multimedia Integration Language files, or SMIL files, are files that coordinate the delivery of several clips. A SMIL file (pronounced "smile") tells the client what clips to play, in what order, and where to show them on the screen. SMIL files can perform basic or sophisticated timing and layout. A SMIL file can refer to both on-demand and live clips. For detailed information on creating SMIL files, see RealSystem Production Guide. To view this manual, click Resources under Help in RealSystem Administrator.

This chapter describes two methods for creating source files and sending them to RealServer:

Creating an On-Demand Source with RealProducer Plus

Instructions in this section create a brief, one-minute demonstration audio clip, using a music CD, and RealProducer Plus 8. Other versions of RealProducer Plus may have slightly different steps than the ones shown below; if you have a different software version, use these steps as a general guide.

Additional Information
To learn more about options for encoding, refer to RealProducer Plus User's Guide, available at http://service.real.com/help/library/index.html.

Step 1: Creating the Clip

  1. Put a music CD in the computer's CD player and start playing it, using your system CD player. (Do not use RealJukebox, as it will not initialize the audio device needed for encoding.)

  2. Start RealProducer Plus.

  3. Choose File>New Session. A dialog box appears.

  4. In the Input Source section, select Media Device.

  5. Place a check mark in Capture Audio and uncheck Capture Video.

  6. In the Output area, select RealMedia File.

  7. In the box below it, type the file name ondemand.rm. (Always use the .rm extension.)

    If you are encoding on the same machine as RealServer, you can type the complete path in RealProducer Plus.

    Note
    File names must consist of one word, with no spaces.

  8. Click OK.

    The New Session dialog box closes, returning to the RealProducer Plus main window.

  9. Verify that Multi-rate SureStream is selected.

  10. In the Target Audience area, make sure the boxes 28K Modem and 56K Modem are selected.

  11. Leave all other fields blank.

  12. Choose Controls>Start.

    A message appears, asking if you want to add clip information.

  13. Click No.

    RealProducer Plus begins recording your music CD. The word "Encoding" appears in the lower left corner.

  14. Wait one minute, then click Stop.

    A message appears, asking if you want to stop encoding.

  15. Click Yes.

  16. Click Close.

    RealProducer Plus halts the recording and creates a file named ondemand.rm in the RealProducer Plus directory, or in the directory location you specified in Step 7.

Step 2: Copying the Clip to RealServer

Copy the file ondemand.rm clip you created in the previous section, that is currently located in the main RealProducer directory, to the RealServer Content directory.

In Windows 95, Windows 98, and Windows NT, the path is C:\Program Files\Real\RealServer\Content.

In UNIX, the path is /usr/local/RealServer/Content.

Step 3: Linking to the On-Demand Clip

Create a link for the clip in a Web page. (The Web page can be local; it does not have to be on a remote Web server.)

In a Web page, type the following link and save the page (substitute your RealServer's machine name or IP address for address):


<a href="http://address:8080/ramgen/ondemand.rm">Click here to listen to my CD</a>

You can now view this Web page in a browser. When you click the link, RealPlayer will start and will play your ondemand.rm file.

You can also play the clip by starting RealPlayer, clicking File>Open Location, and typing the following in the dialog box that appears:


rtsp:address:554/ondemand.rm

Information on how to create links to your content is described in Chapter 5, "Understanding Link Formats".

Note
Notice that you must use the same capitalization in the link as you did when you created the file name, as they are case-sensitive.

Creating a Live Source with RealProducer Plus

Instructions in this section create a demonstration audio clip, using a music CD, and RealProducer Plus 8. Other versions of RealProducer Plus may have slightly different steps than the ones shown below; if you have a different software version, use these steps as a general guide.

Additional Information
To learn more about options for encoding, refer to refer to RealProducer Plus User's Guide, available at http://service.real.com/help/library/index.html.

Other sources of live content are described elsewhere in this chapter; see "Creating a Live Source with G2SLTA".

There are two steps to setting up and running RealProducer Plus:

  1. Starting the live encode.

  2. Creating a link to the live event.

Step 1: Starting the Live Encoding with RealProducer Plus

  1. Put a music CD in the computer's CD player and start playing it, using your system CD player. (Do not use RealJukebox, as it will not initialize the audio device needed for encoding.)

  2. Start RealProducer Plus.

  3. Click File>New Session. A new dialog box appears.

  4. In the Input Source section, select Media Device.

  5. Place a check mark in Capture Audio and uncheck Capture Video.

  6. In the Output area, select Live Broadcast.

    1. In the RealServer box, type the IP address of the machine on which your RealServer is installed.

      You can type the name (such as realserver.example.com) of your RealServer instead.

    2. In the Server Port box, leave the default setting of 4040.

    3. In the Filename box, type live.rm. (Always use the .rm extension.)

      If this broadcast is to be authenticated, use the path /secure/live.rm.

      Note
      File names must consist of one word, with no spaces.

    4. In the Username box, type the same user name you use for logging in to RealSystem Administrator.

      (To create an additional user name and password for each person who will be encoding to your RealServer, see "Authenticating Encoder Users".)

    5. In the Password box, type the password you use for RealSystem Administrator.

  7. Click OK.

    The New Session dialog box closes, returning to the RealProducer Plus main window.

  8. Verify that Multi-rate SureStream is selected.

  9. In the Target Audience area, make sure the boxes 28K Modem and 56K Modem are selected.

  10. Leave all other fields blank.

  11. Click Start.

    A message appears, asking if you want to add clip information.

  12. Click No.

    RealProducer Plus begins encoding your music CD.

Step 2: Linking to the Live Event

These instructions describe a unicasting link in a Web page. For more sophisticated delivery methods, consult Chapter 12, "Splitting Live Presentations" and Chapter 13, "Multicasting Live Presentations".

Create a link for the live broadcast in a Web page. (The Web page can be local; it does not have to be on a remote Web server.)

In an existing Web page, type the following link and save the page (substitute your RealServer name or IP address for address):


<a href="http://address:8080/ramgen/encoder/live.rm">Click here to listen to my CD</a>

Tip
Be sure to use the same file name extension in the link as you typed in the encoder. RealServer will not supply a missing or incorrect extension.

The word /encoder/ alerts RealServer that this is a live broadcast. Everything after /encoder/ is a file name or a path and file name. The path can be an actual path that matches directories in RealServer, or it can be a virtual path that you use to distinguish this broadcast from others. Virtual paths are described in greater detail later in this chapter.

You can also play the clip by starting RealPlayer, clicking File>Open Location, and typing the following in the dialog box that appears:


rtsp:address:554/encoder/live.rm

Information on how to create links to your content is described in Chapter 5, "Understanding Link Formats". 

Note
Be sure to use the same capitalization in the link as in the file name, as file names are case-sensitive.

Virtual Paths

In some cases, in the encoding software, you may want to supply a virtual path that doesn't actually exist. The notion of a virtual path is only applied to live content. In RealProducer Plus, the path name is typed in the Filename box.

Virtual paths can be useful in segmenting your streams. For example, if the accounting department and the marketing department regularly encode announcements made by their department heads, you can tell each department to use its department name so that you don't have to worry about each department using the same name for its broadcast. The accounting department can encode to /accounting/update.rm, and the marketing department can encode a clip named /marketing/update.rm. Both streams will be named update.rm, but because of the virtual path name, each department's stream remains distinct, and viewers in the different departments will see the right clip as they click the appropriate link.

The Connection Between Encoder Paths and Links

The filename and path you type in the encoding software will always be reflected in the link to the resulting content. For example, if you type videos/familyreunion/1999/reunion.rm in the encoder, the link in the Web page to the clip will look like:


http://realserver.example.com:8080/ramgen/encoder/videos/familyreunion/1999/reunion.rm

If you are using the directory structure created by RealServer at installation, you don't have any directories named encoder or videos or familyreunion or 1999. But because /encoder/ is the mount point, and because you typed the rest of the path in the encoding software and matched them in the link, RealServer is able to find the clip.

Creating a Live Source with G2SLTA

The G2SLTA (Simulated Live Transfer Agent) software tool converts an on-demand stream to a live event. It simulates the encoder's connection to RealServer. Just as in an actual live broadcast, viewers who watch a presentation join the event in progress; no matter when visitors connect, they all see the same thing at the same time.

This feature also allows you to create a playlist that cycles through a set of prerecorded clips in a certain order.

You can stream RealAudio, RealVideo, AU, and WAV clips using G2SLTA. Only audio and video files can be delivered as live content with G2SLTA. Data types such as RealText and RealPix cannot be used; they have their own live delivery utilities. For more information, see RealPix Authoring Guide and RealText Authoring Guide at http://service/help/library/index.html.

You start G2SLTA from a command line. Just as if you were creating a live encoding session, you assign a name to the "live" broadcast, and supply a user name and password.

G2SLTA Command Line


C:\Real\RealServer>Bin\g2slta.bat realserver.example.com 4040 pbrown swordfish annual.rm Content\Annual_Report.txt

As G2SLTA runs, it displays the name of the file it is broadcasting. A line of asterisks indicates how much of the file has been broadcast, in percent. (A row of asterisks that lines up below the number five indicates that the file is approximately 50 percent complete.)

G2SLTA Showing Progress Through Playlist


5 files.
Encoding CompanyLogo.rm...
0----1----2----3----4----5----6----7----8----9----10
***************************************
Encoding Welcome.rm...
0----1----2----3----4----5----6----7----8----9----10
***************************************
Encoding President.rm...
0----1----2----3----4----5----6----7----8----9----10
***************************************
Encoding Treasurer.rm...
0----1----2----3----4----5----6----7----8----9----10
***************************************
Encoding Conclusions.rm...
0----1----2----3----4----5----6----7----8----9----10
***************************************
Done.

After playing the files according to the -r and -n switches in the command line (if any), G2SLTA displays the word Done. If you use the -n switch without a number (to create an infinite loop), G2SLTA will not ever show Done because it will always be playing a file.

When to Use G2SLTA

The following are examples of when to use G2SLTA instead of live broadcasting:

G2SLTA Used with Other Features

G2SLTA works with all other RealServer live broadcasting features.

On-Demand Streaming and G2SLTA

On-demand clips are "converted" to live clips as G2SLTA sends them to RealServer.

Live Unicasting and G2SLTA

Use G2SLTA to test your equipment for doing live broadcasting before the event starts, and work out any bugs. Make sure you have the correct links.

Archiving G2SLTA Broadcasts

The live archiving feature can create static files of all live files that arrive from an encoder. RealServer will use the same archive settings as for other broadcasts, whether it is configured to create one large file from each broadcast or several smaller files. If the live archiving feature is configured to save one large file, it will use the name you specified in livefile in the command line (see "G2SLTA Syntax"). For small files, it will use the name specified by livefile, and appending numbers at the end (see "Small Files").

Note
If you start G2SLTA with the infinite loop instruction (omit the -n switch from the command line), and the live archive feature is set up to create a single large file from the broadcast, RealServer will not create an archive file until you end the broadcast. Then it will create one large file.

If the live archiving feature is turned on for all arriving streams (the * in the Virtual Directories list), all broadcasts from G2SLTA will automatically be archived.

Splitting and G2SLTA

You can use simulated broadcasts as a live source for splitting. See "Creating a Source for Splitting".

Multicasting and G2SLTA

You can use simulated broadcasts as a live source for multicasting. See "Creating a Source for Multicasting".

Access Control, Authentication, and G2SLTA

In order for a broadcast to be authenticated, it must use the /secure/ mount point. The value you use for livefile must include the /secure/ mount point.

A client that connects to any live broadcast that uses G2SLTA as its live source will be authenticated in the usual manner.

Java Monitor and G2SLTA

As with all live events, you can monitor the number of clients connected to a live broadcast by using the Java Monitor.

The broadcast created by G2SLTA appears in the Java Monitor as a typical encoder connection.

Reporting and G2SLTA

Just as in any other live broadcast, a record is created in the access log for any client that connects to a live broadcast simulated by G2SLTA.

Setting Up and Running G2SLTA

There are four steps to setting up and running G2SLTA:

  1. Configuring RealServer.

  2. Creating a playlist.

  3. Running G2SLTA.

  4. Creating the link to the simulated live broadcast.

Use the following instructions to set up and run G2SLTA.

Step 1: Configuring RealServer

In these steps you will:

Configuring RealServer to Work with G2SLTA:

G2SLTA uses the same configuration settings as live unicasting. See "Encoders".

Looking Up Password Information

You will need to supply a user name and password in the G2SLTA command line. By supplying a user name, you allow RealServer to authenticate you and verify that the simulated stream is authorized.

Generally, you use the user name and password that you supplied during RealServer setup. This information was automatically added to the list of authorized encoder users.

To look up password information:

  1. In RealSystem Administrator, click Security. Click Authentication.

  2. In the Realms list, select SecureEncoder.

  3. Click Browse Users in Realm. A new browser window appears.

    1. Examine the names in the list. There may be only one (the user name you use for connecting to RealSystem Administrator, which you created during Setup).

    2. Click Close. You are returned to RealSystem Administrator.

  4. If you did not see a user name that you want to use when running G2SLTA, click Add a User to Realm. Refer to instructions in Chapter 15, "Authenticating RealServer Users" for information on how to customize the new user name and password.

  5. Make a note of the user name and password you want to use. This information will go on the command line, as described in "G2SLTA Syntax".

Looking Up Broadcasting Information

To run G2SLTA, you need to know the correct port number to use.

To look up encoding information:

  1. In RealSystem Administrator, click Broadcasting. Click Encoder.

  2. Make a note of the values for Port and for Mount Point.

Step 2: Creating a Playlist

The playlist is a text file that contains a list of the files that G2SLTA will stream.

You can include as many files as you like in the playlist.

All files in the playlist must have been encoded at the same bit rates. Any SureStream files in the playlist must contain the same quantity of bit rates, and the bit rates must be the same among all files.

Warning
Do not combine both SureStream files and non- SureStream files in the playlist.

When you start G2SLTA, you give a name to the stream that will be used as the file name that will be included in the URL. The playlist name is not included in the URL.

To create a playlist:

In a text file, list each file that you want RealServer to play, one per line. Files are played in the order shown in the file.

Format of Playlist


first_file
second_file

If the files are not in the same directory as the playlist, be sure to include their full paths, whether absolute or relative to the location of the playlist.

Example Playlist

For example, a file named Annual_Report.txt might contain the following items:


CompanyLogo.rm
Welcome.rm
President.rm
Treasurer.rm
Conclusions.rm

For more playlist features, see "Optional G2SLTA Features" later in this chapter.

Step 3: Running G2SLTA

The instructions below show how to run the file G2SLTA.BAT (Windows) or g2slta.sh (UNIX). These files set two environment variables: G2SLTA_PLUGIN_PATH and G2SLTA_SUPPORT_PATH, with the values of variables PluginDirectory and SupportPluginDirectory. They are customized with your directory values when you install RealServer. (To view the values of PluginDirectory and SupportPluginDirectory, search for them in the configuration file; they are not shown in RealSystem Administrator.)

Warning
Running g2slta.exe, rather than the batch file or shell script, will result in error messages. Only the batch file and shell script contain the custom settings for your computer.

To run G2SLTA:

  1. At a command line in the Bin directory, run G2SLTA.BAT (Windows) or g2slta.sh (UNIX), using the syntax shown below.

G2SLTA Syntax

The G2SLTA program uses the following format:

Windows


g2slta.bat host port username password livefile playlist [-r] [-nN] [-bN]

UNIX


g2slta.sh host port username password livefile playlist [-r] [-nN] [-bN]

where:

host Name of the RealServer system and domain name, or IP address.
port Port number specified in the Encoder list, usually 4040. See "Looking Up Broadcasting Information".
username Name of the encoder user as defined in the encoder realm. Often the same as the username for RealSystem Administrator. See "Looking Up Password Information". If no username has been defined, type two quotation marks: "".
password The corresponding user's password. Often the same as the password for RealSystem Administrator. See "Looking Up Password Information". If no password has been defined, type two quotation marks: "".
livefile Name of the broadcast that you want to include in the URL that links to this event.
playlist Name of your playlist. If it is in a different directory than the RealServer directory, include its path.
If you are broadcasting a single file, you can give its full path and name here, instead of referencing a playlist.
-r Optional. Indicates that RealServer should randomly play the files in the playlist. See "Playing Files in Random Order" for further discussion.
-nN Optional. Gives the number of files in the playlist for RealServer to play. When this switch is omitted, the list of files plays indefinitely. See "Specifying Number of Times to Play Files" for more information.
-bN Optional. Gives the target bandwidth to stream from a SureStream file; RealServer will stream the bandwidth of N. Give the number in bits per second. For example, -b20000 will stream the 20 kilobit bit-rate stream. See "Controlling Bandwidth" for additional information.

G2SLTA Example

The following example command starts a simulated live broadcast. The user name is pbrown and the password is swordfish. The filename that users will connect to is annual.rm. Files are specified by the playlist named Annual_Report.txt. Switches for random play and bandwidth are omitted; therefore the files will play in the order listed in the playlist, and all the bandwidths are available to clients. Since there are five files in the playlist, -n5 is used to indicate that each file should be played once. In this example, the command is typed from the main directory, thus the commands are preceded with the path to the Bin directory.

Windows


Bin\g2slta.bat realserver.example.com 4040 pbrown swordfish annual.rm Content\Annual_Report.txt -n5

UNIX


Bin/g2slta.sh realserver.example.com 4040 pbrown swordfish annual.rm Content/Annual_Report.txt -n5

Optional G2SLTA Syntax

This section discusses the three optional command line options, which are also shown in "G2SLTA Syntax":

Playing Files in Random Order

The -r switch instructs G2SLTA to stream the files in the playlist in random order.

Tip
Use both the -r and -nN switches, where N is a multiple of the number of files in the playlist, to cycle randomly through the playlist N times.

Specifying Number of Times to Play Files

The -nN switch gives the total number of files to play from the playlist. Notice that it does not indicate the number of times each file should be played.

To play each file in the playlist once, count the number of files in the playlist, and use that value for N.

To indicate that RealServer should play seven files, include -n7 in the command line. If a playlist contains three files, RealServer will play the file sequence twice, and will play the first item a third time, for a total of seven files played.

Using the example playlist that contains five files (shown in "Example Playlist", the switch -n7 would play the following files:

CompanyLogo.rm (first time)
Welcome.rm (first time)
President.rm (first time)
Treasurer.rm (first time)
Conclusions.rm (first time)
CompanyLogo.rm (second time)
Welcome.rm (second time)

To play through each file in the playlist x times, multiply x by the number of files in your playlist and use it for N.

Another way to think of this switch:

To cycle through the playlist indefinitely, omit the -n switch.

Controlling Bandwidth

Use the -b switch bandwidth switch when your playlist consists of SureStream files, and you want only a specific bandwidth to be broadcast. Ordinarily, clients will choose the best possible SureStream rates for their connections.

Step 4: Linking to the Simulated Live Broadcast

Links to simulated events use the same format as for actual live events, including the mount point that corresponds to the port number you specified in the command line.

Additional Information
See "Step 2: Linking to the Live Event".

For example, if you started the simulated live event using the example shown in "G2SLTA Example", the link in the Web page would look like the following. Notice that the Ramgen mount point is included.


http://realserver.example.com:8080/ramgen/encoder/annual.rm

If you want to test this broadcast before creating the Web page, type the following directly in the RealPlayer Open Location dialog box. Notice that the Encoder mount point is included.


rtsp://realserver.example.com:554/encoder/annual.rm

Tip
Because the URL is linked to the list of streamed files via the livefile name, you can use different playlists with different names, yet keep the same link on the Web page.

Stopping G2SLTA

The G2SLTA program will stop automatically when it has finished playing all the files in the playlist, according to the command line instructions.

To stop G2SLTA before it is completed, either press CTRL+C at the command line from which you started G2SLTA (Windows), or use the KILL command with the process ID of the G2SLTA process (UNIX).

Ordinarily, you will not need to do this unless you want to stop the broadcast prematurely, or if you want to stop an infinite looped broadcast.

Optional G2SLTA Features

The G2SLTA program has additional options that you can configure:

Customizing Title, Author, and Copyright Information

When a clip is initially encoded, the content creator can fill out information about the title, author, and copyright (TAC) information. You can view this information for any clip (if the content creator supplied it) by choosing Help>About this Presentation in RealPlayer. Other client software may have a different method of showing the TAC information.

Ordinarily, G2SLTA sends the TAC information for each clip as it is broadcast. If you check the About this Presentation information as each clip is played, you will see the information changing.

By using options within the playlist, you can override the encoded TAC information and supply your own:

To include title, author, and copyright information for the entire playlist

Type the following at the beginning of the file. The rest of the file lists the files to be played:


Title: your title
Author: your author
Copyright: your copyright information
first_file
second_file

All files in the playlist will stream with the same TAC information.

In the following example, the information title, author, and copyright information appears the same for every clip in the presentation:


Title:  Example.com's Annual Report
Author: Chris Lee, Executive Assistant
Copyright: Copyright 1999, Example.com
CompanyLogo.rm
Welcome.rm
President.rm
Treasurer.rm
Conclusions.rm

To include separate title, author, and copyright information for individual clips:

Add the TAC information to the end of each line, using the following format:


first_file?title="title_info"&author="author_info"&copyright="copyright_info"

where first_file is the name of the file; title_info, author_info, and copyright_info are strings of any length.

If you have included an overall TAC at the beginning of the playlist, including information about separate files will "turn off" the TAC at the beginning of the file; subsequent clips will then stream with their own TAC information.

In the following example, separate TAC values are supplied for each clip:


CompanyLogo.rm&title="Our Founder"&author="P. Brown, artist"&copyright="1999"
Welcome.rm&title="Welcome to the Annual Meeting"
President.rm&title="Lee Adams, President"
Treasurer.rm&title="Chris Anderson, Treasurer"
Conclusions.rm&copyright="Example.com, 1999"

Changing Playlists while G2SLTA is Running

If you are using the -n switch, either to loop the playlist infinitely or to play all clips a specified number of times, you can take advantage of the fact that RealServer re-reads the playlist after it plays all the clips in the playlist.

Note
If you used TAC information to provide an overall set of information for all the clips in the presentation (by listing that information at the beginning of the playlist), that information will remain the same, even though the list of files to be played is different.

To change the playlist while G2SLTA is Running:

  1. Start G2SLTA.

  2. Make changes to the playlist, and save them. Or, create a new playlist and save it with the name of the existing playlist.

  3. RealServer will use the modified playlist as soon as it plays all the clips in the current playlist.

Using G2SLTA for Splitting and Multicasting

Creating a Source for Splitting

Instructions in this section give high-level overview steps; they assume you already have the splitting feature enabled. For instructions on individual steps, consult the appropriate section of this manual.

To use G2SLTA as the live event for push splitting:

  1. Run G2SLTA, using the instructions in "Step 3: Running G2SLTA". Make note of the value you used for livefile; you will use it in Step 2 and in Step 3.

  2. If the path you typed for livefile does not already exist in the Directory Sources section, add it now.

  3. In the Web page that points to this split live stream, create a link that points to livefile. Use the format described in "Step 3: Linking to Split Content".

To use G2SLTA as the live event for pull splitting:

  1. Run G2SLTA, using the instructions in "Step 3: Running G2SLTA". Make note of the value you used for livefile; you will use it in the next step.

  2. In the Web page that points to this split live stream, create a link that points to livefile. Use the format described in "Linking to Pull Split Content".

Creating a Source for Multicasting

Instructions in this section give high-level overview steps; they assume you already have the multicast feature enabled. For instructions on individual steps, consult the appropriate section of this manual.

To use G2SLTA as the live event for back-channel multicasting:

  1. Run G2SLTA, using the instructions in "Step 3: Running G2SLTA". Make note of the value you used for livefile; you will use it in the next step.

  2. In the Web page that points to this live multicast, create a link that points to livefile. Use the format described in "Linking to Back-Channel Multicasts".

To use G2SLTA as the live event for scalable multicasting:

  1. Run G2SLTA, using the instructions in "Step 3: Running G2SLTA". Make note of the value you used for livefile; you will use it in the next step.

  2. On the scalable multicasting page, add a channel for livefile.

  3. In the Web page that points to this live multicast, create a link that points to livefile. Use the format described in "Linking to Scalable Multicasts".

Files Required by G2SLTA

The files used by the G2SLTA program are shown below.

Files Required by G2SLTA
Streamed File Type Windows File Name UNIX File Name Configuration File Variable Showing Location of File
All encn3260.dll encn.so.6.0 SupportPluginDirectory
slta3260.dll sltalib.so.6.0 SupportPluginDirectory
enco3260.dll encoplin.so.6.0 PluginDirectory
RealAudio and RealVideo rmff3260.dll rmffplin.so.6.0 PluginDirectory

Other data types may require other Windows and UNIX files.

Working with Redundant Sources

For important events in which multiple backup sources are required, RealServer includes a feature to use multiple sources for the same event. Should one source become unavailable, RealServer will automatically switch the stream to use the next source.

If one source fails, the following message appears in the error log: "Switched live source from address1 to address2."

Redundant Sources Used with Other Features

Redundant sources work with all other RealServer live broadcasting features.

On-Demand Streaming and Redundant Sources

Only live events use this feature, but you can use G2SLTA to simulate a live broadcast with an on-demand file. See "Setting Up the Source".

G2SLTA and Redundant Sources

G2SLTA can be used to "convert" an on-demand file to a live file; see "Setting Up the Source".

Archiving Redundant Broadcasts

RealServer archives the incoming source, but doesn't store the source number. In the example shown in "Setting Up the Source", the various sources are named live.rm.1 and live.rm.2; RealServer archives a file named simply live.rm, without the delimeter and number.

Splitting and Redundant Sources

A transmitter that uses the redundant sources feature sends out its streams just like any other live broadcast.

To create a system with multiple layers of backups, you should configure multiple transmitters to name their broadcasts with the same file name, plus the delimeter and a unique number.

Multicasting and Redundant Sources

Redundant live sources can be multicast, as with any other live content.

Access Control, Authentication, and Redundant Sources

Use access control and authentication the same as with any other live content.

ISP Hosting and Redundant Sources

ISP hosting does not work with live broadcasts.

Java Monitor and Redundant Sources

Redundant sources are displayed like any other live broadcasts.

Reporting and Redundant Sources

Just as in any other live broadcast, a record is created in the access log for any client that connects to a live broadcast originating from redundant sources. You can't determine which redundant source is is in use, only that the redundancy feature is in use. See "Using the GET Statement to Identify Delivery Method" to see how redundant sources appear in the access log.

Setting Up Redundant Sources

To use this feature, you perform two steps:

  1. Add a unique number to the file name in RealProducer or in G2SLTA. The number is separated from the file name by the delimeter character shown in the Delimiter field (described later in this section).

  2. Add the broadcast redundancy mount point to the link.

To minimize latency when RealServer changes stream sources, start all sources as close to the same time as possible.

This feature is automatically enabled; you don't need to make any changes unless you want to disable the feature, or to change the settings it uses. To view the settings currently in use for broadcast redundancy, start RealSystem Administrator and click Broadcasting>Redundancy:

Setting Up the Source

Regardless of the source for the live broadcast, you must add a delimiter and a unique number to the file name in each source. Note that the number doesn't indicate the order in which the streamed packets arrive at RealServer; it is used as a unique identifier.

To set up the source for RealProducer:

In one session of RealProducer, type the name of the file, and type a delimiter and number after it. For example, if the file name is live.rm, and the delimiter is a period (.), you would type live.rm.1 in the Filename box.

In the next session of RealProducer, type the name of the file as before, but use a different number: live.rm.2.

Continue this numbering for each additional source.

To set up the source for G2SLTA:

Add a period and a number to the livefile parameter. For example,


Bin/g2slta.sh realserver.example.com 4040 pbrown swordfish annual.rm.1 Content/AnnualReport.txt

Use another number for the second session of G2SLTA:


Bin/g2slta.sh realserver.example.com 4040 pbrown swordfish annual.rm.2 Content/AnnualReport.txt

Continue this numbering for each additional source.

Linking to Redundant Content

Links to live events with multiple sources use the same format as links to single-source live events, but substitute the broadcast redundancy mount point for the encoder mount point.

To link to redundant content from a Web page:

The link to a live event with multiple sources has the following format:


http://address:HTTPPort/ramgen/redundant/path/file

RealServer Live Content URL Components
Component Meaning
http The protocol used to initiate streaming. Always use http in Web pages.
address Machine and domain name of RealServer. IP address may be substituted.
HTTPPort Port number where RealServer listens for requests sent via HTTP. This value is usually 80 or 8080; see "Port Numbers".
ramgen Ram file generator mount point.
redundant Mount point for live events with redundant sources.
path Optional; any actual directory, relative to the base path of the main mount point. If you typed any subdirectory in the source software, include it here.
file The file name itself, including the extension.

Note
The number and delimiter you used on the source do not appear in the link itself.

For example, the link to a live event being encoded as concert.rm.1 and concert.rm.2 would look like this:


http://realserver.example.com:8080/ramgen/redundant/concert.rm

Links typed directly in RealPlayer or used in a Ram or SMIL file use the following format:


rtsp://address:RTSPPort/redundant/path/file

The format is nearly the same as the link used in the Web page; the protocol is different, the port number (if any) matches the protocol, and Ramgen is omitted.


Copyright © 2000 RealNetworks
For information on RealNetworks' technical support, click here.
Comments on this document? Click here.
This file last updated on 11/28/00 at 17:34:44.
previous next